pub struct PreparedUserFile { /* private fields */ }Expand description
An original read whole once before entering a write: its path, size and modification time, and the content hash and chunk hashes of the bytes that read found, which coven records and checks the original against.
Implementations§
Source§impl PreparedUserFile
impl PreparedUserFile
Sourcepub fn size(&self) -> u64
pub fn size(&self) -> u64
Its size in bytes when it was read, which coven records and checks the original against.
Sourcepub fn modified_at(&self) -> SystemTime
pub fn modified_at(&self) -> SystemTime
Its modification time when it was read: the exact value coven records and checks the original against, at the precision the operating system gives.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PreparedUserFile
impl RefUnwindSafe for PreparedUserFile
impl Send for PreparedUserFile
impl Sync for PreparedUserFile
impl Unpin for PreparedUserFile
impl UnsafeUnpin for PreparedUserFile
impl UnwindSafe for PreparedUserFile
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