pub enum TrySendError {
Full(ManagerTask),
Closed(ManagerTask),
}Expand description
Why TaskSender::try_send did not queue a task, with the task handed back.
Variants§
Full(ManagerTask)
The queue is at capacity; the task can still be sent by waiting.
Closed(ManagerTask)
The manager has stopped and will never serve the task.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for TrySendError
impl !RefUnwindSafe for TrySendError
impl !UnwindSafe for TrySendError
impl Forget for TrySendError
impl Move for TrySendError
impl Send for TrySendError
impl Sync for TrySendError
impl Unpin for TrySendError
impl UnsafeUnpin for TrySendError
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> 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