pub struct CDdnsGlobals {
pub tcp_timeout: Option<Duration>,
}
Fields§
§tcp_timeout: Option<Duration>
Implementations§
Source§impl CDdnsGlobals
impl CDdnsGlobals
Sourcepub fn init_once(globals: CDdnsGlobals)
pub fn init_once(globals: CDdnsGlobals)
Many threads may call init_once
concurrently with different initializing functions,
but it is guaranteed that only one function will be executed.
pub fn get_tcp_conn_timeout() -> Option<Duration>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CDdnsGlobals
impl RefUnwindSafe for CDdnsGlobals
impl Send for CDdnsGlobals
impl Sync for CDdnsGlobals
impl Unpin for CDdnsGlobals
impl UnwindSafe for CDdnsGlobals
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