pub enum DispatchError {
Show 19 variants
UnsupportedScheme(String),
MalformedUrl(String),
NoHead,
Interrupted,
Transport(TransportError),
Refs(RefError),
RepoLock(LockError),
Io(Error),
Store(StoreError),
Pack(PackError),
SshInit(SshInitError),
DetachedHead,
RemoteBranchMissing(String),
NonFastForwardPull {
branch: String,
},
RestoreSafety(String),
NotCommit,
Restore(RestoreError),
UntrustedRemote(String),
NonFastForwardPush {
branch: String,
},
}Expand description
Errors returned by the push / pull helpers. Mapped to exit codes by the commands themselves.
Variants§
UnsupportedScheme(String)
MalformedUrl(String)
NoHead
Interrupted
A poll-loop checkpoint observed signal::is_shutdown() == true
and aborted partway through. Callers should map this to
exit::TEMPFAIL (75) so retries are safe — the transfer is
half-finished but the remote is unmodified for any ref we
hadn’t reached yet.
Transport(TransportError)
Refs(RefError)
RepoLock(LockError)
Io(Error)
Store(StoreError)
Pack(PackError)
SshInit(SshInitError)
DetachedHead
RemoteBranchMissing(String)
NonFastForwardPull
RestoreSafety(String)
NotCommit
Restore(RestoreError)
UntrustedRemote(String)
The per-endpoint credential-trust gate (#97) refused to build a
credential-bearing transport for a repo-chosen endpoint the user
has not explicitly trusted. The wrapped string is the actionable
message produced by crate::config::endpoint_credential_trust.
NonFastForwardPush
A CAS ref write was rejected because the remote moved under us
(non-fast-forward). Callers map this to an actionable
fetch-then-retry / --force-with-lease hint.
Trait Implementations§
Source§impl Debug for DispatchError
impl Debug for DispatchError
Source§impl Display for DispatchError
impl Display for DispatchError
Source§impl Error for DispatchError
impl Error for DispatchError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()