#[non_exhaustive]pub enum LinkEnd {
Rejected(RejectionReason),
HandshakeTimedOut,
PeerIdle,
PeerShutdown,
KeyExhausted,
}Available on crate feature
link only.Expand description
How a link ended, named once.
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.
Rejected(RejectionReason)
The peer refused the handshake, with its reason (§4.3.1.2).
HandshakeTimedOut
No resolution arrived inside the handshake budget or the retransmit budget.
PeerIdle
Nothing at all arrived from the connected peer for the peer-idle bound.
PeerShutdown
The peer sent SHUTDOWN (§3.2.7).
KeyExhausted
The send key reached the packet count after which its keystream would repeat, and no refreshed key was confirmed: sending on would reuse keystream, so the link stops.
Implementations§
Trait Implementations§
impl Copy for LinkEnd
impl Eq for LinkEnd
impl StructuralPartialEq for LinkEnd
Auto Trait Implementations§
impl Forget for LinkEnd
impl Freeze for LinkEnd
impl Move for LinkEnd
impl RefUnwindSafe for LinkEnd
impl Send for LinkEnd
impl Sync for LinkEnd
impl Unpin for LinkEnd
impl UnsafeUnpin for LinkEnd
impl UnwindSafe for LinkEnd
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