Enum wasmtime_wasi::preview2::bindings::io::streams::StreamStatus
source · pub enum StreamStatus {
Open,
Ended,
}
Expand description
Streams provide a sequence of data and then end; once they end, they no longer provide any further data.
For example, a stream reading from a file ends when the stream reaches the end of the file. For another example, a stream reading from a socket ends when the socket is closed.
Variants§
Open
The stream is open and may produce further data.
Ended
When reading, this indicates that the stream will not produce further data. When writing, this indicates that the stream will no longer be read. Further writes are still permitted.
Trait Implementations§
source§impl Clone for StreamStatus
impl Clone for StreamStatus
source§fn clone(&self) -> StreamStatus
fn clone(&self) -> StreamStatus
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 StreamStatus
impl Debug for StreamStatus
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 From<StreamStatus> for StreamStatus
impl From<StreamStatus> for StreamStatus
source§fn from(other: AsyncStreamStatus) -> Self
fn from(other: AsyncStreamStatus) -> Self
Converts to this type from the input type.
source§impl PartialEq<StreamStatus> for StreamStatus
impl PartialEq<StreamStatus> for StreamStatus
source§fn eq(&self, other: &StreamStatus) -> bool
fn eq(&self, other: &StreamStatus) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl ComponentType for StreamStatus
impl Copy for StreamStatus
impl Eq for StreamStatus
impl Lift for StreamStatus
impl Lower for StreamStatus
impl StructuralEq for StreamStatus
impl StructuralPartialEq for StreamStatus
Auto Trait Implementations§
impl RefUnwindSafe for StreamStatus
impl Send for StreamStatus
impl Sync for StreamStatus
impl Unpin for StreamStatus
impl UnwindSafe for StreamStatus
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<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.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