#[non_exhaustive]pub enum RustlsConnectError {
Capacity {
required: RetainedBytes,
supplied: RetainedBytes,
},
Transport(TransportDiagnostic),
Tls(Error),
Io(Error),
}Expand description
Failure before one rustls transport becomes registered or 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 adapter charge exceeds the Bornera slot ceiling.
Fields
§
required: RetainedBytesCharge required by this rustls adapter configuration.
§
supplied: RetainedBytesCeiling supplied by the exact Bornera connection slot.
Transport(TransportDiagnostic)
Rustls’s initial logical buffers exceeded their configured bound.
Tls(Error)
Rustls rejected construction of the client connection.
Io(Error)
The operating system rejected creation of the nonblocking TCP stream.
Trait Implementations§
Source§impl Debug for RustlsConnectError
impl Debug for RustlsConnectError
Source§impl Display for RustlsConnectError
impl Display for RustlsConnectError
Source§impl Error for RustlsConnectError
impl Error for RustlsConnectError
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 RustlsConnectError
impl !UnwindSafe for RustlsConnectError
impl Freeze for RustlsConnectError
impl Send for RustlsConnectError
impl Sync for RustlsConnectError
impl Unpin for RustlsConnectError
impl UnsafeUnpin for RustlsConnectError
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