pub struct BasicConnectionCallback;Trait Implementations§
Source§impl ConnectionCallback for BasicConnectionCallback
impl ConnectionCallback for BasicConnectionCallback
Source§fn close<'life0, 'life1, 'async_trait>(
&'life0 mut self,
connection: &'life1 Connection,
_close: Close,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn close<'life0, 'life1, 'async_trait>(
&'life0 mut self,
connection: &'life1 Connection,
_close: Close,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Callback to handle
close connection request from server. Read moreSource§fn blocked<'life0, 'life1, 'async_trait>(
&'life0 mut self,
connection: &'life1 Connection,
_reason: String,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn blocked<'life0, 'life1, 'async_trait>(
&'life0 mut self,
connection: &'life1 Connection,
_reason: String,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Callback to handle connection
blocked indication from serverAuto Trait Implementations§
impl Freeze for BasicConnectionCallback
impl RefUnwindSafe for BasicConnectionCallback
impl Send for BasicConnectionCallback
impl Sync for BasicConnectionCallback
impl Unpin for BasicConnectionCallback
impl UnwindSafe for BasicConnectionCallback
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