pub struct FileDescriptor {
pub state: FileState,
pub location: u32,
pub len: u32,
pub offset: u32,
}Fields§
§state: FileState§location: u32Address of file contents on disk.
len: u32Length of file.
offset: u32Offset from location to the current read/write location.
Implementations§
Source§impl FileDescriptor
impl FileDescriptor
pub fn new_writer() -> FileDescriptor
pub fn new_reader(location: u32, len: u32) -> FileDescriptor
pub fn is_closed(&self) -> bool
Trait Implementations§
Source§impl Clone for FileDescriptor
impl Clone for FileDescriptor
Source§fn clone(&self) -> FileDescriptor
fn clone(&self) -> FileDescriptor
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FileDescriptor
impl Debug for FileDescriptor
impl Copy for FileDescriptor
Auto Trait Implementations§
impl Freeze for FileDescriptor
impl RefUnwindSafe for FileDescriptor
impl Send for FileDescriptor
impl Sync for FileDescriptor
impl Unpin for FileDescriptor
impl UnwindSafe for FileDescriptor
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