pub struct ClientOptions {
pub timeout: Duration,
pub n_tries: u16,
}Expand description
Options for configuring a Chrony client
Fields§
§timeout: DurationHow long to wait for a reply before assuming the request was dropped (default: 1s)
n_tries: u16Number of times to try a request before giving up (default: 3)
Trait Implementations§
Source§impl Clone for ClientOptions
impl Clone for ClientOptions
Source§fn clone(&self) -> ClientOptions
fn clone(&self) -> ClientOptions
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 ClientOptions
impl Debug for ClientOptions
Source§impl Default for ClientOptions
impl Default for ClientOptions
Source§impl Hash for ClientOptions
impl Hash for ClientOptions
Source§impl Ord for ClientOptions
impl Ord for ClientOptions
Source§fn cmp(&self, other: &ClientOptions) -> Ordering
fn cmp(&self, other: &ClientOptions) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ClientOptions
impl PartialEq for ClientOptions
Source§impl PartialOrd for ClientOptions
impl PartialOrd for ClientOptions
impl Copy for ClientOptions
impl Eq for ClientOptions
impl StructuralPartialEq for ClientOptions
Auto Trait Implementations§
impl Freeze for ClientOptions
impl RefUnwindSafe for ClientOptions
impl Send for ClientOptions
impl Sync for ClientOptions
impl Unpin for ClientOptions
impl UnwindSafe for ClientOptions
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