pub struct ObservedFile { /* private fields */ }Expand description
Facts captured while reading one original; validation never rereads its bytes.
Implementations§
Source§impl ObservedFile
impl ObservedFile
Sourcepub fn modified_at(&self) -> SystemTime
pub fn modified_at(&self) -> SystemTime
Its modification time at the time of the read.
Sourcepub fn validate(&self) -> Result<(), ObservationError>
pub fn validate(&self) -> Result<(), ObservationError>
Refuse a missing, replaced or modified original without reading its bytes.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ObservedFile
impl RefUnwindSafe for ObservedFile
impl Send for ObservedFile
impl Sync for ObservedFile
impl Unpin for ObservedFile
impl UnsafeUnpin for ObservedFile
impl UnwindSafe for ObservedFile
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