pub enum RetrievalOutcome {
Found(Vec<u8>),
Missing,
Expired,
}Expand description
Result of a retrieval lookup. Deliberately has no “partial” variant: a caller either gets the exact original bytes back, or an explicit reason it did not.
Variants§
Trait Implementations§
Source§impl Clone for RetrievalOutcome
impl Clone for RetrievalOutcome
Source§fn clone(&self) -> RetrievalOutcome
fn clone(&self) -> RetrievalOutcome
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 RetrievalOutcome
impl Debug for RetrievalOutcome
impl Eq for RetrievalOutcome
Source§impl PartialEq for RetrievalOutcome
impl PartialEq for RetrievalOutcome
impl StructuralPartialEq for RetrievalOutcome
Auto Trait Implementations§
impl Freeze for RetrievalOutcome
impl RefUnwindSafe for RetrievalOutcome
impl Send for RetrievalOutcome
impl Sync for RetrievalOutcome
impl Unpin for RetrievalOutcome
impl UnsafeUnpin for RetrievalOutcome
impl UnwindSafe for RetrievalOutcome
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.