pub enum DuskError {
InvalidComponentError(String),
InteractionError(Error),
MessageValidationError(MessageValidationError),
DeserializeBodyError(DeserializeBodyError),
RecvError(RecvError),
}Variants§
InvalidComponentError(String)
InteractionError(Error)
MessageValidationError(MessageValidationError)
DeserializeBodyError(DeserializeBodyError)
RecvError(RecvError)
Trait Implementations§
Source§impl Error for DuskError
impl Error for DuskError
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<DeserializeBodyError> for DuskError
impl From<DeserializeBodyError> for DuskError
Source§fn from(source: DeserializeBodyError) -> Self
fn from(source: DeserializeBodyError) -> Self
Converts to this type from the input type.
Source§impl From<MessageValidationError> for DuskError
impl From<MessageValidationError> for DuskError
Source§fn from(source: MessageValidationError) -> Self
fn from(source: MessageValidationError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !Freeze for DuskError
impl !RefUnwindSafe for DuskError
impl Send for DuskError
impl Sync for DuskError
impl Unpin for DuskError
impl !UnwindSafe for DuskError
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