pub enum Error {
Show 24 variants
Bug(&'static str),
Message(String),
InvalidHeader(&'static str),
HttpStatus(StatusCode),
DeadlineExceeded(FormatDeadline),
Interrupted,
Timeout(Duration, String),
RmpSerdeEncode(Error),
Git2(Error),
IndexDiffInit(Error),
IndexDiffChanges(Error),
Io(Error),
FromUtf8(FromUtf8Error),
Reqwest(Error),
ParseInt(ParseIntError),
Rusqlite(Error),
GlobSet(Error),
Horrorshow(Error),
SystemTime(SystemTimeError),
StripPrefixError(StripPrefixError),
Csv(Error),
GlobPattern(PatternError),
Glob(GlobError),
ChannelSendMessage(&'static str),
}
Variants§
Bug(&'static str)
Message(String)
InvalidHeader(&'static str)
HttpStatus(StatusCode)
DeadlineExceeded(FormatDeadline)
Interrupted
Timeout(Duration, String)
RmpSerdeEncode(Error)
Git2(Error)
IndexDiffInit(Error)
IndexDiffChanges(Error)
Io(Error)
FromUtf8(FromUtf8Error)
Reqwest(Error)
ParseInt(ParseIntError)
Rusqlite(Error)
GlobSet(Error)
Horrorshow(Error)
SystemTime(SystemTimeError)
StripPrefixError(StripPrefixError)
Csv(Error)
GlobPattern(PatternError)
Glob(GlobError)
ChannelSendMessage(&'static str)
Implementations§
Trait Implementations§
source§impl Error for Error
impl Error for Error
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<FromUtf8Error> for Error
impl From<FromUtf8Error> for Error
source§fn from(err: FromUtf8Error) -> Error
fn from(err: FromUtf8Error) -> Error
Converts to this type from the input type.
source§impl From<ParseIntError> for Error
impl From<ParseIntError> for Error
source§fn from(err: ParseIntError) -> Error
fn from(err: ParseIntError) -> Error
Converts to this type from the input type.
source§impl From<PatternError> for Error
impl From<PatternError> for Error
source§fn from(err: PatternError) -> Error
fn from(err: PatternError) -> Error
Converts to this type from the input type.
source§impl From<StripPrefixError> for Error
impl From<StripPrefixError> for Error
source§fn from(err: StripPrefixError) -> Error
fn from(err: StripPrefixError) -> Error
Converts to this type from the input type.
source§impl From<SystemTimeError> for Error
impl From<SystemTimeError> for Error
source§fn from(err: SystemTimeError) -> Error
fn from(err: SystemTimeError) -> Error
Converts to this type from the input type.
Auto Trait Implementations§
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> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere T: Display,
§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
Converts the given value to a [
CompactString
]. Read more