Skip to main content

IntermediaryAcceptError

Enum IntermediaryAcceptError 

Source
pub enum IntermediaryAcceptError<ServerError, ResolverError, RouteError, ClientError, RegistryError = Infallible, CancellationError = Infallible> {
    Server(ServerError),
    StartupRoute(StartupResolutionError<ResolverError>),
    CancellationRejected,
    AuthenticatedRoute(RouteError),
    Client(ClientError),
    CancellationRegistry(RegistryError),
    ServerOutput(Error),
    Cancellation(CancellationError),
}
Expand description

Failure while establishing both independently authenticated roles.

Variants§

§

Server(ServerError)

Client-facing TLS, startup, or authentication failed.

§

StartupRoute(StartupResolutionError<ResolverError>)

Startup routing failed before client-facing authentication.

§

CancellationRejected

The explicit cancellation posture rejected an out-of-band request.

§

AuthenticatedRoute(RouteError)

Authenticated routing rejected or failed to refine the destination.

§

Client(ClientError)

PostgreSQL-facing connection, TLS, startup, or authentication failed.

§

CancellationRegistry(RegistryError)

Cancellation-key allocation, collision detection, or storage failed.

§

ServerOutput(Error)

A generated establishment message could not be written downstream.

§

Cancellation(CancellationError)

Opening or writing the one-shot upstream cancellation connection failed.

Trait Implementations§

Source§

impl<S, R, A, C, K, X> Debug for IntermediaryAcceptError<S, R, A, C, K, X>

Source§

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

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

impl<S, R, A, C, K, X> Display for IntermediaryAcceptError<S, R, A, C, K, X>

Source§

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

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

impl<S, R, A, C, K, X> Error for IntermediaryAcceptError<S, R, A, C, K, X>
where S: Error + 'static, R: Error + 'static, A: Error + 'static, C: Error + 'static, K: Error + 'static, X: Error + 'static,

Source§

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

👎Deprecated since 1.42.0:

use the Display impl or to_string()

1.0.0 · Source§

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

Auto Trait Implementations§

§

impl<ServerError, ResolverError, RouteError, ClientError, RegistryError = Infallible, CancellationError = Infallible> !RefUnwindSafe for IntermediaryAcceptError<ServerError, ResolverError, RouteError, ClientError, RegistryError, CancellationError>

§

impl<ServerError, ResolverError, RouteError, ClientError, RegistryError = Infallible, CancellationError = Infallible> !UnwindSafe for IntermediaryAcceptError<ServerError, ResolverError, RouteError, ClientError, RegistryError, CancellationError>

§

impl<ServerError, ResolverError, RouteError, ClientError, RegistryError, CancellationError> Freeze for IntermediaryAcceptError<ServerError, ResolverError, RouteError, ClientError, RegistryError, CancellationError>
where ServerError: Freeze, RouteError: Freeze, ClientError: Freeze, RegistryError: Freeze, CancellationError: Freeze, ResolverError: Freeze,

§

impl<ServerError, ResolverError, RouteError, ClientError, RegistryError, CancellationError> Send for IntermediaryAcceptError<ServerError, ResolverError, RouteError, ClientError, RegistryError, CancellationError>
where ServerError: Send, RouteError: Send, ClientError: Send, RegistryError: Send, CancellationError: Send, ResolverError: Send,

§

impl<ServerError, ResolverError, RouteError, ClientError, RegistryError, CancellationError> Sync for IntermediaryAcceptError<ServerError, ResolverError, RouteError, ClientError, RegistryError, CancellationError>
where ServerError: Sync, RouteError: Sync, ClientError: Sync, RegistryError: Sync, CancellationError: Sync, ResolverError: Sync,

§

impl<ServerError, ResolverError, RouteError, ClientError, RegistryError, CancellationError> Unpin for IntermediaryAcceptError<ServerError, ResolverError, RouteError, ClientError, RegistryError, CancellationError>
where ServerError: Unpin, RouteError: Unpin, ClientError: Unpin, RegistryError: Unpin, CancellationError: Unpin, ResolverError: Unpin,

§

impl<ServerError, ResolverError, RouteError, ClientError, RegistryError, CancellationError> UnsafeUnpin for IntermediaryAcceptError<ServerError, ResolverError, RouteError, ClientError, RegistryError, CancellationError>
where ServerError: UnsafeUnpin, RouteError: UnsafeUnpin, ClientError: UnsafeUnpin, RegistryError: UnsafeUnpin, CancellationError: UnsafeUnpin, ResolverError: UnsafeUnpin,

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<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

Source§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

Source§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where T: 'a,

Source§

fn implicit( self, class: Class, constructed: bool, tag: u32, ) -> TaggedParser<'a, Implicit, Self, E>

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
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

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.

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.