pub enum QueueLength {
Unbounded,
Bounded(usize),
}Expand description
Represents the length of a queue used for communication. Bounding its length can be useful in resource constraint environments.
Variants§
Unbounded
There is no bound on the queue.
Bounded(usize)
The queue is bounded to keep at most this many elements.
Trait Implementations§
Source§impl Clone for QueueLength
impl Clone for QueueLength
Source§fn clone(&self) -> QueueLength
fn clone(&self) -> QueueLength
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 Debug for QueueLength
impl Debug for QueueLength
impl Copy for QueueLength
Auto Trait Implementations§
impl Freeze for QueueLength
impl RefUnwindSafe for QueueLength
impl Send for QueueLength
impl Sync for QueueLength
impl Unpin for QueueLength
impl UnwindSafe for QueueLength
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more