pub enum Probe {
Exit(i32),
TimedOut(u64),
Failed,
}Expand description
How a bounded network probe ended. Exit codes stay visible because the
callers need to keep git’s answers apart: ls-remote --exit-code exits
2 for “connected, no such ref” and 128 for “could not connect”,
and reading those as one boolean is how offline got reported as
“upstream deleted”.
Variants§
Exit(i32)
Ran to completion with this exit code.
TimedOut(u64)
Killed at the deadline; carries the budget it exceeded, in seconds.
Failed
Could not spawn, or died to a signal — “git did not answer”.
Auto Trait Implementations§
impl Freeze for Probe
impl RefUnwindSafe for Probe
impl Send for Probe
impl Sync for Probe
impl Unpin for Probe
impl UnsafeUnpin for Probe
impl UnwindSafe for Probe
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