pub enum ReadRoute {
Remote,
Observe,
Local,
Refetch,
}Expand description
Where a GET or HEAD is served from.
Variants§
Remote
Wrapped store only.
Observe
Wrapped store. The whole object goes to MirrorPolicy::observe
before the caller gets a result. HEADs and GETs that return no body
skip observe. This route does not install a local copy.
Local
Local copy only. A miss is a MirrorError::NotLocal,
with no remote fallback.
Contents can be corrupt. Callers must detect corruption and arrange
a retry through ReadRoute::Refetch.
Refetch
Download the whole object again, replace the local copy, and serve the request from it. Even a range request or HEAD downloads the whole object.
Trait Implementations§
impl Copy for ReadRoute
impl Eq for ReadRoute
impl StructuralPartialEq for ReadRoute
Auto Trait Implementations§
impl Forget for ReadRoute
impl Freeze for ReadRoute
impl RefUnwindSafe for ReadRoute
impl Send for ReadRoute
impl Sync for ReadRoute
impl Unpin for ReadRoute
impl UnsafeUnpin for ReadRoute
impl UnwindSafe for ReadRoute
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.