Struct deno_io::StdFileResourceInner
source · pub struct StdFileResourceInner { /* private fields */ }
Implementations§
Trait Implementations§
source§impl File for StdFileResourceInner
impl File for StdFileResourceInner
fn write_sync(self: Rc<Self>, buf: &[u8]) -> FsResult<usize>
fn read_sync(self: Rc<Self>, buf: &mut [u8]) -> FsResult<usize>
fn write_all_sync(self: Rc<Self>, buf: &[u8]) -> FsResult<()>
fn write_all<'async_trait>(
self: Rc<Self>,
buf: BufView
) -> Pin<Box<dyn Future<Output = FsResult<()>> + 'async_trait>>where
Self: 'async_trait,
fn write<'async_trait>(
self: Rc<Self>,
view: BufView
) -> Pin<Box<dyn Future<Output = FsResult<WriteOutcome>> + 'async_trait>>where
Self: 'async_trait,
fn read_all_sync(self: Rc<Self>) -> FsResult<Vec<u8>>
fn read_all_async<'async_trait>(
self: Rc<Self>
) -> Pin<Box<dyn Future<Output = FsResult<Vec<u8>>> + 'async_trait>>where
Self: 'async_trait,
fn chmod_sync(self: Rc<Self>, _mode: u32) -> FsResult<()>
fn chmod_async<'async_trait>(
self: Rc<Self>,
_mode: u32
) -> Pin<Box<dyn Future<Output = FsResult<()>> + 'async_trait>>where
Self: 'async_trait,
fn seek_sync(self: Rc<Self>, pos: SeekFrom) -> FsResult<u64>
fn seek_async<'async_trait>(
self: Rc<Self>,
pos: SeekFrom
) -> Pin<Box<dyn Future<Output = FsResult<u64>> + 'async_trait>>where
Self: 'async_trait,
fn datasync_sync(self: Rc<Self>) -> FsResult<()>
fn datasync_async<'async_trait>(
self: Rc<Self>
) -> Pin<Box<dyn Future<Output = FsResult<()>> + 'async_trait>>where
Self: 'async_trait,
fn sync_sync(self: Rc<Self>) -> FsResult<()>
fn sync_async<'async_trait>(
self: Rc<Self>
) -> Pin<Box<dyn Future<Output = FsResult<()>> + 'async_trait>>where
Self: 'async_trait,
fn stat_sync(self: Rc<Self>) -> FsResult<FsStat>
fn stat_async<'async_trait>(
self: Rc<Self>
) -> Pin<Box<dyn Future<Output = FsResult<FsStat>> + 'async_trait>>where
Self: 'async_trait,
fn lock_sync(self: Rc<Self>, exclusive: bool) -> FsResult<()>
fn lock_async<'async_trait>(
self: Rc<Self>,
exclusive: bool
) -> Pin<Box<dyn Future<Output = FsResult<()>> + 'async_trait>>where
Self: 'async_trait,
fn unlock_sync(self: Rc<Self>) -> FsResult<()>
fn unlock_async<'async_trait>(
self: Rc<Self>
) -> Pin<Box<dyn Future<Output = FsResult<()>> + 'async_trait>>where
Self: 'async_trait,
fn truncate_sync(self: Rc<Self>, len: u64) -> FsResult<()>
fn truncate_async<'async_trait>(
self: Rc<Self>,
len: u64
) -> Pin<Box<dyn Future<Output = FsResult<()>> + 'async_trait>>where
Self: 'async_trait,
fn utime_sync( self: Rc<Self>, atime_secs: i64, atime_nanos: u32, mtime_secs: i64, mtime_nanos: u32 ) -> FsResult<()>
fn utime_async<'async_trait>(
self: Rc<Self>,
atime_secs: i64,
atime_nanos: u32,
mtime_secs: i64,
mtime_nanos: u32
) -> Pin<Box<dyn Future<Output = FsResult<()>> + 'async_trait>>where
Self: 'async_trait,
fn read_byob<'async_trait>(
self: Rc<Self>,
buf: BufMutView
) -> Pin<Box<dyn Future<Output = FsResult<(usize, BufMutView)>> + 'async_trait>>where
Self: 'async_trait,
fn try_clone_inner(self: Rc<Self>) -> FsResult<Rc<dyn File>>
fn as_stdio(self: Rc<Self>) -> FsResult<Stdio>
fn backing_fd(self: Rc<Self>) -> Option<ResourceHandleFd>
fn read<'async_trait>(
self: Rc<Self>,
limit: usize
) -> Pin<Box<dyn Future<Output = FsResult<BufView>> + 'async_trait>>where
Self: 'async_trait,
Auto Trait Implementations§
impl !RefUnwindSafe for StdFileResourceInner
impl !Send for StdFileResourceInner
impl !Sync for StdFileResourceInner
impl Unpin for StdFileResourceInner
impl !UnwindSafe for StdFileResourceInner
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