pub enum ClientApplicationDataEvent {
None,
AppData,
Ticket {
psk: Vec<u8, PSK_MAX_SIZE>,
lifetime_s: u32,
age_add: u32,
},
KeyUpdate,
}Expand description
Events produced when decrypting application data.
Returned by Client::decrypt.
Variants§
None
No complete TLS record is available in the receive buffer.
AppData
Decrypted application data is available via
Client::received_app_data.
Ticket
A NewSessionTicket was received from the server. The pre-shared key
(psk), lifetime (lifetime_s), and obfuscated ticket age addition
(age_add) are provided for session resumption.
KeyUpdate
A KeyUpdate was processed. The caller should flush
outgoing_data before
reading more data.
Auto Trait Implementations§
impl Freeze for ClientApplicationDataEvent
impl RefUnwindSafe for ClientApplicationDataEvent
impl Send for ClientApplicationDataEvent
impl Sync for ClientApplicationDataEvent
impl Unpin for ClientApplicationDataEvent
impl UnsafeUnpin for ClientApplicationDataEvent
impl UnwindSafe for ClientApplicationDataEvent
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