#[non_exhaustive]pub enum WarningEditError {
Malformed(HeaderError),
IndexOutOfRange {
index: usize,
},
InvalidPseudonym,
}Expand description
Why a parser-owned Warning agent could not be edited losslessly.
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.
Malformed(HeaderError)
At least one row did not match the complete Warning field grammar.
IndexOutOfRange
The flattened, zero-based Warning value index does not exist.
InvalidPseudonym
The replacement is empty or is not one RFC 3261 token.
Trait Implementations§
Source§impl Clone for WarningEditError
impl Clone for WarningEditError
Source§fn clone(&self) -> WarningEditError
fn clone(&self) -> WarningEditError
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 WarningEditError
impl Debug for WarningEditError
Source§impl Display for WarningEditError
impl Display for WarningEditError
Source§impl Error for WarningEditError
impl Error for WarningEditError
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 WarningEditError
impl PartialEq for WarningEditError
Source§fn eq(&self, other: &WarningEditError) -> bool
fn eq(&self, other: &WarningEditError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for WarningEditError
impl StructuralPartialEq for WarningEditError
Auto Trait Implementations§
impl Freeze for WarningEditError
impl RefUnwindSafe for WarningEditError
impl Send for WarningEditError
impl Sync for WarningEditError
impl Unpin for WarningEditError
impl UnsafeUnpin for WarningEditError
impl UnwindSafe for WarningEditError
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