#[non_exhaustive]pub enum RustlsServerSessionError {
Capacity {
required: RetainedBytes,
supplied: RetainedBytes,
},
Transport(TransportDiagnostic),
Tls(Error),
}Expand description
Failure before one socket-free rustls server 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 server connection.
Trait Implementations§
Source§impl Debug for RustlsServerSessionError
impl Debug for RustlsServerSessionError
Source§impl Display for RustlsServerSessionError
impl Display for RustlsServerSessionError
Source§impl Error for RustlsServerSessionError
impl Error for RustlsServerSessionError
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 RustlsServerSessionError
impl !UnwindSafe for RustlsServerSessionError
impl Freeze for RustlsServerSessionError
impl Send for RustlsServerSessionError
impl Sync for RustlsServerSessionError
impl Unpin for RustlsServerSessionError
impl UnsafeUnpin for RustlsServerSessionError
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