pub enum Error {
Show 20 variants
Done,
BufferTooShort,
UnknownVersion,
InvalidFrame,
InvalidPacket,
InvalidState,
InvalidStreamState(u64),
InvalidTransportParam,
CryptoFail,
TlsFail,
FlowControl,
StreamLimit,
StreamStopped(u64),
StreamReset(u64),
FinalSize,
CongestionControl,
IdLimit,
OutOfIdentifiers,
KeyUpdate,
CryptoBufferExceeded,
}
Expand description
A QUIC error.
Variants§
Done
There is no more work to do.
BufferTooShort
The provided buffer is too short.
UnknownVersion
The provided packet cannot be parsed because its version is unknown.
InvalidFrame
The provided packet cannot be parsed because it contains an invalid frame.
InvalidPacket
The provided packet cannot be parsed.
InvalidState
The operation cannot be completed because the connection is in an invalid state.
InvalidStreamState(u64)
The operation cannot be completed because the stream is in an invalid state.
The stream ID is provided as associated data.
InvalidTransportParam
The peer’s transport params cannot be parsed.
CryptoFail
A cryptographic operation failed.
TlsFail
The TLS handshake failed.
FlowControl
The peer violated the local flow control limits.
StreamLimit
The peer violated the local stream limits.
StreamStopped(u64)
The specified stream was stopped by the peer.
The error code sent as part of the STOP_SENDING
frame is provided as
associated data.
StreamReset(u64)
The specified stream was reset by the peer.
The error code sent as part of the RESET_STREAM
frame is provided as
associated data.
FinalSize
The received data exceeds the stream’s final size.
CongestionControl
Error in congestion control.
IdLimit
Too many identifiers were provided.
OutOfIdentifiers
Not enough available identifiers.
KeyUpdate
Error in key update.
CryptoBufferExceeded
The peer sent more data in CRYPTO frames than we can buffer.
Trait Implementations§
Source§impl Error for Error
impl Error for Error
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
Source§impl From<BufferTooShortError> for Error
impl From<BufferTooShortError> for Error
Source§fn from(_err: BufferTooShortError) -> Self
fn from(_err: BufferTooShortError) -> Self
impl Copy for Error
impl Eq for Error
impl StructuralPartialEq for Error
Auto Trait Implementations§
impl Freeze for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
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
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)
clone_to_uninit
)§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more