pub struct BoundedSendQueue<T> { /* private fields */ }Expand description
Bounded send queue for outbound endpoint envelopes (typed via T).
Implementations§
Source§impl<T> BoundedSendQueue<T>
impl<T> BoundedSendQueue<T>
pub fn new(capacity: usize, policy: SendQueueOverflow) -> Self
Sourcepub fn try_push(&mut self, item: T) -> Result<SendOutcome, RemoteError>
pub fn try_push(&mut self, item: T) -> Result<SendOutcome, RemoteError>
Try to enqueue item. Honours the configured overflow policy.
pub fn pop(&mut self) -> Option<T>
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn capacity(&self) -> usize
Auto Trait Implementations§
impl<T> Freeze for BoundedSendQueue<T>
impl<T> RefUnwindSafe for BoundedSendQueue<T>where
T: RefUnwindSafe,
impl<T> Send for BoundedSendQueue<T>where
T: Send,
impl<T> Sync for BoundedSendQueue<T>where
T: Sync,
impl<T> Unpin for BoundedSendQueue<T>where
T: Unpin,
impl<T> UnsafeUnpin for BoundedSendQueue<T>
impl<T> UnwindSafe for BoundedSendQueue<T>where
T: UnwindSafe,
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