#[non_exhaustive]pub enum LayerError {
TooSmallBelow {
layer: &'static str,
needs: u16,
below: u16,
},
Lane {
layer: &'static str,
lane: LaneKey,
reason: String,
},
Failed {
layer: &'static str,
reason: String,
},
Unsupported {
layer: &'static str,
reason: String,
},
}Expand description
Why a layer refused to be built over what is below it, or refused an SDU.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
TooSmallBelow
The layer below carries too little for this layer’s overhead.
Lane
A lane the layer cannot serve, with the reason.
Failed
The layer cannot transform this SDU, or cannot go on at all, in its
own words. The Stack raises it as a device fault, once, and refuses
the SDU the way a medium’s refusal is handled.
Unsupported
What is below cannot be layered over: a frame too small to hold a header, a medium that already fragments.
Trait Implementations§
Source§impl Debug for LayerError
impl Debug for LayerError
Source§impl Display for LayerError
impl Display for LayerError
Source§impl Error for LayerError
impl Error for LayerError
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()
Auto Trait Implementations§
impl Freeze for LayerError
impl RefUnwindSafe for LayerError
impl Send for LayerError
impl Sync for LayerError
impl Unpin for LayerError
impl UnsafeUnpin for LayerError
impl UnwindSafe for LayerError
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