Struct priority_send_queue::PrioritySendQueue
source · pub struct PrioritySendQueue<T> { /* private fields */ }
Implementations§
source§impl<T> PrioritySendQueue<T>
impl<T> PrioritySendQueue<T>
pub fn pop_front(&mut self) -> Option<(T, SendQueuePriority)>
pub fn is_empty(&self) -> bool
pub fn is_send_queue_empty(&self, priority: SendQueuePriority) -> bool
pub fn push_back(&mut self, value: T, priority: SendQueuePriority)
pub fn len(&self) -> usize
pub fn len_by_priority(&self, priority: SendQueuePriority) -> usize
Trait Implementations§
source§impl<T> Default for PrioritySendQueue<T>
impl<T> Default for PrioritySendQueue<T>
source§fn default() -> PrioritySendQueue<T>
fn default() -> PrioritySendQueue<T>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<T> RefUnwindSafe for PrioritySendQueue<T>where
T: RefUnwindSafe,
impl<T> Send for PrioritySendQueue<T>where
T: Send,
impl<T> Sync for PrioritySendQueue<T>where
T: Sync,
impl<T> Unpin for PrioritySendQueue<T>where
T: Unpin,
impl<T> UnwindSafe for PrioritySendQueue<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