pub enum RemotePreflightBlocker {
MissingRemote,
TransportMismatch,
GitOverlayThreadMismatch {
requested: String,
attached: Option<String>,
},
}Expand description
Pure preflight refusals for push/pull orchestration.
Derived only from caller-supplied facts (flags, HEAD attachment, transport
classification). CLI maps these to recovery advice / user-facing errors;
dirty-worktree enforcement still runs via CLI ensure_worktree_clean when
the plan’s requires_clean_worktree policy is true.
Variants§
MissingRemote
No remote argument and no configured default remote.
TransportMismatch
Native heddle repo targeting a Git URL or local Git remote.
GitOverlayThreadMismatch
Git-overlay current-thread refs push requested a non-attached thread.
Implementations§
Source§impl RemotePreflightBlocker
impl RemotePreflightBlocker
Sourcepub fn advice_kind(&self) -> &'static str
pub fn advice_kind(&self) -> &'static str
RecoveryAdvice kind for this preflight blocker.
Trait Implementations§
Source§impl Clone for RemotePreflightBlocker
impl Clone for RemotePreflightBlocker
Source§fn clone(&self) -> RemotePreflightBlocker
fn clone(&self) -> RemotePreflightBlocker
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 RemotePreflightBlocker
impl Debug for RemotePreflightBlocker
Source§impl Display for RemotePreflightBlocker
impl Display for RemotePreflightBlocker
impl Eq for RemotePreflightBlocker
Source§impl Error for RemotePreflightBlocker
impl Error for RemotePreflightBlocker
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 RemotePreflightBlocker
impl PartialEq for RemotePreflightBlocker
impl StructuralPartialEq for RemotePreflightBlocker
Auto Trait Implementations§
impl Freeze for RemotePreflightBlocker
impl RefUnwindSafe for RemotePreflightBlocker
impl Send for RemotePreflightBlocker
impl Sync for RemotePreflightBlocker
impl Unpin for RemotePreflightBlocker
impl UnsafeUnpin for RemotePreflightBlocker
impl UnwindSafe for RemotePreflightBlocker
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