#[non_exhaustive]pub enum KodikError {
Decode(DecodeError),
FromUtf8(FromUtf8Error),
Regex(&'static str),
LinkCannotBeDecoded(String),
}Expand description
Errors from kodik-parser.
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.
Decode(DecodeError)
Base64 decoding error.
FromUtf8(FromUtf8Error)
UTF-8 conversion error.
Regex(&'static str)
Regex matching error.
LinkCannotBeDecoded(String)
Link cannot be decoded error.
Trait Implementations§
Source§impl Debug for KodikError
impl Debug for KodikError
Source§impl Display for KodikError
impl Display for KodikError
Source§impl Error for KodikError
impl Error for KodikError
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 From<DecodeError> for KodikError
impl From<DecodeError> for KodikError
Source§fn from(source: DecodeError) -> Self
fn from(source: DecodeError) -> Self
Converts to this type from the input type.
Source§impl From<FromUtf8Error> for KodikError
impl From<FromUtf8Error> for KodikError
Source§fn from(source: FromUtf8Error) -> Self
fn from(source: FromUtf8Error) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for KodikError
impl RefUnwindSafe for KodikError
impl Send for KodikError
impl Sync for KodikError
impl Unpin for KodikError
impl UnsafeUnpin for KodikError
impl UnwindSafe for KodikError
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