pub struct ClientConnectionData {
pub(super) early_data: EarlyData,
pub(super) resumption_ciphersuite: Option<SupportedCipherSuite>,
pub(super) ech_status: EchStatus,
}
Expand description
State associated with a client connection.
Fields§
§early_data: EarlyData
§resumption_ciphersuite: Option<SupportedCipherSuite>
§ech_status: EchStatus
Implementations§
Trait Implementations§
Source§impl Debug for ClientConnectionData
impl Debug for ClientConnectionData
Source§impl State<ClientConnectionData> for ExpectCcs
impl State<ClientConnectionData> for ExpectCcs
fn handle<'m>(
self: Box<Self>,
cx: &mut Context<'_, ClientConnectionData>,
m: Message<'m>,
) -> Result<Box<dyn State<ClientConnectionData> + 'm>, Error>where
Self: 'm,
fn into_owned(self: Box<Self>) -> Box<dyn State<ClientConnectionData> + 'static>
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)
Source§impl State<ClientConnectionData> for ExpectCertificate
impl State<ClientConnectionData> for ExpectCertificate
fn handle<'m>(
self: Box<Self>,
_cx: &mut Context<'_, ClientConnectionData>,
m: Message<'m>,
) -> Result<Box<dyn State<ClientConnectionData> + 'm>, Error>where
Self: 'm,
fn into_owned(self: Box<Self>) -> Box<dyn State<ClientConnectionData> + 'static>
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)
Source§impl State<ClientConnectionData> for ExpectCertificate
impl State<ClientConnectionData> for ExpectCertificate
fn handle<'m>(
self: Box<Self>,
cx: &mut Context<'_, ClientConnectionData>,
m: Message<'m>,
) -> Result<Box<dyn State<ClientConnectionData> + 'm>, Error>where
Self: 'm,
fn into_owned(self: Box<Self>) -> Box<dyn State<ClientConnectionData> + 'static>
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)
Source§impl State<ClientConnectionData> for ExpectCertificateOrCertReq
impl State<ClientConnectionData> for ExpectCertificateOrCertReq
fn handle<'m>(
self: Box<Self>,
cx: &mut Context<'_, ClientConnectionData>,
m: Message<'m>,
) -> Result<Box<dyn State<ClientConnectionData> + 'm>, Error>where
Self: 'm,
fn into_owned(self: Box<Self>) -> Box<dyn State<ClientConnectionData> + 'static>
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)
Source§impl State<ClientConnectionData> for ExpectCertificateOrCompressedCertificate
impl State<ClientConnectionData> for ExpectCertificateOrCompressedCertificate
fn handle<'m>(
self: Box<Self>,
cx: &mut Context<'_, ClientConnectionData>,
m: Message<'m>,
) -> Result<Box<dyn State<ClientConnectionData> + 'm>, Error>where
Self: 'm,
fn into_owned(self: Box<Self>) -> Box<dyn State<ClientConnectionData> + 'static>
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)
Source§impl State<ClientConnectionData> for ExpectCertificateOrCompressedCertificateOrCertReq
impl State<ClientConnectionData> for ExpectCertificateOrCompressedCertificateOrCertReq
fn handle<'m>(
self: Box<Self>,
cx: &mut Context<'_, ClientConnectionData>,
m: Message<'m>,
) -> Result<Box<dyn State<ClientConnectionData> + 'm>, Error>where
Self: 'm,
fn into_owned(self: Box<Self>) -> Box<dyn State<ClientConnectionData> + 'static>
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)
Source§impl State<ClientConnectionData> for ExpectCertificateRequest
impl State<ClientConnectionData> for ExpectCertificateRequest
fn handle<'m>(
self: Box<Self>,
cx: &mut Context<'_, ClientConnectionData>,
m: Message<'m>,
) -> Result<Box<dyn State<ClientConnectionData> + 'm>, Error>where
Self: 'm,
fn into_owned(self: Box<Self>) -> Box<dyn State<ClientConnectionData> + 'static>
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)
Source§impl State<ClientConnectionData> for ExpectCertificateRequest<'_>
impl State<ClientConnectionData> for ExpectCertificateRequest<'_>
fn handle<'m>(
self: Box<Self>,
_cx: &mut Context<'_, ClientConnectionData>,
m: Message<'m>,
) -> Result<Box<dyn State<ClientConnectionData> + 'm>, Error>where
Self: 'm,
fn into_owned(self: Box<Self>) -> Box<dyn State<ClientConnectionData> + 'static>
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)
Source§impl State<ClientConnectionData> for ExpectCertificateStatus<'_>
impl State<ClientConnectionData> for ExpectCertificateStatus<'_>
fn handle<'m>(
self: Box<Self>,
_cx: &mut Context<'_, ClientConnectionData>,
m: Message<'m>,
) -> Result<Box<dyn State<ClientConnectionData> + 'm>, Error>where
Self: 'm,
fn into_owned(self: Box<Self>) -> Box<dyn State<ClientConnectionData> + 'static>
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)
Source§impl State<ClientConnectionData> for ExpectCertificateStatusOrServerKx<'_>
impl State<ClientConnectionData> for ExpectCertificateStatusOrServerKx<'_>
fn handle<'m>(
self: Box<Self>,
cx: &mut Context<'_, ClientConnectionData>,
m: Message<'m>,
) -> Result<Box<dyn State<ClientConnectionData> + 'm>, Error>where
Self: 'm,
fn into_owned(self: Box<Self>) -> Box<dyn State<ClientConnectionData> + 'static>
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)
Source§impl State<ClientConnectionData> for ExpectCertificateVerify<'_>
impl State<ClientConnectionData> for ExpectCertificateVerify<'_>
fn handle<'m>(
self: Box<Self>,
cx: &mut Context<'_, ClientConnectionData>,
m: Message<'m>,
) -> Result<Box<dyn State<ClientConnectionData> + 'm>, Error>where
Self: 'm,
fn into_owned(self: Box<Self>) -> Box<dyn State<ClientConnectionData> + 'static>
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)
Source§impl State<ClientConnectionData> for ExpectCompressedCertificate
impl State<ClientConnectionData> for ExpectCompressedCertificate
fn handle<'m>(
self: Box<Self>,
cx: &mut Context<'_, ClientConnectionData>,
m: Message<'m>,
) -> Result<Box<dyn State<ClientConnectionData> + 'm>, Error>where
Self: 'm,
fn into_owned(self: Box<Self>) -> Box<dyn State<ClientConnectionData> + 'static>
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)
Source§impl State<ClientConnectionData> for ExpectEncryptedExtensions
impl State<ClientConnectionData> for ExpectEncryptedExtensions
fn handle<'m>(
self: Box<Self>,
cx: &mut Context<'_, ClientConnectionData>,
m: Message<'m>,
) -> Result<Box<dyn State<ClientConnectionData> + 'm>, Error>where
Self: 'm,
fn into_owned(self: Box<Self>) -> Box<dyn State<ClientConnectionData> + 'static>
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)
Source§impl State<ClientConnectionData> for ExpectFinished
impl State<ClientConnectionData> for ExpectFinished
fn handle<'m>(
self: Box<Self>,
cx: &mut Context<'_, ClientConnectionData>,
m: Message<'m>,
) -> Result<Box<dyn State<ClientConnectionData> + 'm>, Error>where
Self: 'm,
fn handle_decrypt_error(&self)
fn into_owned(self: Box<Self>) -> Box<dyn State<ClientConnectionData> + 'static>
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>
Source§impl State<ClientConnectionData> for ExpectFinished
impl State<ClientConnectionData> for ExpectFinished
fn handle<'m>(
self: Box<Self>,
cx: &mut Context<'_, ClientConnectionData>,
m: Message<'m>,
) -> Result<Box<dyn State<ClientConnectionData> + 'm>, Error>where
Self: 'm,
fn into_owned(self: Box<Self>) -> Box<dyn State<ClientConnectionData> + 'static>
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)
Source§impl State<ClientConnectionData> for ExpectNewTicket
impl State<ClientConnectionData> for ExpectNewTicket
fn handle<'m>(
self: Box<Self>,
_cx: &mut Context<'_, ClientConnectionData>,
m: Message<'m>,
) -> Result<Box<dyn State<ClientConnectionData> + 'm>, Error>where
Self: 'm,
fn into_owned(self: Box<Self>) -> Box<dyn State<ClientConnectionData> + 'static>
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)
Source§impl State<ClientConnectionData> for ExpectQuicTraffic
impl State<ClientConnectionData> for ExpectQuicTraffic
fn handle<'m>(
self: Box<Self>,
cx: &mut Context<'_, ClientConnectionData>,
m: Message<'m>,
) -> Result<Box<dyn State<ClientConnectionData> + 'm>, Error>where
Self: 'm,
fn export_keying_material( &self, output: &mut [u8], label: &[u8], context: Option<&[u8]>, ) -> Result<(), Error>
fn into_owned(self: Box<Self>) -> Box<dyn State<ClientConnectionData> + 'static>
fn extract_secrets(&self) -> Result<PartiallyExtractedSecrets, Error>
fn send_key_update_request( &mut self, _common: &mut CommonState, ) -> Result<(), Error>
fn handle_decrypt_error(&self)
Source§impl State<ClientConnectionData> for ExpectServerDone<'_>
impl State<ClientConnectionData> for ExpectServerDone<'_>
fn handle<'m>(
self: Box<Self>,
cx: &mut Context<'_, ClientConnectionData>,
m: Message<'m>,
) -> Result<Box<dyn State<ClientConnectionData> + 'm>, Error>where
Self: 'm,
fn into_owned(self: Box<Self>) -> Box<dyn State<ClientConnectionData> + 'static>
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)
Source§impl State<ClientConnectionData> for ExpectServerDoneOrCertReq<'_>
impl State<ClientConnectionData> for ExpectServerDoneOrCertReq<'_>
fn handle<'m>(
self: Box<Self>,
cx: &mut Context<'_, ClientConnectionData>,
m: Message<'m>,
) -> Result<Box<dyn State<ClientConnectionData> + 'm>, Error>where
Self: 'm,
fn into_owned(self: Box<Self>) -> Box<dyn State<ClientConnectionData> + 'static>
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)
Source§impl State<ClientConnectionData> for ExpectServerHello
impl State<ClientConnectionData> for ExpectServerHello
fn handle<'m>(
self: Box<Self>,
cx: &mut Context<'_, ClientConnectionData>,
m: Message<'m>,
) -> Result<Box<dyn State<ClientConnectionData> + 'm>, Error>where
Self: 'm,
fn into_owned(self: Box<Self>) -> Box<dyn State<ClientConnectionData> + 'static>
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)
Source§impl State<ClientConnectionData> for ExpectServerHelloOrHelloRetryRequest
impl State<ClientConnectionData> for ExpectServerHelloOrHelloRetryRequest
fn handle<'m>(
self: Box<Self>,
cx: &mut Context<'_, ClientConnectionData>,
m: Message<'m>,
) -> Result<Box<dyn State<ClientConnectionData> + 'm>, Error>where
Self: 'm,
fn into_owned(self: Box<Self>) -> Box<dyn State<ClientConnectionData> + 'static>
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)
Source§impl State<ClientConnectionData> for ExpectServerKx<'_>
impl State<ClientConnectionData> for ExpectServerKx<'_>
fn handle<'m>(
self: Box<Self>,
cx: &mut Context<'_, ClientConnectionData>,
m: Message<'m>,
) -> Result<Box<dyn State<ClientConnectionData> + 'm>, Error>where
Self: 'm,
fn into_owned(self: Box<Self>) -> Box<dyn State<ClientConnectionData> + 'static>
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)
Source§impl State<ClientConnectionData> for ExpectTraffic
impl State<ClientConnectionData> for ExpectTraffic
fn handle<'m>(
self: Box<Self>,
cx: &mut Context<'_, ClientConnectionData>,
m: Message<'m>,
) -> Result<Box<dyn State<ClientConnectionData> + 'm>, Error>where
Self: 'm,
fn export_keying_material( &self, output: &mut [u8], label: &[u8], context: Option<&[u8]>, ) -> Result<(), Error>
fn extract_secrets(&self) -> Result<PartiallyExtractedSecrets, Error>
fn into_owned(self: Box<Self>) -> Box<dyn State<ClientConnectionData> + 'static>
fn send_key_update_request( &mut self, _common: &mut CommonState, ) -> Result<(), Error>
fn handle_decrypt_error(&self)
Source§impl State<ClientConnectionData> for ExpectTraffic
impl State<ClientConnectionData> for ExpectTraffic
fn handle<'m>(
self: Box<Self>,
cx: &mut Context<'_, ClientConnectionData>,
m: Message<'m>,
) -> Result<Box<dyn State<ClientConnectionData> + 'm>, Error>where
Self: 'm,
fn send_key_update_request( &mut self, common: &mut CommonState, ) -> Result<(), Error>
fn export_keying_material( &self, output: &mut [u8], label: &[u8], context: Option<&[u8]>, ) -> Result<(), Error>
fn extract_secrets(&self) -> Result<PartiallyExtractedSecrets, Error>
fn into_owned(self: Box<Self>) -> Box<dyn State<ClientConnectionData> + 'static>
fn handle_decrypt_error(&self)
impl SideData for ClientConnectionData
Auto Trait Implementations§
impl Freeze for ClientConnectionData
impl !RefUnwindSafe for ClientConnectionData
impl Send for ClientConnectionData
impl Sync for ClientConnectionData
impl Unpin for ClientConnectionData
impl !UnwindSafe for ClientConnectionData
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more