Enum EgressError
pub enum EgressError {
Network(NetworkGuardError),
InvalidHostPattern(String),
InvalidNat64Prefix(String),
InvalidConnectionLimit,
PermissionDenied {
transport: EgressTransport,
permission: PluginPermission,
},
DestinationNotGranted {
instance: String,
host: String,
},
DnsFailed {
host: String,
port: u16,
reason: String,
},
ConnectionLimitReached {
instance: String,
limit: usize,
},
InvalidStartTlsTransition {
from: StartTlsPhase,
to: StartTlsPhase,
},
PolicyUnavailable(String),
}Expand description
Failure at the shared plugin egress boundary.
Variants§
Network(NetworkGuardError)
Host/address policy rejection from the shared network guard.
InvalidHostPattern(String)
Invalid pattern in the canonical operator allowlist.
InvalidNat64Prefix(String)
Invalid security.nat64_prefixes entry. Fails the policy closed rather
than quietly narrowing the validation boundary.
InvalidConnectionLimit
A policy returned an unsafe zero connection ceiling.
PermissionDenied
The admitted instance lacks the transport’s effective grant.
DestinationNotGranted
The destination is not in this instance’s operator-granted allowlist.
DnsFailed
DNS resolution failed before policy could pin an address set.
ConnectionLimitReached
The per-instance cross-transport connection ceiling is full.
InvalidStartTlsTransition
STARTTLS attempted a transition that could enable downgrade/fallback.
Canonical host policy could not be resolved.
Trait Implementations§
Source§impl Debug for EgressError
impl Debug for EgressError
Source§impl Display for EgressError
impl Display for EgressError
Source§impl Error for EgressError
impl Error for EgressError
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 · §fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<NetworkGuardError> for EgressError
impl From<NetworkGuardError> for EgressError
Source§fn from(source: NetworkGuardError) -> Self
fn from(source: NetworkGuardError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for EgressError
impl RefUnwindSafe for EgressError
impl Send for EgressError
impl Sync for EgressError
impl Unpin for EgressError
impl UnsafeUnpin for EgressError
impl UnwindSafe for EgressError
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