Struct faucet_server::client::Client
source · pub struct Client { /* private fields */ }Implementations§
source§impl Client
impl Client
pub fn builder(addr: SocketAddr) -> ClientBuilder
pub fn socket_addr(&self) -> SocketAddr
pub async fn get(&self) -> FaucetResult<HttpConnection>
Trait Implementations§
source§impl WebsocketHandler for Client
impl WebsocketHandler for Client
fn attemp_upgrade<'life0, 'async_trait>(
&'life0 self,
req: Request<Incoming>
) -> Pin<Box<dyn Future<Output = FaucetResult<UpgradeStatus>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Auto Trait Implementations§
impl !RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl !UnwindSafe for Client
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more