#[non_exhaustive]pub enum FetchStrategy {
PriorityWithFallback,
Latency,
}Expand description
Strategy for selecting among eligible data providers.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
PriorityWithFallback
Use priority order and fall back to the next provider on failure.
Latency
Race all eligible providers concurrently and return the first success.
Trait Implementations§
Source§impl Clone for FetchStrategy
impl Clone for FetchStrategy
Source§fn clone(&self) -> FetchStrategy
fn clone(&self) -> FetchStrategy
Returns a duplicate of the value. Read more
1.0.0 · 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 FetchStrategy
impl Debug for FetchStrategy
Source§impl Default for FetchStrategy
impl Default for FetchStrategy
Source§fn default() -> FetchStrategy
fn default() -> FetchStrategy
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for FetchStrategy
impl<'de> Deserialize<'de> for FetchStrategy
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for FetchStrategy
impl PartialEq for FetchStrategy
Source§impl Serialize for FetchStrategy
impl Serialize for FetchStrategy
impl Copy for FetchStrategy
impl Eq for FetchStrategy
impl StructuralPartialEq for FetchStrategy
Auto Trait Implementations§
impl Freeze for FetchStrategy
impl RefUnwindSafe for FetchStrategy
impl Send for FetchStrategy
impl Sync for FetchStrategy
impl Unpin for FetchStrategy
impl UnwindSafe for FetchStrategy
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