#[non_exhaustive]pub struct FrameError {
pub kind: FrameErrorKind,
}Expand description
Error from frame read/write.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.kind: FrameErrorKindWhat specifically went wrong.
Implementations§
Source§impl FrameError
impl FrameError
Sourcepub const fn new(kind: FrameErrorKind) -> Self
pub const fn new(kind: FrameErrorKind) -> Self
Construct a FrameError from its kind.
Trait Implementations§
Source§impl Debug for FrameError
impl Debug for FrameError
Source§impl Display for FrameError
impl Display for FrameError
Source§impl Error for FrameError
impl Error for FrameError
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<FrameError> for ProtocolError
impl From<FrameError> for ProtocolError
Source§fn from(source: FrameError) -> Self
fn from(source: FrameError) -> Self
Converts to this type from the input type.
Source§impl From<FrameErrorKind> for FrameError
impl From<FrameErrorKind> for FrameError
Source§fn from(kind: FrameErrorKind) -> Self
fn from(kind: FrameErrorKind) -> Self
Converts to this type from the input type.
Source§impl From<PrimitiveError> for FrameError
impl From<PrimitiveError> for FrameError
Source§fn from(err: PrimitiveError) -> Self
fn from(err: PrimitiveError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for FrameError
impl RefUnwindSafe for FrameError
impl Send for FrameError
impl Sync for FrameError
impl Unpin for FrameError
impl UnsafeUnpin for FrameError
impl UnwindSafe for FrameError
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