pub enum ProcedureError {
NotFound,
Deserialize(DeserializeError),
Downcast(DowncastError),
Resolver(ResolverError),
Unwind(Box<dyn Any + Send>),
}
Expand description
TODO
Variants§
NotFound
Failed to find a procedure with the given name.
Deserialize(DeserializeError)
Attempted to deserialize a value but failed.
Downcast(DowncastError)
Attempting to downcast a value failed.
Resolver(ResolverError)
An error occurred while running the procedure.
Unwind(Box<dyn Any + Send>)
The procedure unexpectedly unwinded. This happens when you panic inside a procedure.
Implementations§
Trait Implementations§
Source§impl Debug for ProcedureError
impl Debug for ProcedureError
Source§impl Display for ProcedureError
impl Display for ProcedureError
Source§impl Error for ProcedureError
impl Error for ProcedureError
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<DeserializeError> for ProcedureError
impl From<DeserializeError> for ProcedureError
Source§fn from(err: DeserializeError) -> Self
fn from(err: DeserializeError) -> Self
Converts to this type from the input type.
Source§impl From<DowncastError> for ProcedureError
impl From<DowncastError> for ProcedureError
Source§fn from(err: DowncastError) -> Self
fn from(err: DowncastError) -> Self
Converts to this type from the input type.
Source§impl From<ProcedureError> for ProcedureStream
impl From<ProcedureError> for ProcedureStream
Source§fn from(err: ProcedureError) -> Self
fn from(err: ProcedureError) -> Self
Converts to this type from the input type.
Source§impl From<ResolverError> for ProcedureError
impl From<ResolverError> for ProcedureError
Source§fn from(err: ResolverError) -> Self
fn from(err: ResolverError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ProcedureError
impl !RefUnwindSafe for ProcedureError
impl Send for ProcedureError
impl !Sync for ProcedureError
impl Unpin for ProcedureError
impl !UnwindSafe for ProcedureError
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