pub struct Pusher<I>(/* private fields */);Expand description
The transmitting end-point of queue.
Implementations§
Source§impl<I> Pusher<I>
impl<I> Pusher<I>
Sourcepub fn was_empty(&self) -> bool
pub fn was_empty(&self) -> bool
Returns a boolean indicating whether the queue was empty or not.
This function is not particularly useful. If you don’t understand why, then please don’t use it.
Sourcepub fn weak(&self) -> WeakPusher<I>
pub fn weak(&self) -> WeakPusher<I>
Create a weak reference to this Pusher.
Trait Implementations§
Auto Trait Implementations§
impl<I> Freeze for Pusher<I>
impl<I> !RefUnwindSafe for Pusher<I>
impl<I> Send for Pusher<I>where
I: Send,
impl<I> Sync for Pusher<I>where
I: Send,
impl<I> Unpin for Pusher<I>
impl<I> !UnwindSafe for Pusher<I>
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