pub enum Backpressure {
Ok,
Full,
Closed,
}Expand description
Result of attempting to enqueue a message.
use daedalus_core::channels::{bounded, Backpressure, ChannelSend};
let (tx, _rx) = bounded(1);
assert_eq!(tx.send(1), Backpressure::Ok);Variants§
Trait Implementations§
Source§impl Clone for Backpressure
impl Clone for Backpressure
Source§fn clone(&self) -> Backpressure
fn clone(&self) -> Backpressure
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 Backpressure
impl Debug for Backpressure
Source§impl PartialEq for Backpressure
impl PartialEq for Backpressure
impl Copy for Backpressure
impl Eq for Backpressure
impl StructuralPartialEq for Backpressure
Auto Trait Implementations§
impl Freeze for Backpressure
impl RefUnwindSafe for Backpressure
impl Send for Backpressure
impl Sync for Backpressure
impl Unpin for Backpressure
impl UnwindSafe for Backpressure
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