Trait rustls::common_state::State

source ·
pub(crate) trait State<Data>: Send + Sync {
    // Required method
    fn handle(
        self: Box<Self>,
        cx: &mut Context<'_, Data>,
        message: Message,
    ) -> Result<Box<dyn State<Data>>, Error>;

    // Provided methods
    fn export_keying_material(
        &self,
        _output: &mut [u8],
        _label: &[u8],
        _context: Option<&[u8]>,
    ) -> Result<(), Error> { ... }
    fn handle_decrypt_error(&self) { ... }
}

Required Methods§

source

fn handle( self: Box<Self>, cx: &mut Context<'_, Data>, message: Message, ) -> Result<Box<dyn State<Data>>, Error>

Provided Methods§

source

fn export_keying_material( &self, _output: &mut [u8], _label: &[u8], _context: Option<&[u8]>, ) -> Result<(), Error>

source

fn handle_decrypt_error(&self)

Implementors§

source§

impl State<ClientConnectionData> for ExpectServerHello

source§

impl State<ClientConnectionData> for ExpectServerHelloOrHelloRetryRequest

source§

impl State<ClientConnectionData> for rustls::client::tls12::ExpectCcs

source§

impl State<ClientConnectionData> for rustls::client::tls12::ExpectCertificate

source§

impl State<ClientConnectionData> for rustls::client::tls12::ExpectCertificateRequest

source§

impl State<ClientConnectionData> for ExpectCertificateStatus

source§

impl State<ClientConnectionData> for ExpectCertificateStatusOrServerKx

source§

impl State<ClientConnectionData> for rustls::client::tls12::ExpectFinished

source§

impl State<ClientConnectionData> for ExpectNewTicket

source§

impl State<ClientConnectionData> for ExpectServerDone

source§

impl State<ClientConnectionData> for ExpectServerDoneOrCertReq

source§

impl State<ClientConnectionData> for ExpectServerKx

source§

impl State<ClientConnectionData> for rustls::client::tls12::ExpectTraffic

source§

impl State<ClientConnectionData> for rustls::client::tls13::ExpectCertificate

source§

impl State<ClientConnectionData> for ExpectCertificateOrCertReq

source§

impl State<ClientConnectionData> for rustls::client::tls13::ExpectCertificateRequest

source§

impl State<ClientConnectionData> for rustls::client::tls13::ExpectCertificateVerify

source§

impl State<ClientConnectionData> for ExpectEncryptedExtensions

source§

impl State<ClientConnectionData> for rustls::client::tls13::ExpectFinished

source§

impl State<ClientConnectionData> for rustls::client::tls13::ExpectTraffic

source§

impl State<ServerConnectionData> for ExpectClientHello

source§

impl State<ServerConnectionData> for Accepting

source§

impl State<ServerConnectionData> for rustls::server::tls12::ExpectCcs

source§

impl State<ServerConnectionData> for rustls::server::tls12::ExpectCertificate

source§

impl State<ServerConnectionData> for rustls::server::tls12::ExpectCertificateVerify

source§

impl State<ServerConnectionData> for ExpectClientKx

source§

impl State<ServerConnectionData> for rustls::server::tls12::ExpectFinished

source§

impl State<ServerConnectionData> for rustls::server::tls12::ExpectTraffic

source§

impl State<ServerConnectionData> for ExpectAndSkipRejectedEarlyData

source§

impl State<ServerConnectionData> for rustls::server::tls13::ExpectCertificate

source§

impl State<ServerConnectionData> for rustls::server::tls13::ExpectCertificateVerify

source§

impl State<ServerConnectionData> for ExpectEarlyData

source§

impl State<ServerConnectionData> for rustls::server::tls13::ExpectFinished

source§

impl State<ServerConnectionData> for rustls::server::tls13::ExpectTraffic