#[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_handlesession: 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_t

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.