#[non_exhaustive]pub enum WarningKind {
MinorCompliance,
NonFatalTruncation,
UnusualFeature,
}Expand description
Broad warning category for non-fatal decode issues.
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.
MinorCompliance
Minor compliance issue that did not prevent decode.
NonFatalTruncation
Non-fatal truncation tolerated by the codec.
UnusualFeature
Unusual but accepted feature or structure.
Trait Implementations§
Source§impl Clone for WarningKind
impl Clone for WarningKind
Source§fn clone(&self) -> WarningKind
fn clone(&self) -> WarningKind
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 moreimpl Copy for WarningKind
Source§impl Debug for WarningKind
impl Debug for WarningKind
impl Eq for WarningKind
Source§impl PartialEq for WarningKind
impl PartialEq for WarningKind
Source§fn eq(&self, other: &WarningKind) -> bool
fn eq(&self, other: &WarningKind) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for WarningKind
Auto Trait Implementations§
impl Freeze for WarningKind
impl RefUnwindSafe for WarningKind
impl Send for WarningKind
impl Sync for WarningKind
impl Unpin for WarningKind
impl UnsafeUnpin for WarningKind
impl UnwindSafe for WarningKind
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