pub struct ServerConnectionData {
pub(super) sni: Option<DnsName<'static>>,
pub(super) received_resumption_data: Option<Vec<u8>>,
pub(super) resumption_data: Vec<u8>,
pub(super) early_data: EarlyDataState,
}
Expand description
State associated with a server connection.
Fields§
§sni: Option<DnsName<'static>>
§received_resumption_data: Option<Vec<u8>>
§resumption_data: Vec<u8>
§early_data: EarlyDataState
Implementations§
Source§impl ServerConnectionData
impl ServerConnectionData
pub(super) fn get_sni_str(&self) -> Option<&str>
Trait Implementations§
Source§impl Debug for ServerConnectionData
impl Debug for ServerConnectionData
Source§impl Default for ServerConnectionData
impl Default for ServerConnectionData
Source§fn default() -> ServerConnectionData
fn default() -> ServerConnectionData
Returns the “default value” for a type. Read more
Source§impl State<ServerConnectionData> for Accepting
impl State<ServerConnectionData> for Accepting
fn handle<'m>(
self: Box<Self>,
_cx: &mut Context<'_, ServerConnectionData>,
_m: Message<'m>,
) -> Result<Box<dyn State<ServerConnectionData> + 'm>, Error>where
Self: 'm,
fn into_owned(self: Box<Self>) -> Box<dyn State<ServerConnectionData> + '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<ServerConnectionData> for ExpectAndSkipRejectedEarlyData
impl State<ServerConnectionData> for ExpectAndSkipRejectedEarlyData
fn handle<'m>(
self: Box<Self>,
cx: &mut Context<'_, ServerConnectionData>,
m: Message<'m>,
) -> Result<Box<dyn State<ServerConnectionData> + 'm>, Error>where
Self: 'm,
fn into_owned(self: Box<Self>) -> Box<dyn State<ServerConnectionData> + '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<ServerConnectionData> for ExpectCcs
impl State<ServerConnectionData> for ExpectCcs
fn handle<'m>(
self: Box<Self>,
cx: &mut Context<'_, ServerConnectionData>,
m: Message<'m>,
) -> Result<Box<dyn State<ServerConnectionData> + 'm>, Error>where
Self: 'm,
fn into_owned(self: Box<Self>) -> Box<dyn State<ServerConnectionData> + '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<ServerConnectionData> for ExpectCertificate
impl State<ServerConnectionData> for ExpectCertificate
fn handle<'m>(
self: Box<Self>,
cx: &mut Context<'_, ServerConnectionData>,
m: Message<'m>,
) -> Result<Box<dyn State<ServerConnectionData> + 'm>, Error>where
Self: 'm,
fn into_owned(self: Box<Self>) -> Box<dyn State<ServerConnectionData> + '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<ServerConnectionData> for ExpectCertificate
impl State<ServerConnectionData> for ExpectCertificate
fn handle<'m>(
self: Box<Self>,
cx: &mut Context<'_, ServerConnectionData>,
m: Message<'m>,
) -> Result<Box<dyn State<ServerConnectionData> + 'm>, Error>where
Self: 'm,
fn into_owned(self: Box<Self>) -> Box<dyn State<ServerConnectionData> + '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<ServerConnectionData> for ExpectCertificateOrCompressedCertificate
impl State<ServerConnectionData> for ExpectCertificateOrCompressedCertificate
fn handle<'m>(
self: Box<Self>,
cx: &mut Context<'_, ServerConnectionData>,
m: Message<'m>,
) -> Result<Box<dyn State<ServerConnectionData> + 'm>, Error>where
Self: 'm,
fn into_owned(self: Box<Self>) -> Box<dyn State<ServerConnectionData> + '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<ServerConnectionData> for ExpectCertificateVerify
impl State<ServerConnectionData> for ExpectCertificateVerify
fn handle<'m>(
self: Box<Self>,
cx: &mut Context<'_, ServerConnectionData>,
m: Message<'m>,
) -> Result<Box<dyn State<ServerConnectionData> + 'm>, Error>where
Self: 'm,
fn into_owned(self: Box<Self>) -> Box<dyn State<ServerConnectionData> + '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<ServerConnectionData> for ExpectCertificateVerify<'_>
impl State<ServerConnectionData> for ExpectCertificateVerify<'_>
fn handle<'m>(
self: Box<Self>,
cx: &mut Context<'_, ServerConnectionData>,
m: Message<'m>,
) -> Result<Box<dyn State<ServerConnectionData> + 'm>, Error>where
Self: 'm,
fn into_owned(self: Box<Self>) -> Box<dyn State<ServerConnectionData> + '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<ServerConnectionData> for ExpectClientHello
impl State<ServerConnectionData> for ExpectClientHello
fn handle<'m>(
self: Box<Self>,
cx: &mut Context<'_, ServerConnectionData>,
m: Message<'m>,
) -> Result<Box<dyn State<ServerConnectionData> + 'm>, Error>where
Self: 'm,
fn into_owned(self: Box<Self>) -> Box<dyn State<ServerConnectionData> + '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<ServerConnectionData> for ExpectClientKx<'_>
impl State<ServerConnectionData> for ExpectClientKx<'_>
fn handle<'m>(
self: Box<Self>,
cx: &mut Context<'_, ServerConnectionData>,
m: Message<'m>,
) -> Result<Box<dyn State<ServerConnectionData> + 'm>, Error>where
Self: 'm,
fn into_owned(self: Box<Self>) -> Box<dyn State<ServerConnectionData> + '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<ServerConnectionData> for ExpectCompressedCertificate
impl State<ServerConnectionData> for ExpectCompressedCertificate
fn handle<'m>(
self: Box<Self>,
cx: &mut Context<'_, ServerConnectionData>,
m: Message<'m>,
) -> Result<Box<dyn State<ServerConnectionData> + 'm>, Error>where
Self: 'm,
fn into_owned(self: Box<Self>) -> Box<dyn State<ServerConnectionData> + '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<ServerConnectionData> for ExpectEarlyData
impl State<ServerConnectionData> for ExpectEarlyData
fn handle<'m>(
self: Box<Self>,
cx: &mut Context<'_, ServerConnectionData>,
m: Message<'m>,
) -> Result<Box<dyn State<ServerConnectionData> + 'm>, Error>where
Self: 'm,
fn into_owned(self: Box<Self>) -> Box<dyn State<ServerConnectionData> + '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<ServerConnectionData> for ExpectFinished
impl State<ServerConnectionData> for ExpectFinished
fn handle<'m>(
self: Box<Self>,
cx: &mut Context<'_, ServerConnectionData>,
m: Message<'m>,
) -> Result<Box<dyn State<ServerConnectionData> + 'm>, Error>where
Self: 'm,
fn into_owned(self: Box<Self>) -> Box<dyn State<ServerConnectionData> + '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<ServerConnectionData> for ExpectFinished
impl State<ServerConnectionData> for ExpectFinished
fn handle<'m>(
self: Box<Self>,
cx: &mut Context<'_, ServerConnectionData>,
m: Message<'m>,
) -> Result<Box<dyn State<ServerConnectionData> + 'm>, Error>where
Self: 'm,
fn into_owned(self: Box<Self>) -> Box<dyn State<ServerConnectionData> + '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<ServerConnectionData> for ExpectQuicTraffic
impl State<ServerConnectionData> for ExpectQuicTraffic
fn handle<'m>(
self: Box<Self>,
_cx: &mut Context<'_, ServerConnectionData>,
m: Message<'m>,
) -> Result<Box<dyn State<ServerConnectionData> + '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<ServerConnectionData> + '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<ServerConnectionData> for ExpectTraffic
impl State<ServerConnectionData> for ExpectTraffic
fn handle<'m>(
self: Box<Self>,
cx: &mut Context<'_, ServerConnectionData>,
m: Message<'m>,
) -> Result<Box<dyn State<ServerConnectionData> + '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<ServerConnectionData> + 'static>
fn send_key_update_request( &mut self, _common: &mut CommonState, ) -> Result<(), Error>
fn handle_decrypt_error(&self)
Source§impl State<ServerConnectionData> for ExpectTraffic
impl State<ServerConnectionData> for ExpectTraffic
fn handle<'m>(
self: Box<Self>,
cx: &mut Context<'_, ServerConnectionData>,
m: Message<'m>,
) -> Result<Box<dyn State<ServerConnectionData> + '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 send_key_update_request( &mut self, common: &mut CommonState, ) -> Result<(), Error>
fn into_owned(self: Box<Self>) -> Box<dyn State<ServerConnectionData> + 'static>
fn handle_decrypt_error(&self)
impl SideData for ServerConnectionData
Auto Trait Implementations§
impl Freeze for ServerConnectionData
impl RefUnwindSafe for ServerConnectionData
impl Send for ServerConnectionData
impl Sync for ServerConnectionData
impl Unpin for ServerConnectionData
impl UnwindSafe for ServerConnectionData
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