async_wasi::snapshots::common::vfs::virtual_sys

Struct OutPipeline

Source
pub struct OutPipeline<W: Write>(/* private fields */);

Trait Implementations§

Source§

impl<W: Write> From<W> for OutPipeline<W>

Source§

fn from(value: W) -> Self

Converts to this type from the input type.
Source§

impl<W: Write> WasiFile for OutPipeline<W>

Source§

fn fd_advise( &mut self, offset: __wasi_filesize_t, len: __wasi_filesize_t, advice: Advice, ) -> Result<(), Errno>

Source§

fn fd_allocate( &mut self, offset: __wasi_filesize_t, len: __wasi_filesize_t, ) -> Result<(), Errno>

Source§

fn fd_datasync(&mut self) -> Result<(), Errno>

Source§

fn fd_sync(&mut self) -> Result<(), Errno>

Source§

fn fd_read(&mut self, bufs: &mut [IoSliceMut<'_>]) -> Result<usize, Errno>

Source§

fn fd_pread( &mut self, bufs: &mut [IoSliceMut<'_>], offset: __wasi_filesize_t, ) -> Result<usize, Errno>

Source§

fn fd_write(&mut self, bufs: &[IoSlice<'_>]) -> Result<usize, Errno>

Source§

fn fd_pwrite( &mut self, bufs: &[IoSlice<'_>], offset: __wasi_filesize_t, ) -> Result<usize, Errno>

Source§

fn fd_seek( &mut self, offset: __wasi_filedelta_t, whence: Type, ) -> Result<__wasi_filesize_t, Errno>

Source§

fn fd_tell(&mut self) -> Result<__wasi_filesize_t, Errno>

Source§

impl<W: Write> WasiNode for OutPipeline<W>

Source§

fn fd_fdstat_get(&self) -> Result<FdStat, Errno>

Source§

fn fd_fdstat_set_flags(&mut self, flags: FdFlags) -> Result<(), Errno>

Source§

fn fd_fdstat_set_rights( &mut self, fs_rights_base: WASIRights, _fs_rights_inheriting: WASIRights, ) -> Result<(), Errno>

Source§

fn fd_filestat_get(&self) -> Result<Filestat, Errno>

Source§

fn fd_filestat_set_size(&mut self, size: __wasi_filesize_t) -> Result<(), Errno>

Source§

fn fd_filestat_set_times( &mut self, atim: __wasi_timestamp_t, mtim: __wasi_timestamp_t, fst_flags: Type, ) -> Result<(), Errno>

Auto Trait Implementations§

§

impl<W> Freeze for OutPipeline<W>
where W: Freeze,

§

impl<W> RefUnwindSafe for OutPipeline<W>
where W: RefUnwindSafe,

§

impl<W> Send for OutPipeline<W>
where W: Send,

§

impl<W> Sync for OutPipeline<W>
where W: Sync,

§

impl<W> Unpin for OutPipeline<W>
where W: Unpin,

§

impl<W> UnwindSafe for OutPipeline<W>
where W: UnwindSafe,

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

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

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where 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 T
where 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 T
where U: Into<T>,

Source§

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 T
where U: TryFrom<T>,

Source§

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.