pub struct File(/* private fields */);
Implementations§
Trait Implementations§
Source§impl Node for File
impl Node for File
fn to_any(self: Arc<Self>) -> Arc<dyn Any + Send + Sync>
fn parent(&self) -> Option<Arc<dyn Node>>
fn filetype(&self) -> FileType
fn id(&self) -> Arc<InodeId>
fn open_dir<'async_trait>(
self: Arc<Self>,
) -> Pin<Box<dyn Future<Output = Result<Box<dyn WasiDir>, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
fn open_file<'life0, 'async_trait>(
self: Arc<Self>,
_path: &'life0 str,
dir: bool,
read: bool,
write: bool,
flags: FdFlags,
) -> Pin<Box<dyn Future<Output = Result<Box<dyn WasiFile>, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn root(self: &Arc<Self>) -> Arc<dyn Node>where
Self: Sized,
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