pub enum MessageFrameError {
WrongFrame(WrongFrameError),
MetaMismatch(MetaMismatchError),
MalformedJsonData(Error),
MalformedJsonMeta(Error),
}
Expand description
Errors with managing message parts.
Variants§
WrongFrame(WrongFrameError)
Wrong frame type.
MetaMismatch(MetaMismatchError)
When the frame doesn’t have the right meta content.
MalformedJsonData(Error)
When deserializing message data fails.
MalformedJsonMeta(Error)
When deserializing message meta fails.
Trait Implementations§
Source§impl Debug for MessageFrameError
impl Debug for MessageFrameError
Source§impl Display for MessageFrameError
impl Display for MessageFrameError
Source§impl Error for MessageFrameError
impl Error for MessageFrameError
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<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<MetaMismatchError> for MessageFrameError
impl From<MetaMismatchError> for MessageFrameError
Source§fn from(source: MetaMismatchError) -> Self
fn from(source: MetaMismatchError) -> Self
Converts to this type from the input type.
Source§impl From<WrongFrameError> for MessageFrameError
impl From<WrongFrameError> for MessageFrameError
Source§fn from(source: WrongFrameError) -> Self
fn from(source: WrongFrameError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for MessageFrameError
impl !RefUnwindSafe for MessageFrameError
impl Send for MessageFrameError
impl Sync for MessageFrameError
impl Unpin for MessageFrameError
impl !UnwindSafe for MessageFrameError
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