Skip to main content

GssEncUpgrade

Trait GssEncUpgrade 

Source
pub trait GssEncUpgrade<Stream> {
    type SecuredStream;
    type Error;

    // Required method
    fn upgrade(
        self,
        stream: Stream,
    ) -> impl Future<Output = Result<Self::SecuredStream, Self::Error>>;
}
Expand description

Upgrades a transport after the typed GSSENC negotiation has accepted it.

Implementations can wrap MIT Kerberos, Heimdal, Windows SSPI, or a remote credential service without making pg-proto select or configure that stack.

Required Associated Types§

Source

type SecuredStream

Transport produced after GSS encryption negotiation and handshake.

Source

type Error

Platform-specific negotiation or transport error.

Required Methods§

Source

fn upgrade( self, stream: Stream, ) -> impl Future<Output = Result<Self::SecuredStream, Self::Error>>

Performs the platform-specific encrypted transport handshake.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§