pub enum FetchRefspecError {
InvalidRefspec {
spec: String,
message: String,
},
SourceNotFound {
ref_name: String,
spec: String,
},
AmbiguousSource {
ref_name: String,
spec: String,
},
}Expand description
Errors while resolving fetch refspecs before transfer.
Variants§
InvalidRefspec
A refspec string failed parse_fetch_refspec.
SourceNotFound
No advertised remote ref matches the source side of an explicit refspec.
Fields
AmbiguousSource
More than one advertised ref matches an ambiguous short source.
Trait Implementations§
Source§impl Clone for FetchRefspecError
impl Clone for FetchRefspecError
Source§impl Debug for FetchRefspecError
impl Debug for FetchRefspecError
Source§impl Display for FetchRefspecError
impl Display for FetchRefspecError
impl Eq for FetchRefspecError
Source§impl Error for FetchRefspecError
impl Error for FetchRefspecError
1.30.0 · 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<FetchRefspecError> for Error
impl From<FetchRefspecError> for Error
Source§fn from(source: FetchRefspecError) -> Self
fn from(source: FetchRefspecError) -> Self
Converts to this type from the input type.
Source§impl From<RefspecError> for FetchRefspecError
impl From<RefspecError> for FetchRefspecError
Source§fn from(e: RefspecError) -> Self
fn from(e: RefspecError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for FetchRefspecError
impl PartialEq for FetchRefspecError
impl StructuralPartialEq for FetchRefspecError
Auto Trait Implementations§
impl Freeze for FetchRefspecError
impl RefUnwindSafe for FetchRefspecError
impl Send for FetchRefspecError
impl Sync for FetchRefspecError
impl Unpin for FetchRefspecError
impl UnsafeUnpin for FetchRefspecError
impl UnwindSafe for FetchRefspecError
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