pub enum Provenance {
Live,
TimedOut {
cached: bool,
},
FetchFailed {
cached: bool,
},
}Expand description
How the surface load_live returned was obtained — so a consumer’s
--help can label a listing that is not the server’s current truth, and
warn when a live answer was attempted and gave out.
Variants§
Live
Discovery answered; the listing is the server’s current truth.
TimedOut
Discovery did not finish inside the deadline — a server that is slow, or a host that swallows packets instead of refusing them.
FetchFailed
Discovery failed outright — a refused or unroutable connection (the fast spelling of “offline”), or a response that did not decode. The transport’s own tracing has the specifics.
Trait Implementations§
Source§impl Clone for Provenance
impl Clone for Provenance
Source§fn clone(&self) -> Provenance
fn clone(&self) -> Provenance
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 Provenance
Source§impl Debug for Provenance
impl Debug for Provenance
impl Eq for Provenance
Source§impl PartialEq for Provenance
impl PartialEq for Provenance
impl StructuralPartialEq for Provenance
Auto Trait Implementations§
impl Freeze for Provenance
impl RefUnwindSafe for Provenance
impl Send for Provenance
impl Sync for Provenance
impl Unpin for Provenance
impl UnsafeUnpin for Provenance
impl UnwindSafe for Provenance
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.