#[repr(C)]pub struct dtls_context_t {
pub cookie_secret: [c_uchar; 12],
pub cookie_secret_age: clock_time_t,
pub peers: *mut dtls_peer_t,
pub sendqueue: *mut netq_t,
pub app: *mut c_void,
pub h: *mut dtls_handler_t,
}Expand description
Holds global information of the DTLS engine.
Fields§
< the time the secret has been generated
peers: *mut dtls_peer_t< peer hash map
sendqueue: *mut netq_t< the packets to send
app: *mut c_void< application-specific data
h: *mut dtls_handler_t< callback handlers
Trait Implementations§
Source§impl Clone for dtls_context_t
impl Clone for dtls_context_t
Source§fn clone(&self) -> dtls_context_t
fn clone(&self) -> dtls_context_t
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 dtls_context_t
impl Debug for dtls_context_t
impl Copy for dtls_context_t
Auto Trait Implementations§
impl Freeze for dtls_context_t
impl RefUnwindSafe for dtls_context_t
impl !Send for dtls_context_t
impl !Sync for dtls_context_t
impl Unpin for dtls_context_t
impl UnwindSafe for dtls_context_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