pub enum TlsExtensionError {
UnsupportedCertificateType(u8),
EmptyCertificateTypeList,
CertificateTypeListTooLong(usize),
DuplicateCertificateType(CertificateType),
InvalidExtensionData(String),
NegotiationFailed {
client_types: CertificateTypeList,
server_types: CertificateTypeList,
},
ExtensionAlreadyRegistered(u16),
RustlsError(String),
}
Expand description
Errors that can occur during TLS extension processing
Variants§
UnsupportedCertificateType(u8)
Unsupported certificate type value
EmptyCertificateTypeList
Empty certificate type list
CertificateTypeListTooLong(usize)
Certificate type list too long (>255 entries)
DuplicateCertificateType(CertificateType)
Duplicate certificate type in list
InvalidExtensionData(String)
Invalid extension data format
NegotiationFailed
Certificate type negotiation failed
ExtensionAlreadyRegistered(u16)
Extension already registered
RustlsError(String)
rustls integration error
Trait Implementations§
Source§impl Clone for TlsExtensionError
impl Clone for TlsExtensionError
Source§fn clone(&self) -> TlsExtensionError
fn clone(&self) -> TlsExtensionError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for TlsExtensionError
impl Debug for TlsExtensionError
Source§impl Display for TlsExtensionError
impl Display for TlsExtensionError
Source§impl Error for TlsExtensionError
impl Error for TlsExtensionError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for TlsExtensionError
impl RefUnwindSafe for TlsExtensionError
impl Send for TlsExtensionError
impl Sync for TlsExtensionError
impl Unpin for TlsExtensionError
impl UnwindSafe for TlsExtensionError
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