pub enum FileExpiry {
Usable {
expires_at: Option<Timestamp>,
},
Expired,
}Expand description
A read-only file can carry a usable token without an expiry claim. An expired file reports no timestamp because the existing reader refuses it before returning a token.
Variants§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FileExpiry
impl RefUnwindSafe for FileExpiry
impl Send for FileExpiry
impl Sync for FileExpiry
impl Unpin for FileExpiry
impl UnsafeUnpin for FileExpiry
impl UnwindSafe for FileExpiry
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