pub struct SourceStamp {
pub size: u64,
pub mtime_ms: i64,
}Expand description
What HarnessAdapter::stamp compares: total bytes and the newest
modification time, in milliseconds since the epoch.
Fields§
§size: u64§mtime_ms: i64Implementations§
Source§impl SourceStamp
impl SourceStamp
pub fn of_file(path: &Path) -> Option<SourceStamp>
Sourcepub fn with(self, other: SourceStamp) -> SourceStamp
pub fn with(self, other: SourceStamp) -> SourceStamp
Both files’ bytes, and the later of their times.
Trait Implementations§
Source§impl Clone for SourceStamp
impl Clone for SourceStamp
impl Copy for SourceStamp
Source§impl Debug for SourceStamp
impl Debug for SourceStamp
impl Eq for SourceStamp
Source§impl PartialEq for SourceStamp
impl PartialEq for SourceStamp
impl StructuralPartialEq for SourceStamp
Auto Trait Implementations§
impl Freeze for SourceStamp
impl RefUnwindSafe for SourceStamp
impl Send for SourceStamp
impl Sync for SourceStamp
impl Unpin for SourceStamp
impl UnsafeUnpin for SourceStamp
impl UnwindSafe for SourceStamp
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