Enum sctp_proto::AssociationError
source · [−]pub enum AssociationError {
HandshakeFailed(Error),
TransportError,
AssociationClosed,
ApplicationClosed,
Reset,
TimedOut,
LocallyClosed,
}
Expand description
Reasons why an association might be lost
Variants
HandshakeFailed(Error)
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
sourceimpl Clone for AssociationError
impl Clone for AssociationError
sourcefn clone(&self) -> AssociationError
fn clone(&self) -> AssociationError
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for AssociationError
impl Debug for AssociationError
sourceimpl Display for AssociationError
impl Display for AssociationError
sourceimpl Error for AssociationError
impl Error for AssociationError
sourcefn 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 · sourcefn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
sourceimpl From<Error> for AssociationError
impl From<Error> for AssociationError
sourceimpl PartialEq<AssociationError> for AssociationError
impl PartialEq<AssociationError> for AssociationError
sourcefn eq(&self, other: &AssociationError) -> bool
fn eq(&self, other: &AssociationError) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
impl Eq for AssociationError
impl StructuralEq for AssociationError
impl StructuralPartialEq for AssociationError
Auto Trait Implementations
impl RefUnwindSafe for AssociationError
impl Send for AssociationError
impl Sync for AssociationError
impl Unpin for AssociationError
impl UnwindSafe for AssociationError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more