pub struct RunQueueSender(pub UnboundedSender<RunWorkItem>);Expand description
Sender half of the run work queue.
Cloning this is cheap; all clones share the same underlying channel.
Tuple Fields§
§0: UnboundedSender<RunWorkItem>Implementations§
Source§impl RunQueueSender
impl RunQueueSender
Sourcepub fn send(&self, item: RunWorkItem) -> Result<(), SendError<RunWorkItem>>
pub fn send(&self, item: RunWorkItem) -> Result<(), SendError<RunWorkItem>>
Submit a work item to the run queue.
Returns an error if the receiving end has been dropped (worker exited).
Trait Implementations§
Source§impl Clone for RunQueueSender
impl Clone for RunQueueSender
Source§fn clone(&self) -> RunQueueSender
fn clone(&self) -> RunQueueSender
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 moreAuto Trait Implementations§
impl Freeze for RunQueueSender
impl RefUnwindSafe for RunQueueSender
impl Send for RunQueueSender
impl Sync for RunQueueSender
impl Unpin for RunQueueSender
impl UnsafeUnpin for RunQueueSender
impl UnwindSafe for RunQueueSender
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more