pub enum DocketError {
NotFound(String),
Connection(String),
Serialization(String),
Handler(String),
Backend(String),
Cancelled,
}Expand description
Errors that can occur in Docket operations.
Variants§
NotFound(String)
Task not found.
Connection(String)
Backend connection error.
Serialization(String)
Serialization error.
Handler(String)
Task handler error.
Backend(String)
Backend-specific error.
Cancelled
Cancelled.
Trait Implementations§
Source§impl Debug for DocketError
impl Debug for DocketError
Source§impl Display for DocketError
impl Display for DocketError
Source§impl Error for DocketError
impl Error for DocketError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<DocketError> for McpError
impl From<DocketError> for McpError
Source§fn from(err: DocketError) -> Self
fn from(err: DocketError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for DocketError
impl RefUnwindSafe for DocketError
impl Send for DocketError
impl Sync for DocketError
impl Unpin for DocketError
impl UnwindSafe for DocketError
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: NoopSpan) -> Self
fn instrument(self, _span: NoopSpan) -> Self
Instruments this future with a span (no-op when disabled).
Source§fn in_current_span(self) -> Self
fn in_current_span(self) -> Self
Instruments this future with the current span (no-op when disabled).