struct ExpectTraffic {
config: Arc<ClientConfig>,
session_storage: Arc<dyn ClientSessionStore>,
server_name: ServerName<'static>,
suite: &'static Tls13CipherSuite,
key_schedule: KeyScheduleTraffic,
resumption: KeyScheduleResumption,
_cert_verified: ServerCertVerified,
_sig_verified: HandshakeSignatureValid,
_fin_verified: FinishedMessageVerified,
}Fields§
§config: Arc<ClientConfig>§session_storage: Arc<dyn ClientSessionStore>§server_name: ServerName<'static>§suite: &'static Tls13CipherSuite§key_schedule: KeyScheduleTraffic§resumption: KeyScheduleResumption§_cert_verified: ServerCertVerified§_sig_verified: HandshakeSignatureValid§_fin_verified: FinishedMessageVerifiedImplementations§
Source§impl ExpectTraffic
impl ExpectTraffic
fn handle_new_ticket_impl( &mut self, cx: &mut KernelContext<'_>, nst: &NewSessionTicketPayloadTls13, ) -> Result<(), Error>
fn handle_new_ticket_tls13( &mut self, cx: &mut Context<'_, ClientConnectionData>, nst: &NewSessionTicketPayloadTls13, ) -> Result<(), Error>
fn handle_key_update( &mut self, common: &mut CommonState, key_update_request: &KeyUpdateRequest, ) -> Result<(), Error>
Trait Implementations§
Source§impl KernelState for ExpectTraffic
impl KernelState for ExpectTraffic
Source§fn update_secrets(
&mut self,
dir: Direction,
) -> Result<ConnectionTrafficSecrets, Error>
fn update_secrets( &mut self, dir: Direction, ) -> Result<ConnectionTrafficSecrets, Error>
Update the traffic secret for the specified direction on the connection.
Source§fn handle_new_session_ticket(
&mut self,
cx: &mut KernelContext<'_>,
message: &NewSessionTicketPayloadTls13,
) -> Result<(), Error>
fn handle_new_session_ticket( &mut self, cx: &mut KernelContext<'_>, message: &NewSessionTicketPayloadTls13, ) -> Result<(), Error>
Handle a new session ticket. Read more
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_external_state( self: Box<Self>, ) -> Result<Box<dyn KernelState + 'static>, Error>
fn into_owned(self: Box<Self>) -> Box<dyn State<ClientConnectionData> + 'static>
fn handle_decrypt_error(&self)
Auto Trait Implementations§
impl Freeze for ExpectTraffic
impl !RefUnwindSafe for ExpectTraffic
impl Send for ExpectTraffic
impl Sync for ExpectTraffic
impl Unpin for ExpectTraffic
impl UnsafeUnpin for ExpectTraffic
impl !UnwindSafe for ExpectTraffic
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