pub enum Unknown {
NotFetched,
Deadline,
Refused(String),
Unresolvable(String),
Unreachable(String),
}Expand description
Why a record’s value is not known.
Every variant is distinct from Answer::Absent, which
is the repository having answered that it holds nothing at that key.
This reader never collapses the two: a rule that refuses on absence
would otherwise start refusing the moment somebody else’s server went
down.
Variants§
NotFetched
Nothing has fetched this record, so the cache holds no answer for it. What a read gets before its write’s prefetch has run, and again once an answer has aged out.
Deadline
The fetch did not finish inside its deadline.
Refused(String)
This reader will not fetch from there. Carries why.
Unresolvable(String)
There is no way to resolve that DID to a server.
Unreachable(String)
The repository did not answer, or answered with something other than a record.
Implementations§
Trait Implementations§
impl Eq for Unknown
impl StructuralPartialEq for Unknown
Auto Trait Implementations§
impl Freeze for Unknown
impl RefUnwindSafe for Unknown
impl Send for Unknown
impl Sync for Unknown
impl Unpin for Unknown
impl UnsafeUnpin for Unknown
impl UnwindSafe for Unknown
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.