pub struct FileRead {
pub contents: String,
pub stat: FileStat,
}Expand description
A file’s contents plus its stat (the stat is the freshness token edits compare).
Fields§
§contents: StringThe file contents, lossy UTF-8 (binary files degrade rather than error).
stat: FileStatThe file’s size + mtime at read time.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FileRead
impl RefUnwindSafe for FileRead
impl Send for FileRead
impl Sync for FileRead
impl Unpin for FileRead
impl UnsafeUnpin for FileRead
impl UnwindSafe for FileRead
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