pub enum RefSearchError {
Failure(String),
IOError(Error),
NotFound(String),
ParsingFailure(String),
}
Expand description
Failed to find reference on remote
Variants§
Failure(String)
Thrown when git-ls-remote(1)
fails to execute.
IOError(Error)
Generic IO error
NotFound(String)
Failed to find reference
ParsingFailure(String)
git-ls-remote(1)
returned garbage on STDOUT
Trait Implementations§
Source§impl Debug for RefSearchError
impl Debug for RefSearchError
Source§impl Display for RefSearchError
impl Display for RefSearchError
Source§impl Error for RefSearchError
impl Error for RefSearchError
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 RefSearchError
impl From<Error> for RefSearchError
Source§impl From<RefSearchError> for PosixError
impl From<RefSearchError> for PosixError
Source§fn from(err: RefSearchError) -> Self
fn from(err: RefSearchError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for RefSearchError
impl !RefUnwindSafe for RefSearchError
impl Send for RefSearchError
impl Sync for RefSearchError
impl Unpin for RefSearchError
impl !UnwindSafe for RefSearchError
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