pub struct PqcHandshakeState {
pub started: bool,
pub key_exchange: Option<NamedGroup>,
pub signature_scheme: Option<SignatureScheme>,
pub used_pqc: bool,
pub result_message: Option<String>,
}
Expand description
State tracker for PQC handshake progress
Fields§
§started: bool
Whether PQC negotiation has started
key_exchange: Option<NamedGroup>
Selected key exchange group
signature_scheme: Option<SignatureScheme>
Selected signature scheme
used_pqc: bool
Whether PQC was used
result_message: Option<String>
Negotiation result message
Implementations§
Source§impl PqcHandshakeState
impl PqcHandshakeState
Sourcepub fn update_from_result(&mut self, result: &NegotiationResult)
pub fn update_from_result(&mut self, result: &NegotiationResult)
Update state from negotiation result
Sourcepub fn selected_algorithms(&self) -> String
pub fn selected_algorithms(&self) -> String
Get selected algorithms as a string
Trait Implementations§
Source§impl Clone for PqcHandshakeState
impl Clone for PqcHandshakeState
Source§fn clone(&self) -> PqcHandshakeState
fn clone(&self) -> PqcHandshakeState
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for PqcHandshakeState
impl Debug for PqcHandshakeState
Source§impl Default for PqcHandshakeState
impl Default for PqcHandshakeState
Source§fn default() -> PqcHandshakeState
fn default() -> PqcHandshakeState
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for PqcHandshakeState
impl RefUnwindSafe for PqcHandshakeState
impl Send for PqcHandshakeState
impl Sync for PqcHandshakeState
impl Unpin for PqcHandshakeState
impl UnwindSafe for PqcHandshakeState
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