Enum versio::errors::ErrorKind [−][src]
pub enum ErrorKind {
Show 19 variants
Num(ParseIntError),
Io(Error),
Git2(Error),
Yaml(ScanError),
SerdeYaml(Error),
SerdeJson(Error),
Toml(Error),
Regex(Error),
Utf(Utf8Error),
FromUtf(FromUtf8Error),
Glob(PatternError),
Xml(Error),
Log(SetLoggerError),
Octo(Error),
Liquid(Error),
Ignore(Error),
Hyper(Error),
HyperInvalid(InvalidUri),
Msg(String),
// some variants omitted
}
Expand description
The kind of an error.
Variants
Tuple Fields of Num
Tuple Fields of Io
0: Error
Tuple Fields of Git2
0: Error
Tuple Fields of Yaml
0: ScanError
Tuple Fields of SerdeYaml
0: Error
Tuple Fields of SerdeJson
0: Error
Tuple Fields of Toml
0: Error
Tuple Fields of Regex
0: Error
Tuple Fields of Utf
0: Utf8Error
Tuple Fields of FromUtf
Tuple Fields of Glob
0: PatternError
Tuple Fields of Xml
0: Error
Tuple Fields of Log
Tuple Fields of Octo
0: Error
Tuple Fields of Ignore
0: Error
Tuple Fields of Hyper
0: Error
Tuple Fields of HyperInvalid
0: InvalidUri
A convenient variant for String.
Tuple Fields of Msg
0: String
Implementations
A string describing the error kind.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for ErrorKind
impl !UnwindSafe for ErrorKind
Blanket Implementations
type Err = NoError
type Err = NoError
The error type produced by a failed conversion.
pub fn approx_from(
src: Src
) -> Result<Src, <Src as ApproxFrom<Src, Scheme>>::Err>
pub fn approx_from(
src: Src
) -> Result<Src, <Src as ApproxFrom<Src, Scheme>>::Err>
Convert the given value into an approximately equivalent representation.
type Err = <Dst as ApproxFrom<Src, Scheme>>::Err
type Err = <Dst as ApproxFrom<Src, Scheme>>::Err
The error type produced by a failed conversion.
pub fn approx_into(self) -> Result<Dst, <Src as ApproxInto<Dst, Scheme>>::Err>
pub fn approx_into(self) -> Result<Dst, <Src as ApproxInto<Dst, Scheme>>::Err>
Convert the subject into an approximately equivalent representation.
Mutably borrows from an owned value. Read more
Approximate the subject to a given type with the default scheme.
fn approx_as_by<Dst, Scheme>(self) -> Result<Dst, Self::Err> where
Self: ApproxInto<Dst, Scheme>,
Scheme: ApproxScheme,
fn approx_as_by<Dst, Scheme>(self) -> Result<Dst, Self::Err> where
Self: ApproxInto<Dst, Scheme>,
Scheme: ApproxScheme,
Approximate the subject to a given type with a specific scheme.
Attempt to convert the subject to a given type.
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
type Err = NoError
type Err = NoError
The error type produced by a failed conversion.
pub fn value_from(src: Src) -> Result<Src, <Src as ValueFrom<Src>>::Err>
pub fn value_from(src: Src) -> Result<Src, <Src as ValueFrom<Src>>::Err>
Convert the given value into an exactly equivalent representation.
type Err = <Dst as ValueFrom<Src>>::Err
type Err = <Dst as ValueFrom<Src>>::Err
The error type produced by a failed conversion.
pub fn value_into(self) -> Result<Dst, <Src as ValueInto<Dst>>::Err>
pub fn value_into(self) -> Result<Dst, <Src as ValueInto<Dst>>::Err>
Convert the subject into an exactly equivalent representation.