pub struct MyChannelCallback {
pub channel_tx: UnboundedSender<ChannelCmd>,
}Fields§
§channel_tx: UnboundedSender<ChannelCmd>Trait Implementations§
Source§impl ChannelCallback for MyChannelCallback
impl ChannelCallback for MyChannelCallback
Source§fn close<'life0, 'life1, 'async_trait>(
&'life0 mut self,
channel: &'life1 Channel,
close: CloseChannel,
) -> 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,
channel: &'life1 Channel,
close: CloseChannel,
) -> Pin<Box<dyn Future<Output = AMQPResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Callback to handle
close channel request from server. Read moreSource§fn cancel<'life0, 'life1, 'async_trait>(
&'life0 mut self,
_channel: &'life1 Channel,
_cancel: Cancel,
) -> Pin<Box<dyn Future<Output = AMQPResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn cancel<'life0, 'life1, 'async_trait>(
&'life0 mut self,
_channel: &'life1 Channel,
_cancel: Cancel,
) -> Pin<Box<dyn Future<Output = AMQPResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Callback to handle server’s request to
cancel the consumer of current channel. Read moreSource§fn flow<'life0, 'life1, 'async_trait>(
&'life0 mut self,
_channel: &'life1 Channel,
_active: bool,
) -> Pin<Box<dyn Future<Output = AMQPResult<bool>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn flow<'life0, 'life1, 'async_trait>(
&'life0 mut self,
_channel: &'life1 Channel,
_active: bool,
) -> Pin<Box<dyn Future<Output = AMQPResult<bool>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Callback to handle server’s
flow request to pause or restart
the flow of sending content data. Read moreSource§fn publish_ack<'life0, 'life1, 'async_trait>(
&'life0 mut self,
_channel: &'life1 Channel,
ack: Ack,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn publish_ack<'life0, 'life1, 'async_trait>(
&'life0 mut self,
_channel: &'life1 Channel,
ack: Ack,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Callback to handle
ack indication from server. Read moreSource§fn publish_nack<'life0, 'life1, 'async_trait>(
&'life0 mut self,
_channel: &'life1 Channel,
nack: Nack,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn publish_nack<'life0, 'life1, 'async_trait>(
&'life0 mut self,
_channel: &'life1 Channel,
nack: Nack,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Callback to handle
nack indication from server. Read moreSource§fn publish_return<'life0, 'life1, 'async_trait>(
&'life0 mut self,
_channel: &'life1 Channel,
_ret: Return,
_basic_properties: BasicProperties,
_content: Vec<u8>,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn publish_return<'life0, 'life1, 'async_trait>(
&'life0 mut self,
_channel: &'life1 Channel,
_ret: Return,
_basic_properties: BasicProperties,
_content: Vec<u8>,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Callback to handle
return indication with undeliverable message from server. Read moreAuto Trait Implementations§
impl Freeze for MyChannelCallback
impl RefUnwindSafe for MyChannelCallback
impl Send for MyChannelCallback
impl Sync for MyChannelCallback
impl Unpin for MyChannelCallback
impl UnsafeUnpin for MyChannelCallback
impl UnwindSafe for MyChannelCallback
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