pub enum NetworkInitError {
MaxConnectionsExceeded {
configured: usize,
limit: usize,
},
Tls(TlsStateError),
InvalidRateLimit {
direction: NetworkRateLimitDirection,
source: RateLimitConfigError,
},
EmptyNetworkRateLimiter,
}Expand description
Errors that prevent the smoltcp network from being created safely.
Variants§
MaxConnectionsExceeded
The configured connection cap is above the hard safety limit.
Fields
Tls(TlsStateError)
TLS interception state failed to initialize.
InvalidRateLimit
A stored rate limiter configuration failed validation.
Fields
§
direction: NetworkRateLimitDirectionWhich limiter is invalid: egress or ingress.
§
source: RateLimitConfigErrorUnderlying validation error.
EmptyNetworkRateLimiter
A stored network rate limiter has neither direction configured.
Trait Implementations§
Source§impl Debug for NetworkInitError
impl Debug for NetworkInitError
Source§impl Display for NetworkInitError
impl Display for NetworkInitError
Source§impl Error for NetworkInitError
impl Error for NetworkInitError
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()
Source§impl From<TlsStateError> for NetworkInitError
impl From<TlsStateError> for NetworkInitError
Source§fn from(source: TlsStateError) -> Self
fn from(source: TlsStateError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for NetworkInitError
impl !UnwindSafe for NetworkInitError
impl Freeze for NetworkInitError
impl Send for NetworkInitError
impl Sync for NetworkInitError
impl Unpin for NetworkInitError
impl UnsafeUnpin for NetworkInitError
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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