pub enum ContentState {
Current(ContentInfo),
Stale(StaleReason),
}Expand description
What a content sidecar beside a snapshot holds.
Variants§
Current(ContentInfo)
A sidecar this build reads.
Stale(StaleReason)
One of fdu’s sidecars that this build cannot serve: another format or engine, or a header this build cannot read.
Implementations§
Source§impl ContentState
impl ContentState
Sourcepub const LABELS: [&'static str; 2]
pub const LABELS: [&'static str; 2]
Every label a content sidecar’s state can carry, in declaration order.
The two a sidecar can be, which is narrower than CacheState::LABELS: a sidecar
is never leftover, unrecognized, or absent under its own status, because it is
reported only where one was found beside a snapshot.
Sourcepub fn label(&self) -> &'static str
pub fn label(&self) -> &'static str
The label machine output carries, one of Self::LABELS.
Trait Implementations§
Source§impl Clone for ContentState
impl Clone for ContentState
Source§impl Debug for ContentState
impl Debug for ContentState
impl Eq for ContentState
Source§impl PartialEq for ContentState
impl PartialEq for ContentState
impl StructuralPartialEq for ContentState
Auto Trait Implementations§
impl Freeze for ContentState
impl RefUnwindSafe for ContentState
impl Send for ContentState
impl Sync for ContentState
impl Unpin for ContentState
impl UnsafeUnpin for ContentState
impl UnwindSafe for ContentState
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