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§
Sourcefn update_secrets(
&mut self,
dir: Direction,
) -> Result<ConnectionTrafficSecrets, Error>
fn update_secrets( &mut self, dir: Direction, ) -> Result<ConnectionTrafficSecrets, Error>
Update the traffic secret for the specified direction on the connection.
Sourcefn handle_new_session_ticket(
&mut self,
cx: &mut KernelContext<'_>,
message: &NewSessionTicketPayloadTls13,
) -> Result<(), Error>
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.