pub struct StdFileResourceInner { /* private fields */ }

Implementations§

source§

impl StdFileResourceInner

source

pub fn file(fs_file: StdFile) -> Self

Trait Implementations§

source§

impl File for StdFileResourceInner

source§

fn write_sync(self: Rc<Self>, buf: &[u8]) -> FsResult<usize>

source§

fn read_sync(self: Rc<Self>, buf: &mut [u8]) -> FsResult<usize>

source§

fn write_all_sync(self: Rc<Self>, buf: &[u8]) -> FsResult<()>

source§

fn write_all<'async_trait>( self: Rc<Self>, buf: BufView ) -> Pin<Box<dyn Future<Output = FsResult<()>> + 'async_trait>>where Self: 'async_trait,

source§

fn write<'async_trait>( self: Rc<Self>, view: BufView ) -> Pin<Box<dyn Future<Output = FsResult<WriteOutcome>> + 'async_trait>>where Self: 'async_trait,

source§

fn read_all_sync(self: Rc<Self>) -> FsResult<Vec<u8>>

source§

fn read_all_async<'async_trait>( self: Rc<Self> ) -> Pin<Box<dyn Future<Output = FsResult<Vec<u8>>> + 'async_trait>>where Self: 'async_trait,

source§

fn chmod_sync(self: Rc<Self>, _mode: u32) -> FsResult<()>

source§

fn chmod_async<'async_trait>( self: Rc<Self>, _mode: u32 ) -> Pin<Box<dyn Future<Output = FsResult<()>> + 'async_trait>>where Self: 'async_trait,

source§

fn seek_sync(self: Rc<Self>, pos: SeekFrom) -> FsResult<u64>

source§

fn seek_async<'async_trait>( self: Rc<Self>, pos: SeekFrom ) -> Pin<Box<dyn Future<Output = FsResult<u64>> + 'async_trait>>where Self: 'async_trait,

source§

fn datasync_sync(self: Rc<Self>) -> FsResult<()>

source§

fn datasync_async<'async_trait>( self: Rc<Self> ) -> Pin<Box<dyn Future<Output = FsResult<()>> + 'async_trait>>where Self: 'async_trait,

source§

fn sync_sync(self: Rc<Self>) -> FsResult<()>

source§

fn sync_async<'async_trait>( self: Rc<Self> ) -> Pin<Box<dyn Future<Output = FsResult<()>> + 'async_trait>>where Self: 'async_trait,

source§

fn stat_sync(self: Rc<Self>) -> FsResult<FsStat>

source§

fn stat_async<'async_trait>( self: Rc<Self> ) -> Pin<Box<dyn Future<Output = FsResult<FsStat>> + 'async_trait>>where Self: 'async_trait,

source§

fn lock_sync(self: Rc<Self>, exclusive: bool) -> FsResult<()>

source§

fn lock_async<'async_trait>( self: Rc<Self>, exclusive: bool ) -> Pin<Box<dyn Future<Output = FsResult<()>> + 'async_trait>>where Self: 'async_trait,

source§

fn unlock_sync(self: Rc<Self>) -> FsResult<()>

source§

fn unlock_async<'async_trait>( self: Rc<Self> ) -> Pin<Box<dyn Future<Output = FsResult<()>> + 'async_trait>>where Self: 'async_trait,

source§

fn truncate_sync(self: Rc<Self>, len: u64) -> FsResult<()>

source§

fn truncate_async<'async_trait>( self: Rc<Self>, len: u64 ) -> Pin<Box<dyn Future<Output = FsResult<()>> + 'async_trait>>where Self: 'async_trait,

source§

fn utime_sync( self: Rc<Self>, atime_secs: i64, atime_nanos: u32, mtime_secs: i64, mtime_nanos: u32 ) -> FsResult<()>

source§

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,

source§

fn read_byob<'async_trait>( self: Rc<Self>, buf: BufMutView ) -> Pin<Box<dyn Future<Output = FsResult<(usize, BufMutView)>> + 'async_trait>>where Self: 'async_trait,

source§

fn try_clone_inner(self: Rc<Self>) -> FsResult<Rc<dyn File>>

source§

fn as_stdio(self: Rc<Self>) -> FsResult<Stdio>

source§

fn backing_fd(self: Rc<Self>) -> Option<ResourceHandleFd>

source§

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§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.