pub struct QueueCapacity(/* private fields */);Expand description
Typed wrapper for bounded channel capacities.
Implementations§
Source§impl QueueCapacity
impl QueueCapacity
Sourcepub fn new(value: u32) -> Result<Self, TuningValueError>
pub fn new(value: u32) -> Result<Self, TuningValueError>
Creates a validated queue capacity.
§Errors
Returns TuningValueError::ZeroCapacity when value is zero.
Trait Implementations§
Source§impl Clone for QueueCapacity
impl Clone for QueueCapacity
Source§fn clone(&self) -> QueueCapacity
fn clone(&self) -> QueueCapacity
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 QueueCapacity
impl Debug for QueueCapacity
Source§impl Hash for QueueCapacity
impl Hash for QueueCapacity
Source§impl Ord for QueueCapacity
impl Ord for QueueCapacity
Source§fn cmp(&self, other: &QueueCapacity) -> Ordering
fn cmp(&self, other: &QueueCapacity) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for QueueCapacity
impl PartialEq for QueueCapacity
Source§impl PartialOrd for QueueCapacity
impl PartialOrd for QueueCapacity
impl Copy for QueueCapacity
impl Eq for QueueCapacity
impl StructuralPartialEq for QueueCapacity
Auto Trait Implementations§
impl Freeze for QueueCapacity
impl RefUnwindSafe for QueueCapacity
impl Send for QueueCapacity
impl Sync for QueueCapacity
impl Unpin for QueueCapacity
impl UnsafeUnpin for QueueCapacity
impl UnwindSafe for QueueCapacity
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