pub enum State {
NoManifest,
Trusted,
Untrusted,
Changed,
}Variants§
NoManifest
No manifest. The overwhelmingly common case, and it must cost nothing.
Trusted
Trusted, and the file still has the bytes that were trusted.
Untrusted
Never trusted here.
Changed
Trusted once, and edited since. Distinct from Untrusted because the
message should say which happened — “somebody changed it” is a different
thing to tell a reader than “you have not looked at this yet”.
Trait Implementations§
impl Copy for State
impl Eq for State
impl StructuralPartialEq for State
Auto Trait Implementations§
impl Freeze for State
impl RefUnwindSafe for State
impl Send for State
impl Sync for State
impl Unpin for State
impl UnsafeUnpin for State
impl UnwindSafe for State
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