pub struct HandshakeResult {
pub role: SessionRole,
pub our_settings: ConnectionSettings,
pub peer_settings: ConnectionSettings,
pub peer_supports_retry: bool,
pub session_resume_key: Option<SessionResumeKey>,
pub peer_resume_key: Option<SessionResumeKey>,
pub our_schema: Vec<Schema>,
pub peer_schema: Vec<Schema>,
}Expand description
Result of a completed CBOR handshake.
Fields§
§role: SessionRole§our_settings: ConnectionSettings§peer_settings: ConnectionSettings§peer_supports_retry: bool§session_resume_key: Option<SessionResumeKey>The resume key for this session. For the acceptor, this is the key we generated and sent in HelloYourself. For the initiator, this is the key the acceptor sent us.
peer_resume_key: Option<SessionResumeKey>The resume key the peer sent in their Hello (initiator→acceptor only). Used by the acceptor to look up existing sessions for resumption.
our_schema: Vec<Schema>§peer_schema: Vec<Schema>Trait Implementations§
Source§impl Clone for HandshakeResult
impl Clone for HandshakeResult
Source§fn clone(&self) -> HandshakeResult
fn clone(&self) -> HandshakeResult
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 moreAuto Trait Implementations§
impl Freeze for HandshakeResult
impl RefUnwindSafe for HandshakeResult
impl Send for HandshakeResult
impl Sync for HandshakeResult
impl Unpin for HandshakeResult
impl UnsafeUnpin for HandshakeResult
impl UnwindSafe for HandshakeResult
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