pub enum PathError {
FrameIsNotAMessage,
IncorrectActionContext,
FailedToCapture(String),
DeserializationFailure(Error),
}
Expand description
These errors can occur when trying to deserialize frame messages.
Variants§
FrameIsNotAMessage
Sometimes the frame isn’t a message when we expect it to be.
IncorrectActionContext
Sometimes the path extraction is attempted with the wrong kind of system.
FailedToCapture(String)
Sometimes the path we’ve been given doesn’t have any captures. This is an error because we can’t proceed and attempt to deserialize if so.
DeserializationFailure(Error)
Sometimes the path extraction fails to capture the given types. This can happen for a number of reasons, the most likely being that the type we’ve been given isn’t a tuple and the consumer tried to extract a single type that wasn’t friendly with the fact that we need to deserialize lists.
Trait Implementations§
Source§impl Error for PathError
impl Error for PathError
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()
Auto Trait Implementations§
impl Freeze for PathError
impl !RefUnwindSafe for PathError
impl Send for PathError
impl Sync for PathError
impl Unpin for PathError
impl !UnwindSafe for PathError
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