Enum quinn::StoppedError
source · pub enum StoppedError {
ConnectionLost(ConnectionError),
UnknownStream,
ZeroRttRejected,
}
Expand description
Errors that arise while monitoring for a send stream stop from the peer
Variants§
ConnectionLost(ConnectionError)
The connection was lost
UnknownStream
The stream has already been finished or reset
ZeroRttRejected
This was a 0-RTT stream and the server rejected it
Can only occur on clients for 0-RTT streams, which can be opened using
Connecting::into_0rtt()
.
Trait Implementations§
source§impl Clone for StoppedError
impl Clone for StoppedError
source§fn clone(&self) -> StoppedError
fn clone(&self) -> StoppedError
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 StoppedError
impl Debug for StoppedError
source§impl Display for StoppedError
impl Display for StoppedError
source§impl Error for StoppedError
impl Error for StoppedError
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<ConnectionError> for StoppedError
impl From<ConnectionError> for StoppedError
source§fn from(source: ConnectionError) -> Self
fn from(source: ConnectionError) -> Self
Converts to this type from the input type.