#[non_exhaustive]pub enum Served {
Live,
Cache,
Stale,
}Expand description
Where an answer came from.
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.
Live
Cache
A cached answer within its TTL.
Stale
An expired cached answer, served because the provider failed.
Implementations§
Trait Implementations§
impl Copy for Served
impl Eq for Served
impl StructuralPartialEq for Served
Auto Trait Implementations§
impl Forget for Served
impl Freeze for Served
impl RefUnwindSafe for Served
impl Send for Served
impl Sync for Served
impl Unpin for Served
impl UnsafeUnpin for Served
impl UnwindSafe for Served
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