pub enum StoppedError {
ConnectionLost(ConnectionError),
ZeroRttRejected,
}
Expand description
Errors that arise while monitoring for a send stream stop from the peer
Variants§
ConnectionLost(ConnectionError)
The connection was lost
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)>
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<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.
Source§impl From<StoppedError> for Error
impl From<StoppedError> for Error
Source§fn from(x: StoppedError) -> Self
fn from(x: StoppedError) -> Self
Converts to this type from the input type.
Source§impl From<StoppedError> for WriteError
impl From<StoppedError> for WriteError
Source§fn from(x: StoppedError) -> Self
fn from(x: StoppedError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for StoppedError
impl PartialEq for StoppedError
impl Eq for StoppedError
impl StructuralPartialEq for StoppedError
Auto Trait Implementations§
impl !Freeze for StoppedError
impl RefUnwindSafe for StoppedError
impl Send for StoppedError
impl Sync for StoppedError
impl Unpin for StoppedError
impl UnwindSafe for StoppedError
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)