pub enum InputCodecError {
Io(Error),
Utf8(FromUtf8Error),
Codec(Box<dyn Error + Send + Sync>),
MissingExtension,
UnknownCodec(String),
}Expand description
Failure while selecting or invoking an input codec.
Variants§
Io(Error)
Reading the input failed.
Utf8(FromUtf8Error)
Input bytes were not valid UTF-8.
Codec(Box<dyn Error + Send + Sync>)
A concrete codec rejected the input.
MissingExtension
A path has no usable filename extension.
UnknownCodec(String)
No codec for the requested result type has this name or extension.
Implementations§
Trait Implementations§
Source§impl Debug for InputCodecError
impl Debug for InputCodecError
Source§impl Display for InputCodecError
impl Display for InputCodecError
Source§impl Error for InputCodecError
impl Error for InputCodecError
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<Error> for InputCodecError
impl From<Error> for InputCodecError
Source§impl From<FromUtf8Error> for InputCodecError
impl From<FromUtf8Error> for InputCodecError
Source§fn from(error: FromUtf8Error) -> Self
fn from(error: FromUtf8Error) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for InputCodecError
impl !UnwindSafe for InputCodecError
impl Freeze for InputCodecError
impl Send for InputCodecError
impl Sync for InputCodecError
impl Unpin for InputCodecError
impl UnsafeUnpin for InputCodecError
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