Struct wasmer_wasix::fs::WasiInodes
source · pub struct WasiInodes {
protected: Arc<RwLock<WasiInodesProtected>>,
}
Fields§
§protected: Arc<RwLock<WasiInodesProtected>>
Implementations§
source§impl WasiInodes
impl WasiInodes
pub fn new() -> Self
sourcepub fn add_inode_val(&self, val: InodeVal) -> InodeGuard
pub fn add_inode_val(&self, val: InodeVal) -> InodeGuard
adds another value to the inodes
sourcepub(crate) fn stdout(
fd_map: &RwLock<FdList>,
) -> Result<InodeValFileReadGuard, FsError>
pub(crate) fn stdout( fd_map: &RwLock<FdList>, ) -> Result<InodeValFileReadGuard, FsError>
Get the VirtualFile
object at stdout
sourcepub(crate) fn stdout_mut(
fd_map: &RwLock<FdList>,
) -> Result<InodeValFileWriteGuard, FsError>
pub(crate) fn stdout_mut( fd_map: &RwLock<FdList>, ) -> Result<InodeValFileWriteGuard, FsError>
Get the VirtualFile
object at stdout mutably
sourcepub(crate) fn stderr(
fd_map: &RwLock<FdList>,
) -> Result<InodeValFileReadGuard, FsError>
pub(crate) fn stderr( fd_map: &RwLock<FdList>, ) -> Result<InodeValFileReadGuard, FsError>
Get the VirtualFile
object at stderr
sourcepub(crate) fn stderr_mut(
fd_map: &RwLock<FdList>,
) -> Result<InodeValFileWriteGuard, FsError>
pub(crate) fn stderr_mut( fd_map: &RwLock<FdList>, ) -> Result<InodeValFileWriteGuard, FsError>
Get the VirtualFile
object at stderr mutably
sourcepub(crate) fn stdin(
fd_map: &RwLock<FdList>,
) -> Result<InodeValFileReadGuard, FsError>
pub(crate) fn stdin( fd_map: &RwLock<FdList>, ) -> Result<InodeValFileReadGuard, FsError>
Get the VirtualFile
object at stdin
TODO: Review why this is dead
sourcepub(crate) fn stdin_mut(
fd_map: &RwLock<FdList>,
) -> Result<InodeValFileWriteGuard, FsError>
pub(crate) fn stdin_mut( fd_map: &RwLock<FdList>, ) -> Result<InodeValFileWriteGuard, FsError>
Get the VirtualFile
object at stdin mutably
sourcefn std_dev_get(
fd_map: &RwLock<FdList>,
fd: WasiFd,
) -> Result<InodeValFileReadGuard, FsError>
fn std_dev_get( fd_map: &RwLock<FdList>, fd: WasiFd, ) -> Result<InodeValFileReadGuard, FsError>
Internal helper function to get a standard device handle.
Expects one of __WASI_STDIN_FILENO
, __WASI_STDOUT_FILENO
, __WASI_STDERR_FILENO
.
sourcefn std_dev_get_mut(
fd_map: &RwLock<FdList>,
fd: WasiFd,
) -> Result<InodeValFileWriteGuard, FsError>
fn std_dev_get_mut( fd_map: &RwLock<FdList>, fd: WasiFd, ) -> Result<InodeValFileWriteGuard, FsError>
Internal helper function to mutably get a standard device handle.
Expects one of __WASI_STDIN_FILENO
, __WASI_STDOUT_FILENO
, __WASI_STDERR_FILENO
.
Trait Implementations§
source§impl Clone for WasiInodes
impl Clone for WasiInodes
source§fn clone(&self) -> WasiInodes
fn clone(&self) -> WasiInodes
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for WasiInodes
impl Debug for WasiInodes
Auto Trait Implementations§
impl Freeze for WasiInodes
impl RefUnwindSafe for WasiInodes
impl Send for WasiInodes
impl Sync for WasiInodes
impl Unpin for WasiInodes
impl UnwindSafe for WasiInodes
Blanket Implementations§
§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Returns the layout of the type.
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> Pointee for T
impl<T> Pointee for T
§impl<T> Upcastable for T
impl<T> Upcastable for T
fn upcast_any_ref(&self) -> &(dyn Any + 'static)
fn upcast_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn upcast_any_box(self: Box<T>) -> Box<dyn Any>
§impl<T> Upcastable for T
impl<T> Upcastable for T
§fn upcast_any_ref(&self) -> &(dyn Any + 'static)
fn upcast_any_ref(&self) -> &(dyn Any + 'static)
upcast ref
§fn upcast_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn upcast_any_mut(&mut self) -> &mut (dyn Any + 'static)
upcast mut ref
§fn upcast_any_box(self: Box<T>) -> Box<dyn Any>
fn upcast_any_box(self: Box<T>) -> Box<dyn Any>
upcast boxed dyn