pub struct Client { /* private fields */ }
Implementations§
Source§impl Client
impl Client
pub async fn connect<A: ToSocketAddrs>(addr: A) -> Result<Self, ()>
Sourcepub async fn login(&mut self, user: &str, password: &str) -> Result<(), ()>
pub async fn login(&mut self, user: &str, password: &str) -> Result<(), ()>
Login with the given username and password
Currently this only supports SASL PLAIN login.
pub async fn open(&mut self, container_id: &str) -> Result<(), ()>
pub async fn begin(&mut self) -> Result<(), ()>
pub async fn attach(&mut self, attach: Attach<'_>) -> Result<(), ()>
pub async fn flow(&mut self, flow: Flow<'_>) -> Result<(), ()>
pub async fn transfer( &mut self, transfer: Transfer, message: Message<'_>, ) -> Result<(), ()>
pub async fn next(&mut self) -> Option<Result<BytesFrame, Error>>
Auto Trait Implementations§
impl !Freeze for Client
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