#[non_exhaustive]pub enum RustlsTransportLimitsError {
AddressSpace,
MissingInboundCharge,
MissingProtocolCharge,
EgressCharge {
minimum: RetainedBytes,
supplied: RetainedBytes,
},
PlaintextCharge {
minimum: RetainedBytes,
supplied: RetainedBytes,
},
}Expand description
Invalid rustls transport-memory accounting configuration.
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.
AddressSpace
The platform pointer width cannot fit the fixed retained-byte domain.
MissingInboundCharge
No conservative charge was supplied for rustls’s private encoded-input storage.
MissingProtocolCharge
No conservative charge was supplied for rustls and provider protocol state.
EgressCharge
The configured outbound charge cannot cover the observable TLS-egress bound.
Fields
§
minimum: RetainedBytesMinimum charge required by the configured logical bound.
§
supplied: RetainedBytesOutbound charge supplied by the caller.
PlaintextCharge
The configured plaintext charge cannot cover both plaintext buffer bounds.
Fields
§
minimum: RetainedBytesMinimum charge required by the configured logical bounds.
§
supplied: RetainedBytesPlaintext charge supplied by the caller.
Trait Implementations§
Source§impl Clone for RustlsTransportLimitsError
impl Clone for RustlsTransportLimitsError
impl Copy for RustlsTransportLimitsError
Source§impl Debug for RustlsTransportLimitsError
impl Debug for RustlsTransportLimitsError
Source§impl Display for RustlsTransportLimitsError
impl Display for RustlsTransportLimitsError
impl Eq for RustlsTransportLimitsError
Source§impl Error for RustlsTransportLimitsError
impl Error for RustlsTransportLimitsError
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()
impl StructuralPartialEq for RustlsTransportLimitsError
Auto Trait Implementations§
impl Freeze for RustlsTransportLimitsError
impl RefUnwindSafe for RustlsTransportLimitsError
impl Send for RustlsTransportLimitsError
impl Sync for RustlsTransportLimitsError
impl Unpin for RustlsTransportLimitsError
impl UnsafeUnpin for RustlsTransportLimitsError
impl UnwindSafe for RustlsTransportLimitsError
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