Struct rustls::server::server_conn::ServerConnectionData
source · pub struct ServerConnectionData {
pub(super) sni: Option<DnsName>,
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>
§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 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( self: Box<Self>, _cx: &mut Context<'_, ServerConnectionData>, _m: Message, ) -> Result<Box<dyn State<ServerConnectionData>>, Error>
fn export_keying_material( &self, _output: &mut [u8], _label: &[u8], _context: Option<&[u8]>, ) -> Result<(), Error>
fn handle_decrypt_error(&self)
source§impl State<ServerConnectionData> for ExpectAndSkipRejectedEarlyData
impl State<ServerConnectionData> for ExpectAndSkipRejectedEarlyData
fn handle( self: Box<Self>, cx: &mut Context<'_, ServerConnectionData>, m: Message, ) -> Result<Box<dyn State<ServerConnectionData>>, Error>
fn export_keying_material( &self, _output: &mut [u8], _label: &[u8], _context: Option<&[u8]>, ) -> Result<(), Error>
fn handle_decrypt_error(&self)
source§impl State<ServerConnectionData> for ExpectCcs
impl State<ServerConnectionData> for ExpectCcs
fn handle( self: Box<Self>, cx: &mut Context<'_, ServerConnectionData>, m: Message, ) -> Result<Box<dyn State<ServerConnectionData>>, Error>
fn export_keying_material( &self, _output: &mut [u8], _label: &[u8], _context: Option<&[u8]>, ) -> Result<(), Error>
fn handle_decrypt_error(&self)
source§impl State<ServerConnectionData> for ExpectCertificate
impl State<ServerConnectionData> for ExpectCertificate
fn handle( self: Box<Self>, cx: &mut Context<'_, ServerConnectionData>, m: Message, ) -> Result<Box<dyn State<ServerConnectionData>>, Error>
fn export_keying_material( &self, _output: &mut [u8], _label: &[u8], _context: Option<&[u8]>, ) -> Result<(), Error>
fn handle_decrypt_error(&self)
source§impl State<ServerConnectionData> for ExpectCertificate
impl State<ServerConnectionData> for ExpectCertificate
fn handle( self: Box<Self>, cx: &mut Context<'_, ServerConnectionData>, m: Message, ) -> Result<Box<dyn State<ServerConnectionData>>, Error>
fn export_keying_material( &self, _output: &mut [u8], _label: &[u8], _context: Option<&[u8]>, ) -> Result<(), Error>
fn handle_decrypt_error(&self)
source§impl State<ServerConnectionData> for ExpectCertificateVerify
impl State<ServerConnectionData> for ExpectCertificateVerify
fn handle( self: Box<Self>, cx: &mut Context<'_, ServerConnectionData>, m: Message, ) -> Result<Box<dyn State<ServerConnectionData>>, Error>
fn export_keying_material( &self, _output: &mut [u8], _label: &[u8], _context: Option<&[u8]>, ) -> Result<(), Error>
fn handle_decrypt_error(&self)
source§impl State<ServerConnectionData> for ExpectCertificateVerify
impl State<ServerConnectionData> for ExpectCertificateVerify
fn handle( self: Box<Self>, cx: &mut Context<'_, ServerConnectionData>, m: Message, ) -> Result<Box<dyn State<ServerConnectionData>>, Error>
fn export_keying_material( &self, _output: &mut [u8], _label: &[u8], _context: Option<&[u8]>, ) -> Result<(), Error>
fn handle_decrypt_error(&self)
source§impl State<ServerConnectionData> for ExpectClientHello
impl State<ServerConnectionData> for ExpectClientHello
fn handle( self: Box<Self>, cx: &mut Context<'_, ServerConnectionData>, m: Message, ) -> Result<Box<dyn State<ServerConnectionData>>, Error>
fn export_keying_material( &self, _output: &mut [u8], _label: &[u8], _context: Option<&[u8]>, ) -> Result<(), Error>
fn handle_decrypt_error(&self)
source§impl State<ServerConnectionData> for ExpectClientKx
impl State<ServerConnectionData> for ExpectClientKx
fn handle( self: Box<Self>, cx: &mut Context<'_, ServerConnectionData>, m: Message, ) -> Result<Box<dyn State<ServerConnectionData>>, Error>
fn export_keying_material( &self, _output: &mut [u8], _label: &[u8], _context: Option<&[u8]>, ) -> Result<(), Error>
fn handle_decrypt_error(&self)
source§impl State<ServerConnectionData> for ExpectEarlyData
impl State<ServerConnectionData> for ExpectEarlyData
fn handle( self: Box<Self>, cx: &mut Context<'_, ServerConnectionData>, m: Message, ) -> Result<Box<dyn State<ServerConnectionData>>, Error>
fn export_keying_material( &self, _output: &mut [u8], _label: &[u8], _context: Option<&[u8]>, ) -> Result<(), Error>
fn handle_decrypt_error(&self)
source§impl State<ServerConnectionData> for ExpectFinished
impl State<ServerConnectionData> for ExpectFinished
fn handle( self: Box<Self>, cx: &mut Context<'_, ServerConnectionData>, m: Message, ) -> Result<Box<dyn State<ServerConnectionData>>, Error>
fn export_keying_material( &self, _output: &mut [u8], _label: &[u8], _context: Option<&[u8]>, ) -> Result<(), Error>
fn handle_decrypt_error(&self)
source§impl State<ServerConnectionData> for ExpectFinished
impl State<ServerConnectionData> for ExpectFinished
fn handle( self: Box<Self>, cx: &mut Context<'_, ServerConnectionData>, m: Message, ) -> Result<Box<dyn State<ServerConnectionData>>, Error>
fn export_keying_material( &self, _output: &mut [u8], _label: &[u8], _context: Option<&[u8]>, ) -> Result<(), Error>
fn handle_decrypt_error(&self)
source§impl State<ServerConnectionData> for ExpectTraffic
impl State<ServerConnectionData> for ExpectTraffic
fn handle( self: Box<Self>, cx: &mut Context<'_, ServerConnectionData>, m: Message, ) -> Result<Box<dyn State<ServerConnectionData>>, Error>
fn export_keying_material( &self, output: &mut [u8], label: &[u8], context: Option<&[u8]>, ) -> Result<(), Error>
fn handle_decrypt_error(&self)
source§impl State<ServerConnectionData> for ExpectTraffic
impl State<ServerConnectionData> for ExpectTraffic
fn handle( self: Box<Self>, cx: &mut Context<'_, ServerConnectionData>, m: Message, ) -> Result<Box<dyn State<ServerConnectionData>>, Error>
fn export_keying_material( &self, output: &mut [u8], label: &[u8], context: Option<&[u8]>, ) -> Result<(), Error>
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