pub struct Mpsc<T> { /* private fields */ }Expand description
The queue (see the module documentation).
Implementations§
Source§impl<T> Mpsc<T>
impl<T> Mpsc<T>
Sourcepub fn push(&self, value: T)
pub fn push(&self, value: T)
Adds value (any thread). Sequentially consistent, so a consumer that announces it is
about to sleep and then checks Mpsc::is_empty either sees the value or is seen by
the producer’s following check of that announcement.
Trait Implementations§
impl<T: Send> Send for Mpsc<T>
impl<T: Send> Sync for Mpsc<T>
Auto Trait Implementations§
impl<T> !Freeze for Mpsc<T>
impl<T> Forget for Mpsc<T>
impl<T> Move for Mpsc<T>
impl<T> RefUnwindSafe for Mpsc<T>
impl<T> Unpin for Mpsc<T>
impl<T> UnsafeUnpin for Mpsc<T>
impl<T> UnwindSafe for Mpsc<T>
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