pub enum ExtractorError {
MessageFrameError(MessageFrameError),
RoutingFailed(PathError),
StateNotReady(StateNotReadyError),
Boxed(BoxError),
ExtractionFailed(String),
}
Expand description
An error that occurs when extracting data from a frame.
Variants§
MessageFrameError(MessageFrameError)
Frame is not a message.
RoutingFailed(PathError)
When the path extractor fails to extract and deserialize from routes.
StateNotReady(StateNotReadyError)
When the state is not ready.
Boxed(BoxError)
For general box errors.
ExtractionFailed(String)
An error for consumers who just want to use a string.
Trait Implementations§
Source§impl Debug for ExtractorError
impl Debug for ExtractorError
Source§impl Display for ExtractorError
impl Display for ExtractorError
Source§impl Error for ExtractorError
impl Error for ExtractorError
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<ExtractorError> for Error
impl From<ExtractorError> for Error
Source§fn from(source: ExtractorError) -> Self
fn from(source: ExtractorError) -> Self
Converts to this type from the input type.
Source§impl From<Infallible> for ExtractorError
impl From<Infallible> for ExtractorError
Source§fn from(_: Infallible) -> Self
fn from(_: Infallible) -> Self
Converts to this type from the input type.
Source§impl From<MessageFrameError> for ExtractorError
impl From<MessageFrameError> for ExtractorError
Source§fn from(source: MessageFrameError) -> Self
fn from(source: MessageFrameError) -> Self
Converts to this type from the input type.
Source§impl From<PathError> for ExtractorError
impl From<PathError> for ExtractorError
Source§impl From<StateNotReadyError> for ExtractorError
impl From<StateNotReadyError> for ExtractorError
Source§fn from(source: StateNotReadyError) -> Self
fn from(source: StateNotReadyError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ExtractorError
impl !RefUnwindSafe for ExtractorError
impl Send for ExtractorError
impl Sync for ExtractorError
impl Unpin for ExtractorError
impl !UnwindSafe for ExtractorError
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