#[non_exhaustive]pub enum Queue {
Bounded(usize),
Unbounded,
}Expand description
The queue between the task and the consumer.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Bounded(usize)
At most this many items unread (at least one). While it is full the task reads nothing more from the connection, and still pings.
Unbounded
No limit: the task never waits for the consumer.
Trait Implementations§
impl Copy for Queue
impl Eq for Queue
impl StructuralPartialEq for Queue
Auto Trait Implementations§
impl Freeze for Queue
impl RefUnwindSafe for Queue
impl Send for Queue
impl Sync for Queue
impl Unpin for Queue
impl UnsafeUnpin for Queue
impl UnwindSafe for Queue
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