pub enum FrameCodecError {
Decode(Error),
Encode(Error),
InvalidLength(usize),
InvalidField(&'static str),
BinaryPayloadRequiresBinaryFrame,
}Expand description
Failure while encoding or decoding a Phoenix JSON v2 frame.
Variants§
Decode(Error)
The JSON text could not be decoded.
Encode(Error)
The frame could not be serialized as JSON.
InvalidLength(usize)
The JSON array did not contain exactly five fields.
InvalidField(&'static str)
A serializer field had the wrong JSON type.
BinaryPayloadRequiresBinaryFrame
A binary payload was passed to the JSON text encoder.
Trait Implementations§
Source§impl Debug for FrameCodecError
impl Debug for FrameCodecError
Source§impl Display for FrameCodecError
impl Display for FrameCodecError
Source§impl Error for FrameCodecError
impl Error for FrameCodecError
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<FrameCodecError> for CodecError
impl From<FrameCodecError> for CodecError
Source§fn from(source: FrameCodecError) -> Self
fn from(source: FrameCodecError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for FrameCodecError
impl !RefUnwindSafe for FrameCodecError
impl Send for FrameCodecError
impl Sync for FrameCodecError
impl Unpin for FrameCodecError
impl UnsafeUnpin for FrameCodecError
impl !UnwindSafe for FrameCodecError
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