pub struct File(/* private fields */);
Implementations§
Source§impl File
impl File
pub async fn create(path: impl AsRef<Path>) -> Result<File>
pub async fn open(path: impl AsRef<Path>) -> Result<File>
pub async fn metadata(&self) -> Result<Metadata>
pub async fn set_len(&self, size: u64) -> Result<()>
pub async fn set_permissions(&self, perm: Permissions) -> Result<()>
pub async fn sync_all(&self) -> Result<()>
pub async fn sync_data(&self) -> Result<()>
pub async fn try_clone(&self) -> Result<File>
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