Struct mbedtls_sys::ssl_ticket_context
source · [−]#[repr(C)]pub struct ssl_ticket_context {
pub keys: [ssl_ticket_key; 2],
pub active: c_uchar,
pub ticket_lifetime: u32,
pub f_rng: Option<unsafe extern "C" fn(arg1: *mut c_void, arg2: *mut c_uchar, arg3: size_t) -> c_int>,
pub p_rng: *mut c_void,
pub mutex: threading_mutex_t,
}
Fields
keys: [ssl_ticket_key; 2]
active: c_uchar
ticket_lifetime: u32
f_rng: Option<unsafe extern "C" fn(arg1: *mut c_void, arg2: *mut c_uchar, arg3: size_t) -> c_int>
p_rng: *mut c_void
mutex: threading_mutex_t
Trait Implementations
sourceimpl Clone for ssl_ticket_context
impl Clone for ssl_ticket_context
sourcefn clone(&self) -> ssl_ticket_context
fn clone(&self) -> ssl_ticket_context
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Default for ssl_ticket_context
impl Default for ssl_ticket_context
impl Copy for ssl_ticket_context
Auto Trait Implementations
impl RefUnwindSafe for ssl_ticket_context
impl !Send for ssl_ticket_context
impl !Sync for ssl_ticket_context
impl Unpin for ssl_ticket_context
impl UnwindSafe for ssl_ticket_context
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more