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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.