pub enum PullFailure {
Preflight(RemotePreflightBlocker),
LocalLazyUnsupported {
source_path: String,
},
RemoteFailed {
remote_thread: String,
local_thread: Option<String>,
error: String,
},
}Expand description
Typed pull failure. Pure facts only; CLI maps to RecoveryAdvice.
Variants§
Preflight(RemotePreflightBlocker)
Preflight blocker from plan_pull.
LocalLazyUnsupported
--lazy is unsupported on local path remotes.
RemoteFailed
Hosted/network pull reported failure.
Implementations§
Source§impl PullFailure
impl PullFailure
Sourcepub fn advice_kind(&self) -> &'static str
pub fn advice_kind(&self) -> &'static str
RecoveryAdvice kind this failure should surface as.
Sourcepub fn primary_command(&self) -> String
pub fn primary_command(&self) -> String
Primary recovery command for this failure (unstyled).
Sourcepub fn recovery_hint(&self) -> String
pub fn recovery_hint(&self) -> String
Operator-facing recovery hint (unstyled prose).
Trait Implementations§
Source§impl Clone for PullFailure
impl Clone for PullFailure
Source§fn clone(&self) -> PullFailure
fn clone(&self) -> PullFailure
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PullFailure
impl Debug for PullFailure
Source§impl Display for PullFailure
impl Display for PullFailure
impl Eq for PullFailure
Source§impl Error for PullFailure
impl Error for PullFailure
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 PartialEq for PullFailure
impl PartialEq for PullFailure
impl StructuralPartialEq for PullFailure
Auto Trait Implementations§
impl Freeze for PullFailure
impl RefUnwindSafe for PullFailure
impl Send for PullFailure
impl Sync for PullFailure
impl Unpin for PullFailure
impl UnsafeUnpin for PullFailure
impl UnwindSafe for PullFailure
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