pub enum FrameIoError {
Io(Error),
DecodeHeader(DecodeError),
BodyTooLarge {
len: u32,
max: u32,
},
UnexpectedEof {
stage: ReadStage,
expected: usize,
actual: usize,
},
BodyLengthMismatch {
header_len: u32,
body_len: usize,
},
}Expand description
Errors from async envelope frame I/O.
Variants§
Trait Implementations§
Source§impl Debug for FrameIoError
impl Debug for FrameIoError
Source§impl Display for FrameIoError
impl Display for FrameIoError
Source§impl Error for FrameIoError
impl Error for FrameIoError
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<Error> for FrameIoError
impl From<Error> for FrameIoError
Source§fn from(err: Error) -> FrameIoError
fn from(err: Error) -> FrameIoError
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for FrameIoError
impl !UnwindSafe for FrameIoError
impl Freeze for FrameIoError
impl Send for FrameIoError
impl Sync for FrameIoError
impl Unpin for FrameIoError
impl UnsafeUnpin for FrameIoError
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