pub enum Error {
Show 19 variants
Generic(String),
NoHead,
RebaseConflict,
UnknownRemote,
NoDefaultRemoteFound,
NoWorkDir,
UncommittedChanges,
NoBlameOnBinaryFile,
BinaryFile,
Io(Error),
Git(Error),
StripPrefix(StripPrefixError),
Utf8Conversion(FromUtf8Error),
IntConversion(TryFromIntError),
EasyCast(Error),
NoParent,
NoBranch,
ThreadPool(ThreadPoolBuildError),
Hooks(HooksError),
}
Expand description
Variants§
Generic(String)
NoHead
RebaseConflict
UnknownRemote
NoDefaultRemoteFound
NoWorkDir
UncommittedChanges
NoBlameOnBinaryFile
BinaryFile
Io(Error)
Git(Error)
StripPrefix(StripPrefixError)
Utf8Conversion(FromUtf8Error)
IntConversion(TryFromIntError)
EasyCast(Error)
NoParent
NoBranch
ThreadPool(ThreadPoolBuildError)
Hooks(HooksError)
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(source: FromUtf8Error) -> Self
fn from(source: FromUtf8Error) -> Self
Converts to this type from the input type.
source§impl From<HooksError> for Error
impl From<HooksError> for Error
source§fn from(source: HooksError) -> Self
fn from(source: HooksError) -> Self
Converts to this type from the input type.
source§impl<T> From<PoisonError<T>> for Error
impl<T> From<PoisonError<T>> for Error
source§fn from(error: PoisonError<T>) -> Self
fn from(error: PoisonError<T>) -> Self
Converts to this type from the input type.
source§impl From<StripPrefixError> for Error
impl From<StripPrefixError> for Error
source§fn from(source: StripPrefixError) -> Self
fn from(source: StripPrefixError) -> Self
Converts to this type from the input type.
source§impl From<ThreadPoolBuildError> for Error
impl From<ThreadPoolBuildError> for Error
source§fn from(source: ThreadPoolBuildError) -> Self
fn from(source: ThreadPoolBuildError) -> Self
Converts to this type from the input type.
source§impl From<TryFromIntError> for Error
impl From<TryFromIntError> for Error
source§fn from(source: TryFromIntError) -> Self
fn from(source: TryFromIntError) -> Self
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> 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
source§impl<S, T> CastApprox<T> for Swhere
T: ConvApprox<S>,
impl<S, T> CastApprox<T> for Swhere
T: ConvApprox<S>,
source§fn try_cast_approx(self) -> Result<T, Error>
fn try_cast_approx(self) -> Result<T, Error>
source§fn cast_approx(self) -> T
fn cast_approx(self) -> T
source§impl<S, T> CastFloat<T> for Swhere
T: ConvFloat<S>,
impl<S, T> CastFloat<T> for Swhere
T: ConvFloat<S>,
source§fn cast_trunc(self) -> T
fn cast_trunc(self) -> T
Cast to integer, truncating Read more
source§fn cast_nearest(self) -> T
fn cast_nearest(self) -> T
Cast to the nearest integer Read more
source§fn cast_floor(self) -> T
fn cast_floor(self) -> T
Cast the floor to an integer Read more