pub struct File { /* private fields */ }
Implementations§
Source§impl File
impl File
pub async fn truncate(&self, length: u64) -> Result<(), Status>
pub async fn write(&self, data: &[u8]) -> Result<(), Status>
pub async fn size_on_disk(&self) -> Result<u64, Status>
pub async fn uncompressed_size(&self) -> Result<u64, Status>
pub async fn read_num_bytes(&self, num_bytes: u64) -> Result<Vec<u8>, Status>
pub async fn read_until_eof(&self) -> Result<Vec<u8>, Status>
pub async fn seek(&self, origin: SeekOrigin, offset: u64) -> Result<(), Status>
pub async fn close(self) -> Result<(), Status>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for File
impl !RefUnwindSafe for File
impl Send for File
impl Sync for File
impl Unpin 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