#[non_exhaustive]pub enum RustlsClientSessionError {
Capacity {
required: RetainedBytes,
supplied: RetainedBytes,
},
Transport(TransportDiagnostic),
Tls(Error),
}Expand description
Failure before one socket-free rustls client session becomes observable.
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.
Capacity
The configured session charge exceeds its caller-supplied ceiling.
Fields
§
required: RetainedBytesCharge required by this rustls session configuration.
§
supplied: RetainedBytesCeiling supplied by the connection owner.
Transport(TransportDiagnostic)
Rustls’s initial logical state exceeded a configured bound.
Tls(Error)
Rustls rejected construction of the client connection.
Trait Implementations§
Source§impl Debug for RustlsClientSessionError
impl Debug for RustlsClientSessionError
Source§impl Display for RustlsClientSessionError
impl Display for RustlsClientSessionError
Source§impl Error for RustlsClientSessionError
impl Error for RustlsClientSessionError
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 !RefUnwindSafe for RustlsClientSessionError
impl !UnwindSafe for RustlsClientSessionError
impl Freeze for RustlsClientSessionError
impl Send for RustlsClientSessionError
impl Sync for RustlsClientSessionError
impl Unpin for RustlsClientSessionError
impl UnsafeUnpin for RustlsClientSessionError
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