pub struct ConnectionHandler { /* private fields */ }Expand description
The type which implements the ConnectionCallback trait from amqprs
Implementations§
Source§impl ConnectionHandler
impl ConnectionHandler
pub fn from(need_to_reload_sender: Sender<NeedToReload>) -> ConnectionHandler
Trait Implementations§
Source§impl Clone for ConnectionHandler
impl Clone for ConnectionHandler
Source§fn clone(&self) -> ConnectionHandler
fn clone(&self) -> ConnectionHandler
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl ConnectionCallback for ConnectionHandler
impl ConnectionCallback for ConnectionHandler
Source§fn close<'life0, 'life1, 'async_trait>(
&'life0 mut self,
connection: &'life1 Connection,
close: Close,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 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<(), Error>> + 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 ConnectionHandler
impl RefUnwindSafe for ConnectionHandler
impl Send for ConnectionHandler
impl Sync for ConnectionHandler
impl Unpin for ConnectionHandler
impl UnsafeUnpin for ConnectionHandler
impl UnwindSafe for ConnectionHandler
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