Enum webrtc_dtls::Error
source · [−]#[non_exhaustive]
pub enum Error {
Show 74 variants
ErrConnClosed,
ErrDeadlineExceeded,
ErrBufferTooSmall,
ErrContextUnsupported,
ErrDtlspacketInvalidLength,
ErrHandshakeInProgress,
ErrInvalidContentType,
ErrInvalidMac,
ErrInvalidPacketLength,
ErrReservedExportKeyingMaterial,
ErrCertificateVerifyNoCertificate,
ErrCipherSuiteNoIntersection,
ErrCipherSuiteUnset,
ErrClientCertificateNotVerified,
ErrClientCertificateRequired,
ErrClientNoMatchingSrtpProfile,
ErrClientRequiredButNoServerEms,
ErrCompressionMethodUnset,
ErrCookieMismatch,
ErrCookieTooLong,
ErrIdentityNoPsk,
ErrInvalidCertificate,
ErrInvalidCipherSpec,
ErrInvalidCipherSuite,
ErrInvalidClientKeyExchange,
ErrInvalidCompressionMethod,
ErrInvalidEcdsasignature,
ErrInvalidEllipticCurveType,
ErrInvalidExtensionType,
ErrInvalidHashAlgorithm,
ErrInvalidNamedCurve,
ErrInvalidPrivateKey,
ErrNamedCurveAndPrivateKeyMismatch,
ErrInvalidSniFormat,
ErrInvalidSignatureAlgorithm,
ErrKeySignatureMismatch,
ErrNilNextConn,
ErrNoAvailableCipherSuites,
ErrNoAvailableSignatureSchemes,
ErrNoCertificates,
ErrNoConfigProvided,
ErrNoSupportedEllipticCurves,
ErrUnsupportedProtocolVersion,
ErrPskAndCertificate,
ErrPskAndIdentityMustBeSetForClient,
ErrRequestedButNoSrtpExtension,
ErrServerMustHaveCertificate,
ErrServerNoMatchingSrtpProfile,
ErrServerRequiredButNoClientEms,
ErrVerifyDataMismatch,
ErrHandshakeMessageUnset,
ErrInvalidFlight,
ErrKeySignatureGenerateUnimplemented,
ErrKeySignatureVerifyUnimplemented,
ErrLengthMismatch,
ErrNotEnoughRoomForNonce,
ErrNotImplemented,
ErrSequenceNumberOverflow,
ErrUnableToMarshalFragmented,
ErrInvalidFsmTransition,
ErrApplicationDataEpochZero,
ErrUnhandledContextType,
ErrContextCanceled,
ErrEmptyFragment,
ErrAlertFatalOrClose,
ErrFragmentBufferOverflow {
new_size: usize,
max_size: usize,
},
Io(IoError),
Util(Error),
Utf8(FromUtf8Error),
P256(P256Error),
RcGen(RcgenError),
MpscSend(String),
KeyingMaterial(KeyingMaterialExporterError),
Other(String),
}
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.
ErrConnClosed
ErrDeadlineExceeded
ErrBufferTooSmall
ErrContextUnsupported
ErrDtlspacketInvalidLength
ErrHandshakeInProgress
ErrInvalidContentType
ErrInvalidMac
ErrInvalidPacketLength
ErrReservedExportKeyingMaterial
ErrCertificateVerifyNoCertificate
ErrCipherSuiteNoIntersection
ErrCipherSuiteUnset
ErrClientCertificateNotVerified
ErrClientCertificateRequired
ErrClientNoMatchingSrtpProfile
ErrClientRequiredButNoServerEms
ErrCompressionMethodUnset
ErrCookieMismatch
ErrCookieTooLong
ErrIdentityNoPsk
ErrInvalidCertificate
ErrInvalidCipherSpec
ErrInvalidCipherSuite
ErrInvalidClientKeyExchange
ErrInvalidCompressionMethod
ErrInvalidEcdsasignature
ErrInvalidEllipticCurveType
ErrInvalidExtensionType
ErrInvalidHashAlgorithm
ErrInvalidNamedCurve
ErrInvalidPrivateKey
ErrNamedCurveAndPrivateKeyMismatch
ErrInvalidSniFormat
ErrInvalidSignatureAlgorithm
ErrKeySignatureMismatch
ErrNilNextConn
ErrNoAvailableCipherSuites
ErrNoAvailableSignatureSchemes
ErrNoCertificates
ErrNoConfigProvided
ErrNoSupportedEllipticCurves
ErrUnsupportedProtocolVersion
ErrPskAndCertificate
ErrPskAndIdentityMustBeSetForClient
ErrRequestedButNoSrtpExtension
ErrServerMustHaveCertificate
ErrServerNoMatchingSrtpProfile
ErrServerRequiredButNoClientEms
ErrVerifyDataMismatch
ErrHandshakeMessageUnset
ErrInvalidFlight
ErrKeySignatureGenerateUnimplemented
ErrKeySignatureVerifyUnimplemented
ErrLengthMismatch
ErrNotEnoughRoomForNonce
ErrNotImplemented
ErrSequenceNumberOverflow
ErrUnableToMarshalFragmented
ErrInvalidFsmTransition
ErrApplicationDataEpochZero
ErrUnhandledContextType
ErrContextCanceled
ErrEmptyFragment
ErrAlertFatalOrClose
ErrFragmentBufferOverflow
Io(IoError)
Util(Error)
Utf8(FromUtf8Error)
P256(P256Error)
RcGen(RcgenError)
MpscSend(String)
KeyingMaterial(KeyingMaterialExporterError)
Other(String)
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
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎 Deprecated since 1.42.0:
use the Display impl or to_string()
sourceimpl From<BlockModeError> for Error
impl From<BlockModeError> for Error
sourcefn from(e: BlockModeError) -> Self
fn from(e: BlockModeError) -> Self
Converts to this type from the input type.
sourceimpl From<FromUtf8Error> for Error
impl From<FromUtf8Error> for Error
sourcefn from(source: FromUtf8Error) -> Self
fn from(source: FromUtf8Error) -> Self
Converts to this type from the input type.
sourceimpl From<InvalidKeyIvLength> for Error
impl From<InvalidKeyIvLength> for Error
sourcefn from(e: InvalidKeyIvLength) -> Self
fn from(e: InvalidKeyIvLength) -> Self
Converts to this type from the input type.
sourceimpl From<KeyingMaterialExporterError> for Error
impl From<KeyingMaterialExporterError> for Error
sourcefn from(source: KeyingMaterialExporterError) -> Self
fn from(source: KeyingMaterialExporterError) -> Self
Converts to this type from the input type.
sourceimpl From<RcgenError> for Error
impl From<RcgenError> for Error
sourcefn from(source: RcgenError) -> Self
fn from(source: RcgenError) -> Self
Converts to this type from the input type.
sourceimpl<T> From<SendError<T>> for Error
impl<T> From<SendError<T>> for Error
sourcefn from(e: MpscSendError<T>) -> Self
fn from(e: MpscSendError<T>) -> Self
Converts to this type from the input type.
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