Enum fire_stream::StreamError
source · #[non_exhaustive]
pub enum StreamError {
Io(Error),
Packet(PacketError),
ConnectionClosed,
RequestDropped,
StreamClosed,
JoinError(JoinError),
}Expand description
ConnectionClosed, RequestDropped, StreamClosed are all errors which you can’t say about what really happended those should be treated as the same for the moment.
Todo
Fix this!!
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Io(Error)
Packet(PacketError)
ConnectionClosed
This get’s returned if we don’t have any other error to return
RequestDropped
Gets returned if the request or response channel is dropped unexpectedly
StreamClosed
Get’s returned if a stream is closed
JoinError(JoinError)
Implementations§
Trait Implementations§
source§impl Debug for StreamError
impl Debug for StreamError
source§impl Display for StreamError
impl Display for StreamError
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)>
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<Error> for StreamError
impl From<Error> for StreamError
source§impl From<PacketError> for StreamError
impl From<PacketError> for StreamError
source§fn from(e: PacketError) -> Self
fn from(e: PacketError) -> Self
Converts to this type from the input type.