pub enum DigitalLinkError {
MissingGtin,
InvalidGtin(String),
InvalidGtinCheckDigit {
gtin: String,
expected: u32,
actual: u32,
},
InvalidScheme(String),
UnknownApplicationIdentifier(String),
QualifiersOutOfOrder {
before: String,
before_ord: u8,
after: String,
after_ord: u8,
},
}Variants§
MissingGtin
InvalidGtin(String)
InvalidGtinCheckDigit
InvalidScheme(String)
UnknownApplicationIdentifier(String)
QualifiersOutOfOrder
Trait Implementations§
Source§impl Debug for DigitalLinkError
impl Debug for DigitalLinkError
Source§impl Display for DigitalLinkError
impl Display for DigitalLinkError
Source§impl Error for DigitalLinkError
impl Error for DigitalLinkError
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 DigitalLinkError
impl RefUnwindSafe for DigitalLinkError
impl Send for DigitalLinkError
impl Sync for DigitalLinkError
impl Unpin for DigitalLinkError
impl UnsafeUnpin for DigitalLinkError
impl UnwindSafe for DigitalLinkError
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