rustls::common_stateTrait State
Source pub(crate) trait State<Data>: Send + Sync {
// Required methods
fn handle<'m>(
self: Box<Self>,
cx: &mut Context<'_, Data>,
message: Message<'m>,
) -> Result<Box<dyn State<Data> + 'm>, Error>
where Self: 'm;
fn into_owned(self: Box<Self>) -> Box<dyn State<Data> + 'static>;
// Provided methods
fn export_keying_material(
&self,
_output: &mut [u8],
_label: &[u8],
_context: Option<&[u8]>,
) -> Result<(), Error> { ... }
fn extract_secrets(&self) -> Result<PartiallyExtractedSecrets, Error> { ... }
fn send_key_update_request(
&mut self,
_common: &mut CommonState,
) -> Result<(), Error> { ... }
fn handle_decrypt_error(&self) { ... }
}