pub struct DrainClient { /* private fields */ }Implementations§
Source§impl DrainClient
impl DrainClient
pub fn new(addr: SocketAddr, token: impl Into<String>) -> Self
pub async fn connect(&self) -> Result<DrainSession, DrainError>
Auto Trait Implementations§
impl Freeze for DrainClient
impl RefUnwindSafe for DrainClient
impl Send for DrainClient
impl Sync for DrainClient
impl Unpin for DrainClient
impl UnsafeUnpin for DrainClient
impl UnwindSafe for DrainClient
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