#[repr(C)]pub struct tls_keep_alive_cfg {
    pub keep_alive_enable: bool,
    pub keep_alive_idle: i32,
    pub keep_alive_interval: i32,
    pub keep_alive_count: i32,
}Expand description
@brief Keep alive parameters structure
Fields§
§keep_alive_enable: bool< Enable keep-alive timeout
keep_alive_idle: i32< Keep-alive idle time (second)
keep_alive_interval: i32< Keep-alive interval time (second)
keep_alive_count: i32< Keep-alive packet retry send count
Trait Implementations§
Source§impl Clone for tls_keep_alive_cfg
 
impl Clone for tls_keep_alive_cfg
Source§fn clone(&self) -> tls_keep_alive_cfg
 
fn clone(&self) -> tls_keep_alive_cfg
Returns a copy of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from 
source. Read moreSource§impl Debug for tls_keep_alive_cfg
 
impl Debug for tls_keep_alive_cfg
Source§impl Default for tls_keep_alive_cfg
 
impl Default for tls_keep_alive_cfg
Source§fn default() -> tls_keep_alive_cfg
 
fn default() -> tls_keep_alive_cfg
Returns the “default value” for a type. Read more
impl Copy for tls_keep_alive_cfg
Auto Trait Implementations§
impl Freeze for tls_keep_alive_cfg
impl RefUnwindSafe for tls_keep_alive_cfg
impl Send for tls_keep_alive_cfg
impl Sync for tls_keep_alive_cfg
impl Unpin for tls_keep_alive_cfg
impl UnwindSafe for tls_keep_alive_cfg
Blanket Implementations§
§impl<T> Any for Twhere
    T: 'static + ?Sized,
 
impl<T> Any for Twhere
    T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
    T: ?Sized,
 
impl<T> Borrow<T> for Twhere
    T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
 
impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
 
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
    T: Clone,
 
impl<T> CloneToUninit for Twhere
    T: Clone,
§unsafe fn clone_to_uninit(&self, dst: *mut u8)
 
unsafe fn clone_to_uninit(&self, dst: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)