pub struct QueueChannel<Conn> { /* private fields */ }
Expand description
A Channel
implementation for a queue.
Note that sender, receiver, and release operations are all lazily evaluated – the resources aren’t actually allocated until they are used.
Trait Implementations§
Source§impl<QHandle: QueueHandle + Send + Sync + 'static, Conn: Connection<QueueHandle = QHandle> + Send + Sync + 'static> Channel for QueueChannel<Conn>
impl<QHandle: QueueHandle + Send + Sync + 'static, Conn: Connection<QueueHandle = QHandle> + Send + Sync + 'static> Channel for QueueChannel<Conn>
Source§fn close<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn close<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Close the underlying connection.
Source§fn sender<'a, 'life0, 'async_trait, T>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Self::Sender<'a, T>>> + Send + 'async_trait>>where
T: 'async_trait + Serializable + 'a,
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
fn sender<'a, 'life0, 'async_trait, T>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Self::Sender<'a, T>>> + Send + 'async_trait>>where
T: 'async_trait + Serializable + 'a,
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
Get a sender for the underlying queue.
Source§fn receiver<'a, 'life0, 'async_trait, T>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Self::Receiver<'a, T>>> + Send + 'async_trait>>where
T: 'async_trait + Serializable + 'a,
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
fn receiver<'a, 'life0, 'async_trait, T>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Self::Receiver<'a, T>>> + Send + 'async_trait>>where
T: 'async_trait + Serializable + 'a,
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
Get a receiver for the underlying queue.
type Acker = <QHandle as QueueHandle>::Acker
type Sender<'a, T: Serializable + 'a> = <QHandle as QueueHandle>::Publisher<T>
type Receiver<'a, T: Serializable + 'a> = <QHandle as QueueHandle>::Consumer<T>
Source§impl<Conn: Clone> Clone for QueueChannel<Conn>
impl<Conn: Clone> Clone for QueueChannel<Conn>
Source§fn clone(&self) -> QueueChannel<Conn>
fn clone(&self) -> QueueChannel<Conn>
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<Conn> Freeze for QueueChannel<Conn>where
Conn: Freeze,
impl<Conn> RefUnwindSafe for QueueChannel<Conn>where
Conn: RefUnwindSafe,
impl<Conn> Send for QueueChannel<Conn>where
Conn: Send,
impl<Conn> Sync for QueueChannel<Conn>where
Conn: Sync,
impl<Conn> Unpin for QueueChannel<Conn>where
Conn: Unpin,
impl<Conn> UnwindSafe for QueueChannel<Conn>where
Conn: UnwindSafe,
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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