Enum delay_timer::error::TaskInstanceError
source · [−]pub enum TaskInstanceError {
DisSend(TrySendError<TimerEvent>),
DisGetEvent(TryRecvError),
DisCancel,
DisCancelTimeOut,
MisEventSender,
InternalChannelAnomaly(RecvError),
Expired,
}Expand description
Error enumeration for TaskInstance-related operations.
Variants
DisSend(TrySendError<TimerEvent>)
TaskInstance sending failure.
DisGetEvent(TryRecvError)
TaskInstance event get failed.
DisCancel
TaskInstance cancel failure.
DisCancelTimeOut
TaskInstance cancel TimeOut.
MisEventSender
Missing event sender timer_event_sender.
InternalChannelAnomaly(RecvError)
Internal channel communication abnormality.
Expired
Running instance of the task is no longer maintained.
Trait Implementations
sourceimpl Debug for TaskInstanceError
impl Debug for TaskInstanceError
sourceimpl Display for TaskInstanceError
impl Display for TaskInstanceError
sourceimpl Error for TaskInstanceError
impl Error for TaskInstanceError
sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
backtrace)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
sourceimpl From<RecvError> for TaskInstanceError
impl From<RecvError> for TaskInstanceError
sourceimpl From<TryRecvError> for TaskInstanceError
impl From<TryRecvError> for TaskInstanceError
sourceimpl From<TrySendError<TimerEvent>> for TaskInstanceError
impl From<TrySendError<TimerEvent>> for TaskInstanceError
sourcefn from(source: TrySendError<TimerEvent>) -> Self
fn from(source: TrySendError<TimerEvent>) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl !RefUnwindSafe for TaskInstanceError
impl Send for TaskInstanceError
impl Sync for TaskInstanceError
impl Unpin for TaskInstanceError
impl !UnwindSafe for TaskInstanceError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
fn instrument(self, span: Span) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
T: Future, type Output = <T as Future>::Output;
sourcefn in_current_span(self) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
fn in_current_span(self) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
T: Future, type Output = <T as Future>::Output;
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>ⓘNotable traits for WithDispatch<T>impl<T> Future for WithDispatch<T> where
T: Future, type Output = <T as Future>::Output; where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>ⓘNotable traits for WithDispatch<T>impl<T> Future for WithDispatch<T> where
T: Future, type Output = <T as Future>::Output; where
S: Into<Dispatch>,
T: Future, type Output = <T as Future>::Output;
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>ⓘNotable traits for WithDispatch<T>impl<T> Future for WithDispatch<T> where
T: Future, type Output = <T as Future>::Output;
fn with_current_subscriber(self) -> WithDispatch<Self>ⓘNotable traits for WithDispatch<T>impl<T> Future for WithDispatch<T> where
T: Future, type Output = <T as Future>::Output;
T: Future, type Output = <T as Future>::Output;
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more