pub struct Producer { /* private fields */ }Expand description
Sole-producer handle on a SharedRingSpsc pair. Send so it
can be moved to a producer thread; !Sync so it cannot be
shared across threads (which would violate the SPSC contract).
Not Clone: a second producer is statically impossible.
Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Producer
impl !Sync for Producer
impl !UnwindSafe for Producer
impl Freeze for Producer
impl Send for Producer
impl Unpin for Producer
impl UnsafeUnpin for Producer
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