pub struct QueueChannel { /* private fields */ }Implementations§
Source§impl QueueChannel
impl QueueChannel
Sourcepub fn with_id<S>(id: S) -> QueueChannel
pub fn with_id<S>(id: S) -> QueueChannel
Create a new queue channel with an explicit identifier.
Sourcepub fn with_random_id() -> QueueChannel
pub fn with_random_id() -> QueueChannel
Create a new queue channel with a randomly generated UUID-based identifier.
Trait Implementations§
Source§impl Channel for QueueChannel
impl Channel for QueueChannel
fn id(&self) -> &str
fn send<'life0, 'async_trait>(
&'life0 self,
exchange: Exchange,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
QueueChannel: 'async_trait,
fn kind(&self) -> &'static str
fn as_any(&self) -> &(dyn Any + 'static)
Source§impl Clone for QueueChannel
impl Clone for QueueChannel
Source§fn clone(&self) -> QueueChannel
fn clone(&self) -> QueueChannel
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 CorrelationSupport for QueueChannel
impl CorrelationSupport for QueueChannel
fn send_with_correlation<'life0, 'async_trait>(
&'life0 self,
exchange: Exchange,
) -> Pin<Box<dyn Future<Output = Result<String, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
QueueChannel: 'async_trait,
fn receive_by_correlation<'life0, 'life1, 'async_trait>(
&'life0 self,
corr_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Option<Exchange>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
QueueChannel: 'async_trait,
Source§impl Debug for QueueChannel
impl Debug for QueueChannel
Source§impl PollableChannel for QueueChannel
impl PollableChannel for QueueChannel
fn try_receive<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Option<Exchange>> + Send + 'async_trait>>where
'life0: 'async_trait,
QueueChannel: 'async_trait,
Auto Trait Implementations§
impl Freeze for QueueChannel
impl !RefUnwindSafe for QueueChannel
impl Send for QueueChannel
impl Sync for QueueChannel
impl Unpin for QueueChannel
impl !UnwindSafe for QueueChannel
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