#[non_exhaustive]pub enum PushFailure {
Raced,
Unreachable,
Refused,
}Expand description
Why a push that exited non-zero failed, read from git’s stderr.
A lost race is worth one more fetch-and-try; an unreachable remote says
nothing about the push itself; everything else is a refusal to report
verbatim. An unrecognised message is Refused, the direction that never
claims a push was merely unlucky.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
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 moreimpl 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