pub struct MyConnectionCallback {
pub sender: UnboundedSender<ConnectionCommand>,
}Fields§
§sender: UnboundedSender<ConnectionCommand>Trait Implementations§
Source§impl ConnectionCallback for MyConnectionCallback
impl ConnectionCallback for MyConnectionCallback
Source§fn close<'life0, 'life1, 'async_trait>(
&'life0 mut self,
_connection: &'life1 Connection,
_close: Close,
) -> Pin<Box<dyn Future<Output = AMQPResult<()>> + 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 = AMQPResult<()>> + 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 serverSource§fn unblocked<'life0, 'life1, 'async_trait>(
&'life0 mut self,
_connection: &'life1 Connection,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn unblocked<'life0, 'life1, 'async_trait>(
&'life0 mut self,
_connection: &'life1 Connection,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Callback to handle connection
unblocked indication from serverSource§fn secret_updated<'life0, 'life1, 'async_trait>(
&'life0 mut self,
connection: &'life1 Connection,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn secret_updated<'life0, 'life1, 'async_trait>(
&'life0 mut self,
connection: &'life1 Connection,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Callback to handle secret updated indication from server
Auto Trait Implementations§
impl Freeze for MyConnectionCallback
impl RefUnwindSafe for MyConnectionCallback
impl Send for MyConnectionCallback
impl Sync for MyConnectionCallback
impl Unpin for MyConnectionCallback
impl UnsafeUnpin for MyConnectionCallback
impl UnwindSafe for MyConnectionCallback
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