Skip to main content

AuthInternalProjection

Enum AuthInternalProjection 

Source
pub enum AuthInternalProjection<Transport, SourceCleanliness> {
    Negotiate {
        connection: Conn<Transport, Auth, SourceCleanliness>,
        message: AuthNegotiateInternalTransitionMessage,
        source_cleanliness: PhantomData<SourceCleanliness>,
    },
    Cleartext {
        connection: Conn<Transport, PasswordResponse, SourceCleanliness>,
        message: AuthCleartextInternalTransitionMessage,
        source_cleanliness: PhantomData<SourceCleanliness>,
    },
    Md5 {
        connection: Conn<Transport, PasswordResponse, SourceCleanliness>,
        message: AuthMd5InternalTransitionMessage,
        source_cleanliness: PhantomData<SourceCleanliness>,
    },
    Sasl {
        connection: Conn<Transport, SaslInitial, SourceCleanliness>,
        message: AuthSaslInternalTransitionMessage,
        source_cleanliness: PhantomData<SourceCleanliness>,
    },
    Gss {
        connection: Conn<Transport, TokenResponse, SourceCleanliness>,
        message: AuthGssInternalTransitionMessage,
        source_cleanliness: PhantomData<SourceCleanliness>,
    },
    Sspi {
        connection: Conn<Transport, TokenResponse, SourceCleanliness>,
        message: AuthSspiInternalTransitionMessage,
        source_cleanliness: PhantomData<SourceCleanliness>,
    },
    KerberosV5 {
        connection: Conn<Transport, TokenResponse, SourceCleanliness>,
        message: AuthKerberosV5InternalTransitionMessage,
        source_cleanliness: PhantomData<SourceCleanliness>,
    },
    Ok {
        connection: Conn<Transport, StartupReady, SourceCleanliness>,
        message: AuthOkInternalTransitionMessage,
        source_cleanliness: PhantomData<SourceCleanliness>,
    },
    Error {
        connection: Conn<Transport, Terminated, SourceCleanliness>,
        message: AuthErrorInternalTransitionMessage,
        source_cleanliness: PhantomData<SourceCleanliness>,
    },
    // some variants omitted
}
Expand description

Typed next-connection projection for AuthInternalMessage.

Variants§

§

Negotiate

The Event::Negotiate transition and its correctly typed next connection.

Fields

§connection: Conn<Transport, Auth, SourceCleanliness>

Connection after applying the selected message transition.

§message: AuthNegotiateInternalTransitionMessage

Validated message which selected this transition.

§source_cleanliness: PhantomData<SourceCleanliness>

Retains the source cleanliness parameter even when replaced.

§

Cleartext

The Event::Cleartext transition and its correctly typed next connection.

Fields

§connection: Conn<Transport, PasswordResponse, SourceCleanliness>

Connection after applying the selected message transition.

§message: AuthCleartextInternalTransitionMessage

Validated message which selected this transition.

§source_cleanliness: PhantomData<SourceCleanliness>

Retains the source cleanliness parameter even when replaced.

§

Md5

The Event::Md5 transition and its correctly typed next connection.

Fields

§connection: Conn<Transport, PasswordResponse, SourceCleanliness>

Connection after applying the selected message transition.

§message: AuthMd5InternalTransitionMessage

Validated message which selected this transition.

§source_cleanliness: PhantomData<SourceCleanliness>

Retains the source cleanliness parameter even when replaced.

§

Sasl

The Event::Sasl transition and its correctly typed next connection.

Fields

§connection: Conn<Transport, SaslInitial, SourceCleanliness>

Connection after applying the selected message transition.

§message: AuthSaslInternalTransitionMessage

Validated message which selected this transition.

§source_cleanliness: PhantomData<SourceCleanliness>

Retains the source cleanliness parameter even when replaced.

§

Gss

The Event::Gss transition and its correctly typed next connection.

Fields

§connection: Conn<Transport, TokenResponse, SourceCleanliness>

Connection after applying the selected message transition.

§message: AuthGssInternalTransitionMessage

Validated message which selected this transition.

§source_cleanliness: PhantomData<SourceCleanliness>

Retains the source cleanliness parameter even when replaced.

§

Sspi

The Event::Sspi transition and its correctly typed next connection.

Fields

§connection: Conn<Transport, TokenResponse, SourceCleanliness>

Connection after applying the selected message transition.

§message: AuthSspiInternalTransitionMessage

Validated message which selected this transition.

§source_cleanliness: PhantomData<SourceCleanliness>

Retains the source cleanliness parameter even when replaced.

§

KerberosV5

The Event::KerberosV5 transition and its correctly typed next connection.

Fields

§connection: Conn<Transport, TokenResponse, SourceCleanliness>

Connection after applying the selected message transition.

§message: AuthKerberosV5InternalTransitionMessage

Validated message which selected this transition.

§source_cleanliness: PhantomData<SourceCleanliness>

Retains the source cleanliness parameter even when replaced.

§

Ok

The Event::Ok transition and its correctly typed next connection.

Fields

§connection: Conn<Transport, StartupReady, SourceCleanliness>

Connection after applying the selected message transition.

§message: AuthOkInternalTransitionMessage

Validated message which selected this transition.

§source_cleanliness: PhantomData<SourceCleanliness>

Retains the source cleanliness parameter even when replaced.

§

Error

The Event::Error transition and its correctly typed next connection.

Fields

§connection: Conn<Transport, Terminated, SourceCleanliness>

Connection after applying the selected message transition.

§message: AuthErrorInternalTransitionMessage

Validated message which selected this transition.

§source_cleanliness: PhantomData<SourceCleanliness>

Retains the source cleanliness parameter even when replaced.

Auto Trait Implementations§

§

impl<Transport, SourceCleanliness> !Freeze for AuthInternalProjection<Transport, SourceCleanliness>

§

impl<Transport, SourceCleanliness> RefUnwindSafe for AuthInternalProjection<Transport, SourceCleanliness>
where Transport: RefUnwindSafe, SourceCleanliness: RefUnwindSafe,

§

impl<Transport, SourceCleanliness> Send for AuthInternalProjection<Transport, SourceCleanliness>
where Transport: Send, SourceCleanliness: Send,

§

impl<Transport, SourceCleanliness> Sync for AuthInternalProjection<Transport, SourceCleanliness>
where Transport: Sync, SourceCleanliness: Sync,

§

impl<Transport, SourceCleanliness> Unpin for AuthInternalProjection<Transport, SourceCleanliness>
where Transport: Unpin, SourceCleanliness: Unpin,

§

impl<Transport, SourceCleanliness> UnsafeUnpin for AuthInternalProjection<Transport, SourceCleanliness>
where Transport: UnsafeUnpin,

§

impl<Transport, SourceCleanliness> UnwindSafe for AuthInternalProjection<Transport, SourceCleanliness>
where Transport: UnwindSafe, SourceCleanliness: UnwindSafe,

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<Handler> MessageMiddlewareExt for Handler

Source§

fn then<Next>(self, next: Next) -> Then<Self, Next>

Runs this value followed by next whenever both implement middleware for the intercepted message and state types.
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
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.