#[non_exhaustive]pub enum AssociationError {
HandshakeFailed(String),
TransportError,
AssociationClosed,
ApplicationClosed,
Reset,
TimedOut,
LocallyClosed,
}Expand description
Reasons why an association might be lost
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.
HandshakeFailed(String)
Handshake failed
TransportError
The peer violated the QUIC specification as understood by this implementation
AssociationClosed
The peer’s QUIC stack aborted the association automatically
ApplicationClosed
The peer closed the association
Reset
The peer is unable to continue processing this association, usually due to having restarted
TimedOut
Communication with the peer has lapsed for longer than the negotiated idle timeout
If neither side is sending keep-alives, an association will time out after a long enough idle period even if the peer is still reachable
LocallyClosed
The local application closed the association
Trait Implementations§
Source§impl Clone for AssociationError
impl Clone for AssociationError
Source§impl Debug for AssociationError
impl Debug for AssociationError
Source§impl Display for AssociationError
impl Display for AssociationError
Source§impl Error for AssociationError
impl Error for AssociationError
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 PartialEq for AssociationError
impl PartialEq for AssociationError
impl StructuralPartialEq for AssociationError
Auto Trait Implementations§
impl Forget for AssociationError
impl Freeze for AssociationError
impl Move for AssociationError
impl RefUnwindSafe for AssociationError
impl Send for AssociationErrorwhere
RawVecInner: Send,
impl Sync for AssociationErrorwhere
RawVecInner: Sync,
impl Unpin for AssociationError
impl UnsafeUnpin for AssociationError
impl UnwindSafe for AssociationErrorwhere
RawVecInner: UnwindSafe,
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