pub enum HostedPushResult {
Success {
state: Option<String>,
},
Failed(PushFailure),
}Expand description
Parsed hosted push: success state string or typed PushFailure.
Variants§
Success
Transport reported success; state is the remote tip when present.
Failed(PushFailure)
Transport reported failure (or blank error → UNKNOWN_TRANSPORT_ERROR).
Trait Implementations§
Source§impl Clone for HostedPushResult
impl Clone for HostedPushResult
Source§fn clone(&self) -> HostedPushResult
fn clone(&self) -> HostedPushResult
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 HostedPushResult
impl Debug for HostedPushResult
impl Eq for HostedPushResult
Source§impl PartialEq for HostedPushResult
impl PartialEq for HostedPushResult
impl StructuralPartialEq for HostedPushResult
Auto Trait Implementations§
impl Freeze for HostedPushResult
impl RefUnwindSafe for HostedPushResult
impl Send for HostedPushResult
impl Sync for HostedPushResult
impl Unpin for HostedPushResult
impl UnsafeUnpin for HostedPushResult
impl UnwindSafe for HostedPushResult
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