pub enum ResetError {
ConnectionLost(ConnectionError),
ZeroRttRejected,
}
Expand description
Errors that arise while waiting for a stream to be reset
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 ResetError
impl Clone for ResetError
Source§fn clone(&self) -> ResetError
fn clone(&self) -> ResetError
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 ResetError
impl Debug for ResetError
Source§impl Display for ResetError
impl Display for ResetError
Source§impl Error for ResetError
impl Error for ResetError
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 ResetError
impl From<ConnectionError> for ResetError
Source§fn from(source: ConnectionError) -> Self
fn from(source: ConnectionError) -> Self
Converts to this type from the input type.
Source§impl From<ResetError> for Error
impl From<ResetError> for Error
Source§fn from(x: ResetError) -> Self
fn from(x: ResetError) -> Self
Converts to this type from the input type.
Source§impl From<ResetError> for ReadError
impl From<ResetError> for ReadError
Source§fn from(e: ResetError) -> Self
fn from(e: ResetError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ResetError
impl PartialEq for ResetError
impl Eq for ResetError
impl StructuralPartialEq for ResetError
Auto Trait Implementations§
impl !Freeze for ResetError
impl RefUnwindSafe for ResetError
impl Send for ResetError
impl Sync for ResetError
impl Unpin for ResetError
impl UnwindSafe for ResetError
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
)