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) { ... }
}