pub enum Error {
Show 22 variants
Protobuf(Error),
Io(Error),
Utf8(FromUtf8Error),
NativeProtobuf(ProtobufError),
MessagePackEncode(Error),
Avro(Avro),
Cbor(Error),
Hjson(Error),
Json(Error),
Yaml(Error),
YamlScan(ScanError),
TomlDeserialize(Error),
TomlSerialize(Error),
Glob(GlobError),
GlobPattern(PatternError),
Csv(Error),
MessagePackDecode(Error),
Unimplemented {
msg: String,
},
IllegalState {
msg: String,
},
Format {
msg: String,
},
Internal(&'static str),
Message(String),
}
Variants§
Protobuf(Error)
Io(Error)
Utf8(FromUtf8Error)
NativeProtobuf(ProtobufError)
MessagePackEncode(Error)
Avro(Avro)
Cbor(Error)
Hjson(Error)
Json(Error)
Yaml(Error)
YamlScan(ScanError)
TomlDeserialize(Error)
TomlSerialize(Error)
Glob(GlobError)
GlobPattern(PatternError)
Csv(Error)
MessagePackDecode(Error)
Unimplemented
IllegalState
Format
Internal(&'static str)
Message(String)
Implementations§
Source§impl Error
impl Error
pub fn unimplemented(msg: String) -> Self
pub fn illegal_state(msg: String) -> Self
Trait Implementations§
Source§impl Fail for Error
impl Fail for Error
Source§fn cause(&self) -> Option<&dyn Fail>
fn cause(&self) -> Option<&dyn Fail>
Returns a reference to the underlying cause of this failure, if it
is an error that wraps other errors. Read more
Source§fn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
Returns a reference to the
Backtrace
carried by this failure, if it
carries one. Read moreSource§impl From<ValueWriteError> for Error
impl From<ValueWriteError> for Error
Source§impl From<FromUtf8Error> for Error
impl From<FromUtf8Error> for Error
Source§fn from(e: FromUtf8Error) -> Self
fn from(e: FromUtf8Error) -> Self
Converts to this type from the input type.
Source§impl From<PatternError> for Error
impl From<PatternError> for Error
Source§fn from(e: PatternError) -> Self
fn from(e: PatternError) -> Self
Converts to this type from the input type.
Source§impl From<ProtobufError> for Error
impl From<ProtobufError> for Error
Source§fn from(e: ProtobufError) -> Self
fn from(e: ProtobufError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Error
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
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