#[repr(u64)]pub enum EndpointCloseReason {
Show 21 variants
NoError = 0,
InternalError = 1,
ConnectionRefused = 2,
FlowControlError = 3,
StreamLimitError = 4,
StreamStateError = 5,
FinalStateError = 6,
FrameEncodingError = 7,
TransportParameterError = 8,
ConnectionIdLimitError = 9,
ProtocolViolation = 10,
InvalidToken = 11,
ApplicationError = 12,
CryptoBufferExceeded = 13,
KeyUpdateError = 14,
AeadLimitReached = 15,
NoViablePath = 16,
MainStreamFinished = 17,
BackgroundStreamFinished = 18,
CryptoErrorStart = 256,
CryptoErrorEnd = 511,
}
Expand description
Based on combination of QUIC Transport Error Codes and Endpoint Error Codes
Variants§
NoError = 0
No Error
InternalError = 1
Implementation Error
ConnectionRefused = 2
Server refuses a connection
FlowControlError = 3
Flow control error
StreamLimitError = 4
Too many streams opened
StreamStateError = 5
Frame received in invalid stream state
FinalStateError = 6
Change to final size
FrameEncodingError = 7
Frame encoding error
TransportParameterError = 8
Error in transport parameters
ConnectionIdLimitError = 9
Too many connection IDs received
ProtocolViolation = 10
Generic protocol violation
InvalidToken = 11
Invalid Token received
ApplicationError = 12
Application error
CryptoBufferExceeded = 13
CRYPTO data buffer overflowed
KeyUpdateError = 14
Invalid packet protection update
AeadLimitReached = 15
Excessive use of packet protection keys
NoViablePath = 16
No viable network path exists
MainStreamFinished = 17
Main stream finished
BackgroundStreamFinished = 18
Background stream finished
CryptoErrorStart = 256
TLS Alert Start
CryptoErrorEnd = 511
TLS Alert End
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for EndpointCloseReason
impl Send for EndpointCloseReason
impl Sync for EndpointCloseReason
impl Unpin for EndpointCloseReason
impl UnwindSafe for EndpointCloseReason
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