pub struct QueueBuilder { /* private fields */ }Available on crate feature
runtime only.Expand description
Builder for a Queue.
Implementations§
Source§impl QueueBuilder
impl QueueBuilder
Sourcepub fn new() -> Self
pub fn new() -> Self
Creates a builder with a default capacity of 1024 and Overflow::Reject.
Sourcepub fn capacity(self, capacity: usize) -> Self
pub fn capacity(self, capacity: usize) -> Self
Sets the maximum number of simultaneous waiters (clamped to at least one).
Trait Implementations§
Source§impl Clone for QueueBuilder
impl Clone for QueueBuilder
Source§fn clone(&self) -> QueueBuilder
fn clone(&self) -> QueueBuilder
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for QueueBuilder
Source§impl Debug for QueueBuilder
impl Debug for QueueBuilder
Auto Trait Implementations§
impl Freeze for QueueBuilder
impl RefUnwindSafe for QueueBuilder
impl Send for QueueBuilder
impl Sync for QueueBuilder
impl Unpin for QueueBuilder
impl UnsafeUnpin for QueueBuilder
impl UnwindSafe for QueueBuilder
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