pub enum Error {
}
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.
Trait Implementations
sourceimpl Error for Error
impl Error for Error
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
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
sourceimpl From<BufferTooShortError> for Error
impl From<BufferTooShortError> for Error
sourcefn from(_err: BufferTooShortError) -> Self
fn from(_err: BufferTooShortError) -> Self
Converts to this type from the input type.
impl Copy for Error
impl StructuralPartialEq for Error
Auto Trait Implementations
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more