pub enum PushFailure {
Raced,
Unreachable,
Refused,
}Expand description
Why a push that exited non-zero failed, read from git’s stderr.
Three classes, because the callers act differently on each: a lost race
is worth one more fetch-and-try, an unreachable remote says nothing about
the push itself, and everything else is a refusal to report verbatim.
An unrecognised message is Refused — the direction that never claims a
push was merely unlucky.
Variants§
Trait Implementations§
Source§impl Clone for PushFailure
impl Clone for PushFailure
impl Copy for PushFailure
Source§impl Debug for PushFailure
impl Debug for PushFailure
impl Eq for PushFailure
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