Skip to main content

EgressError

Enum EgressError 

pub enum EgressError {
Show 22 variants Network(NetworkGuardError), InvalidHostPattern(String), InvalidNat64Prefix(String), InvalidConnectionLimit, PermissionDenied { transport: EgressTransport, permission: PluginPermission, }, DestinationNotGranted { instance: String, host: String, }, InvalidTlsProfileName(String), InvalidTlsProfile { profile: String, reason: String, }, DuplicateTlsProfile(String), TlsProfileWithoutHosts(String), TlsProfileHostNotGranted { profile: String, host: String, }, TlsProfileOnPlaintext(EgressTransport), UnknownTlsProfile(String), TlsProfileHostDenied { profile: String, host: String, }, InvalidTlsMaterial { profile: String, part: String, }, AuthorizationScopeMismatch, TlsSecretUnavailable { profile: String, property: String, }, TlsConfigMismatch, 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.

Fields

§permission: PluginPermission
§

DestinationNotGranted

The destination is not in this instance’s operator-granted allowlist.

Fields

§instance: String
§host: String
§

InvalidTlsProfileName(String)

Invalid TLS profile slug.

§

InvalidTlsProfile

Incoherent TLS profile definition.

Fields

§profile: String
§reason: String
§

DuplicateTlsProfile(String)

Two profiles on one instance share a name.

§

TlsProfileWithoutHosts(String)

A TLS profile binds no destination.

§

TlsProfileHostNotGranted

A TLS profile names a host the instance’s grant does not contain.

Fields

§profile: String
§host: String
§

TlsProfileOnPlaintext(EgressTransport)

A transport that never carries TLS selected a TLS profile.

§

UnknownTlsProfile(String)

The selected TLS profile is not configured on this instance.

§

TlsProfileHostDenied

The selected TLS profile does not cover this destination.

Fields

§profile: String
§host: String
§

InvalidTlsMaterial

A selected TLS profile’s certificate material is missing or invalid.

Fields

§profile: String
§part: String
§

AuthorizationScopeMismatch

An adapter used an authorization issued to a different instance.

§

TlsSecretUnavailable

A selected TLS profile names a secret this instance cannot resolve.

Fields

§profile: String
§property: String
§

TlsConfigMismatch

Frame material and request authorization do not describe one config view.

§

DnsFailed

DNS resolution failed before policy could pin an address set.

Fields

§host: String
§port: u16
§reason: String
§

ConnectionLimitReached

The per-instance cross-transport connection ceiling is full.

Fields

§instance: String
§limit: usize
§

InvalidStartTlsTransition

STARTTLS attempted a transition that could enable downgrade/fallback.

§

PolicyUnavailable(String)

Canonical host policy could not be resolved.

Trait Implementations§

Source§

impl Debug for EgressError

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for EgressError

Source§

fn fmt(&self, __formatter: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Error for EgressError

Source§

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

👎Deprecated since 1.42.0:

use the Display impl or to_string()

1.0.0 · §

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

Source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
Source§

impl From<NetworkGuardError> for EgressError

Source§

fn from(source: NetworkGuardError) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self> ⓘ

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self> ⓘ

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘ
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more