pub struct Limits {
pub entries: usize,
pub present_ttl: Duration,
pub absent_ttl: Duration,
pub unknown_ttl: Duration,
pub record_deadline: Duration,
pub prefetch_deadline: Duration,
pub per_write: usize,
}Expand description
What a ForeignRecords is bounded by. Every field is a parameter a
deployment sets on its own, with its default and its reasonable range on
the constant it comes from.
Fields§
§entries: usizeThe most answers held at once; see DEFAULT_ENTRIES.
present_ttl: DurationHow long a record that was read is reused; see
DEFAULT_PRESENT_TTL.
absent_ttl: DurationHow long an absence is reused; see DEFAULT_ABSENT_TTL.
unknown_ttl: DurationHow long an unknown is reused; see DEFAULT_UNKNOWN_TTL.
record_deadline: DurationHow long one record’s fetch may take; see
DEFAULT_RECORD_DEADLINE.
prefetch_deadline: DurationHow long one prefetch may take in total; see
DEFAULT_PREFETCH_DEADLINE.
per_write: usizeHow many records one prefetch may fetch; see
DEFAULT_PER_WRITE.
Trait Implementations§
impl Copy for Limits
impl Eq for Limits
impl StructuralPartialEq for Limits
Auto Trait Implementations§
impl Freeze for Limits
impl RefUnwindSafe for Limits
impl Send for Limits
impl Sync for Limits
impl Unpin for Limits
impl UnsafeUnpin for Limits
impl UnwindSafe for Limits
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.