pub enum PushRefStatus {
UpToDate,
Ok,
RejectNonFastForward,
RejectAlreadyExists,
RejectFetchFirst,
RejectNeedsForce,
RejectStale,
RemoteRejected,
AtomicPushFailed,
}Expand description
The resolved outcome of a single reference update during a push.
Variants§
UpToDate
The reference was already at the requested value (=, [up to date]).
Ok
A successful update (* new, - delete, fast-forward, + forced).
RejectNonFastForward
Client-side rejection: the update is not a fast-forward and --force
was not given (!, [rejected] (non-fast-forward)).
RejectAlreadyExists
Rejected because the new ref already exists (!, [rejected] (already exists)).
RejectFetchFirst
Rejected because the remote has the ref but we need to fetch first.
RejectNeedsForce
Rejected because a forced update is required.
RejectStale
Rejected because force-with-lease found stale info.
RemoteRejected
The remote receive-pack declined the update (!, [remote rejected] (<reason>)).
AtomicPushFailed
Part of an atomic push that failed because another ref was rejected
(!, [rejected] (atomic push failed)).
Implementations§
Trait Implementations§
Source§impl Clone for PushRefStatus
impl Clone for PushRefStatus
Source§fn clone(&self) -> PushRefStatus
fn clone(&self) -> PushRefStatus
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 PushRefStatus
impl Debug for PushRefStatus
impl Eq for PushRefStatus
Source§impl PartialEq for PushRefStatus
impl PartialEq for PushRefStatus
Source§fn eq(&self, other: &PushRefStatus) -> bool
fn eq(&self, other: &PushRefStatus) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PushRefStatus
Auto Trait Implementations§
impl Freeze for PushRefStatus
impl RefUnwindSafe for PushRefStatus
impl Send for PushRefStatus
impl Sync for PushRefStatus
impl Unpin for PushRefStatus
impl UnsafeUnpin for PushRefStatus
impl UnwindSafe for PushRefStatus
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