#[non_exhaustive]pub enum Decoded {
Accepted,
Refused {
reason: &'static str,
detail: String,
},
}Expand description
What Layer::decode made of a frame.
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.
Accepted
The frame was taken: whatever it yielded is in out, which may be
nothing yet (a reassembly in progress).
Refused
The frame was refused and nothing was delivered. reason is a short
fixed word the layer also counts under ("auth-failed",
"replay", "foreign"); detail is the layer’s own sentence for
the log and the fault.
Implementations§
Trait Implementations§
impl Eq for Decoded
impl StructuralPartialEq for Decoded
Auto Trait Implementations§
impl Freeze for Decoded
impl RefUnwindSafe for Decoded
impl Send for Decoded
impl Sync for Decoded
impl Unpin for Decoded
impl UnsafeUnpin for Decoded
impl UnwindSafe for Decoded
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