enum ProbeOutcome {
Version(String),
Unreachable,
Unusable,
}Expand description
Result of one npm-registry attempt. The type exists for the retry
decision: Unreachable never touched the server (retry direct),
Unusable reached it but the response was no good (retry won’t
help).
Variants§
Version(String)
Parsed a version token from the response.
Unreachable
Connect / send error - the registry was never reached.
Unusable
Reached the registry, but the response was non-success, bad
JSON, or missing the version field.
Auto Trait Implementations§
impl Freeze for ProbeOutcome
impl RefUnwindSafe for ProbeOutcome
impl Send for ProbeOutcome
impl Sync for ProbeOutcome
impl Unpin for ProbeOutcome
impl UnsafeUnpin for ProbeOutcome
impl UnwindSafe for ProbeOutcome
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