#[non_exhaustive]pub struct Ttls {
pub key_doc: Duration,
pub key_refetch: Duration,
pub mesh_doc: Duration,
pub binding: Duration,
pub current: Duration,
pub latest_max_age: Duration,
pub job: Duration,
}Expand description
Cache lifetimes. Content-addressed objects (descriptors, receipts, manifests, blobs) never expire: their bytes are fixed by their hash.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.key_doc: DurationA foreign host’s key document (default 300 s). A receipt signed with a key id the
cached document lacks refetches it at once (at most every key_refetch).
key_refetch: DurationThe shortest interval between two fetches of one host’s key document (default 10 s).
mesh_doc: DurationA foreign host’s mesh document (default 300 s).
binding: DurationHow long a foreign name’s binding, confirmed with its mesh, stands for requests without an asof or with a later one (default 60 s).
current: DurationHow long a foreign cell’s latest version, confirmed with its mesh, stands for requests without an asof or with a later one (default 60 s).
latest_max_age: Durationmax-age of answers to requests without an asof (default 10 s).
job: DurationHow long a completed job’s result is kept after it is first served, and after it completes when it is never served, while the mesh runs (default and minimum 300 s, SPEC 5.5).
Trait Implementations§
impl Eq for Ttls
impl StructuralPartialEq for Ttls
Auto Trait Implementations§
impl Forget for Ttls
impl Freeze for Ttls
impl Move for Ttls
impl RefUnwindSafe for Ttls
impl Send for Ttls
impl Sync for Ttls
impl Unpin for Ttls
impl UnsafeUnpin for Ttls
impl UnwindSafe for Ttls
Blanket Implementations§
impl<T> Allocation for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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
key and return true if they are equal.