pub enum ProcessingError {
DuplicatePacket,
RetryScidEqualsDcid,
ConnectionError(Error),
CryptoError(CryptoError),
NonEmptyRetryToken,
}
Expand description
Some connection methods may need to indicate both TransportError
s and CryptoError
s. This
enum is used to allow for either error type to be returned as appropriate.
Variants
DuplicatePacket
RetryScidEqualsDcid
Received a Retry packet with SCID field equal to DCID field.
ConnectionError(Error)
CryptoError(CryptoError)
NonEmptyRetryToken
Trait Implementations
sourceimpl Clone for ProcessingError
impl Clone for ProcessingError
sourcefn clone(&self) -> ProcessingError
fn clone(&self) -> ProcessingError
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 ProcessingError
impl Debug for ProcessingError
sourceimpl From<CryptoError> for ProcessingError
impl From<CryptoError> for ProcessingError
sourcefn from(inner_error: CryptoError) -> ProcessingError
fn from(inner_error: CryptoError) -> ProcessingError
Converts to this type from the input type.
sourceimpl From<Error> for ProcessingError
impl From<Error> for ProcessingError
sourcefn from(inner_error: Error) -> ProcessingError
fn from(inner_error: Error) -> ProcessingError
Converts to this type from the input type.
sourceimpl From<Error> for ProcessingError
impl From<Error> for ProcessingError
sourcefn from(inner_error: Error) -> ProcessingError
fn from(inner_error: Error) -> ProcessingError
Converts to this type from the input type.
sourceimpl PartialEq<ProcessingError> for ProcessingError
impl PartialEq<ProcessingError> for ProcessingError
sourcefn eq(&self, other: &ProcessingError) -> bool
fn eq(&self, other: &ProcessingError) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ProcessingError) -> bool
fn ne(&self, other: &ProcessingError) -> bool
This method tests for !=
.
impl Copy for ProcessingError
impl StructuralPartialEq for ProcessingError
Auto Trait Implementations
impl RefUnwindSafe for ProcessingError
impl Send for ProcessingError
impl Sync for ProcessingError
impl Unpin for ProcessingError
impl UnwindSafe for ProcessingError
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)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more