pub enum ReadStreamError {
InvalidArgument(&'static str, StreamIo),
}
Expand description
Errors that can occur during the coroutine progression.
Variants§
InvalidArgument(&'static str, StreamIo)
The coroutine received an invalid argument.
Occurs when the coroutine receives an I/O response from another coroutine, which should not happen if the runtime maps correctly the arguments.
Trait Implementations§
Source§impl Clone for ReadStreamError
impl Clone for ReadStreamError
Source§fn clone(&self) -> ReadStreamError
fn clone(&self) -> ReadStreamError
Returns a duplicate 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 ReadStreamError
impl Debug for ReadStreamError
Source§impl Display for ReadStreamError
impl Display for ReadStreamError
Source§impl Error for ReadStreamError
impl Error for ReadStreamError
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()
Source§impl From<ReadStreamError> for ReadStreamExactError
impl From<ReadStreamError> for ReadStreamExactError
Source§fn from(source: ReadStreamError) -> Self
fn from(source: ReadStreamError) -> Self
Converts to this type from the input type.
Source§impl From<ReadStreamError> for ReadStreamToEndError
impl From<ReadStreamError> for ReadStreamToEndError
Source§fn from(source: ReadStreamError) -> Self
fn from(source: ReadStreamError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ReadStreamError
impl RefUnwindSafe for ReadStreamError
impl Send for ReadStreamError
impl Sync for ReadStreamError
impl Unpin for ReadStreamError
impl UnwindSafe for ReadStreamError
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