pub enum PushFailure {
Preflight(RemotePreflightBlocker),
NamedThreadTipMismatch {
thread: String,
tip_short: String,
current_short: String,
},
RemoteFailed {
track_name: String,
error: String,
},
}Expand description
Typed push failure. Pure facts only; CLI maps via PushFailure::advice_kind
and field accessors into RecoveryAdvice.
Variants§
Preflight(RemotePreflightBlocker)
Preflight blocker from plan_push.
NamedThreadTipMismatch
heddle#837: named existing thread tip ≠ current checkout, without --force.
RemoteFailed
Hosted/network push or multi-thread fan-out reported failure.
Implementations§
Source§impl PushFailure
impl PushFailure
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 PushFailure
impl Clone for PushFailure
Source§fn clone(&self) -> PushFailure
fn clone(&self) -> PushFailure
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 PushFailure
impl Debug for PushFailure
Source§impl Display for PushFailure
impl Display for PushFailure
impl Eq for PushFailure
Source§impl Error for PushFailure
impl Error for PushFailure
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 PushFailure
impl PartialEq for PushFailure
impl StructuralPartialEq for PushFailure
Auto Trait Implementations§
impl Freeze for PushFailure
impl RefUnwindSafe for PushFailure
impl Send for PushFailure
impl Sync for PushFailure
impl Unpin for PushFailure
impl UnsafeUnpin for PushFailure
impl UnwindSafe for PushFailure
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