pub enum PullError {
DetachedHead,
InvalidHead,
NoUpstream {
branch: String,
},
RebaseInteractive,
Rebase(RebaseSessionError),
Remote(RemoteError),
Repository(Error),
}Expand description
Errors from pull.
Variants§
DetachedHead
HEAD points at a detached commit.
InvalidHead
HEAD could not be interpreted.
NoUpstream
No upstream is configured or the tracking ref did not resolve after fetch.
RebaseInteractive
pull.rebase=interactive (or branch rebase) is not supported.
Rebase(RebaseSessionError)
Starting the rebase session failed (for example a rebase is already in progress).
Remote(RemoteError)
Remote resolution or transport failure.
Repository(Error)
Other repository failures.
Implementations§
Source§impl PullError
impl PullError
Sourcepub fn is_remote_unreadable(&self) -> bool
pub fn is_remote_unreadable(&self) -> bool
Whether the remote could not be read at all (Error::RemoteUnreadable).
Sourcepub fn is_cancelled(&self) -> bool
pub fn is_cancelled(&self) -> bool
Whether the pull was cancelled (Error::Cancelled).
Trait Implementations§
Source§impl Error for PullError
impl Error for PullError
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<RemoteError> for PullError
impl From<RemoteError> for PullError
Source§fn from(source: RemoteError) -> Self
fn from(source: RemoteError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for PullError
impl !UnwindSafe for PullError
impl Freeze for PullError
impl Send for PullError
impl Sync for PullError
impl Unpin for PullError
impl UnsafeUnpin for PullError
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