#[repr(C)]pub struct dtls_peer_t {
pub hh: UT_hash_handle,
pub session: session_t,
pub role: dtls_peer_type,
pub state: dtls_state_t,
pub optional_handshake_message: i16,
pub security_params: [*mut dtls_security_parameters_t; 2],
pub handshake_params: *mut dtls_handshake_parameters_t,
}Expand description
Holds security parameters, local state and the transport address for each peer.
Fields§
§hh: UT_hash_handle§session: session_t< peer address and local interface
role: dtls_peer_type< denotes if this host is DTLS_CLIENT or DTLS_SERVER
state: dtls_state_t< DTLS engine state
optional_handshake_message: i16< optional next handshake message, DTLS_HT_NO_OPTIONAL_MESSAGE, if no optional message is expected.
security_params: [*mut dtls_security_parameters_t; 2]§handshake_params: *mut dtls_handshake_parameters_tAuto Trait Implementations§
impl Freeze for dtls_peer_t
impl RefUnwindSafe for dtls_peer_t
impl !Send for dtls_peer_t
impl !Sync for dtls_peer_t
impl Unpin for dtls_peer_t
impl UnwindSafe for dtls_peer_t
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