Skip to main content

ConnectionStateSend

Trait ConnectionStateSend 

Source
pub trait ConnectionStateSend {
    // Required methods
    fn send_ssl(&mut self, message: SSLResponseBuilder) -> Result<(), Error>;
    fn send<'a, M>(
        &mut self,
        message: impl IntoBackendBuilder<'a, M>,
    ) -> Result<(), Error>;
    fn upgrade(&mut self) -> Result<(), Error>;
    fn auth(&mut self, user: String, database: String) -> Result<(), Error>;
    fn params(&mut self) -> Result<(), Error>;
}

Required Methods§

Source

fn send_ssl(&mut self, message: SSLResponseBuilder) -> Result<(), Error>

Send the response to the SSL initiation.

Source

fn send<'a, M>( &mut self, message: impl IntoBackendBuilder<'a, M>, ) -> Result<(), Error>

Send an ordinary message.

Source

fn upgrade(&mut self) -> Result<(), Error>

Perform the SSL upgrade.

Source

fn auth(&mut self, user: String, database: String) -> Result<(), Error>

Notify the environment that a user and database were selected.

Source

fn params(&mut self) -> Result<(), Error>

Notify the environment that parameters are requested.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§