pub(crate) enum PreEncryptAction {
Nothing,
RefreshOrClose,
Refuse,
}
Variants§
Nothing
No action is needed before calling encrypt_outgoing
RefreshOrClose
A key_update
request should be sent ASAP.
If that is not possible (for example, the connection is TLS1.2), a close_notify
alert should be sent instead.
Refuse
Do not call encrypt_outgoing
further, it will panic rather than
over-use the key.
Trait Implementations§
Source§impl Debug for PreEncryptAction
impl Debug for PreEncryptAction
Source§impl PartialEq for PreEncryptAction
impl PartialEq for PreEncryptAction
impl Eq for PreEncryptAction
impl StructuralPartialEq for PreEncryptAction
Auto Trait Implementations§
impl Freeze for PreEncryptAction
impl RefUnwindSafe for PreEncryptAction
impl Send for PreEncryptAction
impl Sync for PreEncryptAction
impl Unpin for PreEncryptAction
impl UnwindSafe for PreEncryptAction
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