pub struct DirectChannel { /* private fields */ }Expand description
A channel for publishing messages on direct queues.
Implementations§
Source§impl DirectChannel
impl DirectChannel
Sourcepub async fn new(connection: &Connection) -> Result<Self>
pub async fn new(connection: &Connection) -> Result<Self>
Create a new DirectChannel
Trait Implementations§
Source§impl Channel for DirectChannel
impl Channel for DirectChannel
Source§fn publish_with_properties<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
payload_bytes: &'life1 [u8],
routing_key: &'life2 str,
properties: BasicProperties,
correlation_uuid: Uuid,
reply_uuid: Option<Uuid>,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn publish_with_properties<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
payload_bytes: &'life1 [u8],
routing_key: &'life2 str,
properties: BasicProperties,
correlation_uuid: Uuid,
reply_uuid: Option<Uuid>,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Publish a message onto a queue
Source§impl Clone for DirectChannel
impl Clone for DirectChannel
Source§fn clone(&self) -> DirectChannel
fn clone(&self) -> DirectChannel
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 moreAuto Trait Implementations§
impl Freeze for DirectChannel
impl !RefUnwindSafe for DirectChannel
impl Send for DirectChannel
impl Sync for DirectChannel
impl Unpin for DirectChannel
impl !UnwindSafe for DirectChannel
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