Enum wasmtime_wasi::preview2::StreamState
source · pub enum StreamState {
Open,
Closed,
}
Variants§
Implementations§
Trait Implementations§
source§impl Clone for StreamState
impl Clone for StreamState
source§fn clone(&self) -> StreamState
fn clone(&self) -> StreamState
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 StreamState
impl Debug for StreamState
source§impl From<StreamState> for StreamStatus
impl From<StreamState> for StreamStatus
source§fn from(state: StreamState) -> Self
fn from(state: StreamState) -> Self
Converts to this type from the input type.
source§impl PartialEq<StreamState> for StreamState
impl PartialEq<StreamState> for StreamState
source§fn eq(&self, other: &StreamState) -> bool
fn eq(&self, other: &StreamState) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for StreamState
impl StructuralPartialEq for StreamState
Auto Trait Implementations§
impl RefUnwindSafe for StreamState
impl Send for StreamState
impl Sync for StreamState
impl Unpin for StreamState
impl UnwindSafe for StreamState
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
source§impl<T> GetSetFdFlags for T
impl<T> GetSetFdFlags for T
source§fn get_fd_flags(&self) -> Result<FdFlags, Error>where
T: AsFilelike,
fn get_fd_flags(&self) -> Result<FdFlags, Error>where T: AsFilelike,
Query the “status” flags for the
self
file descriptor.source§fn new_set_fd_flags(&self, fd_flags: FdFlags) -> Result<SetFdFlags<T>, Error>where
T: AsFilelike,
fn new_set_fd_flags(&self, fd_flags: FdFlags) -> Result<SetFdFlags<T>, Error>where T: AsFilelike,
source§fn set_fd_flags(&mut self, set_fd_flags: SetFdFlags<T>) -> Result<(), Error>where
T: AsFilelike,
fn set_fd_flags(&mut self, set_fd_flags: SetFdFlags<T>) -> Result<(), Error>where T: AsFilelike,
Set the “status” flags for the
self
file descriptor. Read more