pub struct File { /* private fields */ }Implementations§
Source§impl File
impl File
pub fn open(uri: &str, options: OpenOptions) -> Result<Self>
pub fn read(&mut self, capacity: usize) -> Result<(Vec<u8>, u32)>
pub fn write_all(&mut self, bytes: &[u8]) -> Result<()>
pub fn seek(&mut self, offset: i64, whence: u32) -> Result<u64>
pub fn sync(&mut self) -> Result<()>
pub fn close(self) -> Result<()>
Auto Trait Implementations§
impl Freeze for File
impl RefUnwindSafe for File
impl Send for File
impl Sync for File
impl Unpin for File
impl UnsafeUnpin for File
impl UnwindSafe for File
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