pub enum MetadataPolicy {
OptimisticTtl(Duration),
StrictFresh,
}Expand description
Strategy for refreshing market metadata.
Variants§
OptimisticTtl(Duration)
Reuse cached metadata and refresh only when cache age exceeds ttl.
StrictFresh
Always refresh metadata before reads that depend on market config.
Trait Implementations§
Source§impl Clone for MetadataPolicy
impl Clone for MetadataPolicy
Source§fn clone(&self) -> MetadataPolicy
fn clone(&self) -> MetadataPolicy
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 MetadataPolicy
impl Debug for MetadataPolicy
Source§impl Default for MetadataPolicy
impl Default for MetadataPolicy
impl Copy for MetadataPolicy
Auto Trait Implementations§
impl Freeze for MetadataPolicy
impl RefUnwindSafe for MetadataPolicy
impl Send for MetadataPolicy
impl Sync for MetadataPolicy
impl Unpin for MetadataPolicy
impl UnwindSafe for MetadataPolicy
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