pub struct WrongFrameError;
Expand description
Sometimes the frame isn’t a message when we expect it to be.
Trait Implementations§
Source§impl Debug for WrongFrameError
impl Debug for WrongFrameError
Source§impl Display for WrongFrameError
impl Display for WrongFrameError
Source§impl Error for WrongFrameError
impl Error for WrongFrameError
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<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 WrongFrameError
impl RefUnwindSafe for WrongFrameError
impl Send for WrongFrameError
impl Sync for WrongFrameError
impl Unpin for WrongFrameError
impl UnwindSafe for WrongFrameError
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