Enum wasmcloud_runtime::capability::wrpc::wasi::io::streams::StreamError
source · pub enum StreamError {
LastOperationFailed(ResourceOwn<Error>),
Closed,
}
Expand description
An error for input-stream and output-stream operations.
Variants§
LastOperationFailed(ResourceOwn<Error>)
An error for input-stream and output-stream operations.
Closed
An error for input-stream and output-stream operations.
Trait Implementations§
source§impl Debug for StreamError
impl Debug for StreamError
source§impl<R> Decode<R> for StreamError
impl<R> Decode<R> for StreamError
source§type ListDecoder = ListDecoder<<StreamError as Decode<R>>::Decoder, R>
type ListDecoder = ListDecoder<<StreamError as Decode<R>>::Decoder, R>
Decoder used to decode lists of value
source§impl Display for StreamError
impl Display for StreamError
source§impl<W> Encode<W> for &StreamError
impl<W> Encode<W> for &StreamError
source§fn encode(
self,
enc: &mut Self::Encoder,
dst: &mut BytesMut,
) -> Result<Option<Box<dyn FnOnce(T, Vec<usize>) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send>> + Send>>, <Self::Encoder as Encoder<Self>>::Error>
fn encode( self, enc: &mut Self::Encoder, dst: &mut BytesMut, ) -> Result<Option<Box<dyn FnOnce(T, Vec<usize>) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send>> + Send>>, <Self::Encoder as Encoder<Self>>::Error>
Convenience function for encoding a value
source§fn encode_iter_own<I>(
items: I,
enc: &mut Self::Encoder,
dst: &mut BytesMut,
) -> Result<Option<Box<dyn FnOnce(T, Vec<usize>) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send>> + Send>>, <Self::Encoder as Encoder<Self>>::Error>where
I: IntoIterator<Item = Self>,
<I as IntoIterator>::IntoIter: ExactSizeIterator,
T: Index<T> + Send + Sync + 'static,
fn encode_iter_own<I>(
items: I,
enc: &mut Self::Encoder,
dst: &mut BytesMut,
) -> Result<Option<Box<dyn FnOnce(T, Vec<usize>) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send>> + Send>>, <Self::Encoder as Encoder<Self>>::Error>where
I: IntoIterator<Item = Self>,
<I as IntoIterator>::IntoIter: ExactSizeIterator,
T: Index<T> + Send + Sync + 'static,
Encode an iterator of owned values
source§fn encode_iter_ref<'a, I>(
items: I,
enc: &mut Self::Encoder,
dst: &mut BytesMut,
) -> Result<Option<Box<dyn FnOnce(T, Vec<usize>) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send>> + Send>>, <Self::Encoder as Encoder<&'a Self>>::Error>where
I: IntoIterator<Item = &'a Self>,
<I as IntoIterator>::IntoIter: ExactSizeIterator,
T: Index<T> + Send + Sync + 'static,
Self::Encoder: Encoder<&'a Self>,
fn encode_iter_ref<'a, I>(
items: I,
enc: &mut Self::Encoder,
dst: &mut BytesMut,
) -> Result<Option<Box<dyn FnOnce(T, Vec<usize>) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send>> + Send>>, <Self::Encoder as Encoder<&'a Self>>::Error>where
I: IntoIterator<Item = &'a Self>,
<I as IntoIterator>::IntoIter: ExactSizeIterator,
T: Index<T> + Send + Sync + 'static,
Self::Encoder: Encoder<&'a Self>,
Encode an iterator of value references
source§fn encode_list_own(
items: Vec<Self>,
enc: &mut Self::Encoder,
dst: &mut BytesMut,
) -> Result<Option<Box<dyn FnOnce(T, Vec<usize>) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send>> + Send>>, <Self::Encoder as Encoder<Self>>::Error>
fn encode_list_own( items: Vec<Self>, enc: &mut Self::Encoder, dst: &mut BytesMut, ) -> Result<Option<Box<dyn FnOnce(T, Vec<usize>) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send>> + Send>>, <Self::Encoder as Encoder<Self>>::Error>
Encode a list of owned values
source§impl<W> Encode<W> for StreamError
impl<W> Encode<W> for StreamError
source§fn encode(
self,
enc: &mut Self::Encoder,
dst: &mut BytesMut,
) -> Result<Option<Box<dyn FnOnce(T, Vec<usize>) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send>> + Send>>, <Self::Encoder as Encoder<Self>>::Error>
fn encode( self, enc: &mut Self::Encoder, dst: &mut BytesMut, ) -> Result<Option<Box<dyn FnOnce(T, Vec<usize>) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send>> + Send>>, <Self::Encoder as Encoder<Self>>::Error>
Convenience function for encoding a value
source§fn encode_iter_own<I>(
items: I,
enc: &mut Self::Encoder,
dst: &mut BytesMut,
) -> Result<Option<Box<dyn FnOnce(T, Vec<usize>) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send>> + Send>>, <Self::Encoder as Encoder<Self>>::Error>where
I: IntoIterator<Item = Self>,
<I as IntoIterator>::IntoIter: ExactSizeIterator,
T: Index<T> + Send + Sync + 'static,
fn encode_iter_own<I>(
items: I,
enc: &mut Self::Encoder,
dst: &mut BytesMut,
) -> Result<Option<Box<dyn FnOnce(T, Vec<usize>) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send>> + Send>>, <Self::Encoder as Encoder<Self>>::Error>where
I: IntoIterator<Item = Self>,
<I as IntoIterator>::IntoIter: ExactSizeIterator,
T: Index<T> + Send + Sync + 'static,
Encode an iterator of owned values
source§fn encode_iter_ref<'a, I>(
items: I,
enc: &mut Self::Encoder,
dst: &mut BytesMut,
) -> Result<Option<Box<dyn FnOnce(T, Vec<usize>) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send>> + Send>>, <Self::Encoder as Encoder<&'a Self>>::Error>where
I: IntoIterator<Item = &'a Self>,
<I as IntoIterator>::IntoIter: ExactSizeIterator,
T: Index<T> + Send + Sync + 'static,
Self::Encoder: Encoder<&'a Self>,
fn encode_iter_ref<'a, I>(
items: I,
enc: &mut Self::Encoder,
dst: &mut BytesMut,
) -> Result<Option<Box<dyn FnOnce(T, Vec<usize>) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send>> + Send>>, <Self::Encoder as Encoder<&'a Self>>::Error>where
I: IntoIterator<Item = &'a Self>,
<I as IntoIterator>::IntoIter: ExactSizeIterator,
T: Index<T> + Send + Sync + 'static,
Self::Encoder: Encoder<&'a Self>,
Encode an iterator of value references
source§fn encode_list_own(
items: Vec<Self>,
enc: &mut Self::Encoder,
dst: &mut BytesMut,
) -> Result<Option<Box<dyn FnOnce(T, Vec<usize>) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send>> + Send>>, <Self::Encoder as Encoder<Self>>::Error>
fn encode_list_own( items: Vec<Self>, enc: &mut Self::Encoder, dst: &mut BytesMut, ) -> Result<Option<Box<dyn FnOnce(T, Vec<usize>) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send>> + Send>>, <Self::Encoder as Encoder<Self>>::Error>
Encode a list of owned values
source§impl Error for StreamError
impl Error for StreamError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Auto Trait Implementations§
impl !Freeze for StreamError
impl RefUnwindSafe for StreamError
impl Send for StreamError
impl Sync for StreamError
impl Unpin for StreamError
impl UnwindSafe for StreamError
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 moresource§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoAnyhow for T
impl<T> IntoAnyhow for T
source§fn into_anyhow(self) -> Error
fn into_anyhow(self) -> Error
Converts
self
into an anyhow::Error
.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