pub struct KeepAliveOption { /* private fields */ }Implementations§
Source§impl KeepAliveOption
impl KeepAliveOption
pub fn new() -> Self
pub fn interval(self, dur: Duration) -> Self
pub fn comment_prefix(self, s: String) -> Self
pub fn get_interval(&self) -> Duration
pub fn get_comment_prefix(&self) -> String
Trait Implementations§
Source§impl Clone for KeepAliveOption
impl Clone for KeepAliveOption
Source§fn clone(&self) -> KeepAliveOption
fn clone(&self) -> KeepAliveOption
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 KeepAliveOption
impl Debug for KeepAliveOption
Source§impl Default for KeepAliveOption
impl Default for KeepAliveOption
Source§fn default() -> KeepAliveOption
fn default() -> KeepAliveOption
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for KeepAliveOption
impl RefUnwindSafe for KeepAliveOption
impl Send for KeepAliveOption
impl Sync for KeepAliveOption
impl Unpin for KeepAliveOption
impl UnwindSafe for KeepAliveOption
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