pub struct StatefulFile {
pub fd: BufReader<File>,
pub old_metadata: Metadata,
/* private fields */
}
Fields§
§fd: BufReader<File>
§old_metadata: Metadata
Implementations§
Source§impl StatefulFile
impl StatefulFile
pub fn new(fd: File, file_name: String) -> Self
pub fn update_metadata(&mut self)
pub fn modification_type(&self) -> ModificationType
pub fn seek_to_cursor(&mut self)
pub fn update_cursor(&mut self)
pub fn reset_cursor(&mut self)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for StatefulFile
impl RefUnwindSafe for StatefulFile
impl Send for StatefulFile
impl Sync for StatefulFile
impl Unpin for StatefulFile
impl UnwindSafe for StatefulFile
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