Struct aral_runtime_async_std::fs::File
source · 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 !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