Skip to main content

KernelState

Trait KernelState 

Source
pub(crate) trait KernelState: Send + Sync {
    // Required methods
    fn update_secrets(
        &mut self,
        dir: Direction,
    ) -> Result<ConnectionTrafficSecrets, Error>;
    fn handle_new_session_ticket(
        &mut self,
        cx: &mut KernelContext<'_>,
        message: &NewSessionTicketPayloadTls13,
    ) -> Result<(), Error>;
}

Required Methods§

Source

fn update_secrets( &mut self, dir: Direction, ) -> Result<ConnectionTrafficSecrets, Error>

Update the traffic secret for the specified direction on the connection.

Source

fn handle_new_session_ticket( &mut self, cx: &mut KernelContext<'_>, message: &NewSessionTicketPayloadTls13, ) -> Result<(), Error>

Handle a new session ticket.

This will only ever be called for client connections, as KernelConnection only exposes the relevant API for client connections.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§

Source§

impl KernelState for rustls::client::tls13::ExpectQuicTraffic

Source§

impl KernelState for rustls::server::tls13::ExpectQuicTraffic

Source§

impl KernelState for rustls::client::tls12::ExpectTraffic

Source§

impl KernelState for rustls::client::tls13::ExpectTraffic

Source§

impl KernelState for rustls::server::tls12::ExpectTraffic

Source§

impl KernelState for rustls::server::tls13::ExpectTraffic