pub enum FrameBuildError {
BodyTooLarge {
body_len: usize,
},
BodyExceedsMax {
body_len: usize,
max: u32,
},
}Expand description
Why a frame could not be constructed or emitted coherently.
Variants§
BodyTooLarge
The opaque body cannot be represented by the envelope’s u32 length.
BodyExceedsMax
The opaque body exceeds the maximum frame body the wire allows; a peer’s reader would reject it before allocating, so it must not be built.
Trait Implementations§
Source§impl Clone for FrameBuildError
impl Clone for FrameBuildError
Source§fn clone(&self) -> FrameBuildError
fn clone(&self) -> FrameBuildError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FrameBuildError
impl Debug for FrameBuildError
Source§impl Display for FrameBuildError
impl Display for FrameBuildError
impl Eq for FrameBuildError
Source§impl Error for FrameBuildError
impl Error for FrameBuildError
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 PartialEq for FrameBuildError
impl PartialEq for FrameBuildError
Source§fn eq(&self, other: &FrameBuildError) -> bool
fn eq(&self, other: &FrameBuildError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for FrameBuildError
Auto Trait Implementations§
impl Freeze for FrameBuildError
impl RefUnwindSafe for FrameBuildError
impl Send for FrameBuildError
impl Sync for FrameBuildError
impl Unpin for FrameBuildError
impl UnsafeUnpin for FrameBuildError
impl UnwindSafe for FrameBuildError
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