#[non_exhaustive]pub struct PingOptions {
pub service_types: Option<Vec<ServiceType>>,
pub kv_timeout: Option<Duration>,
pub query_timeout: Option<Duration>,
pub search_timeout: Option<Duration>,
pub on_behalf_of: Option<OnBehalfOfInfo>,
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.service_types: Option<Vec<ServiceType>>§kv_timeout: Option<Duration>§query_timeout: Option<Duration>§search_timeout: Option<Duration>§on_behalf_of: Option<OnBehalfOfInfo>Implementations§
Source§impl PingOptions
impl PingOptions
pub fn new() -> Self
pub fn service_types(self, service_types: Vec<ServiceType>) -> Self
pub fn kv_timeout(self, timeout: Duration) -> Self
pub fn query_timeout(self, timeout: Duration) -> Self
pub fn search_timeout(self, timeout: Duration) -> Self
pub fn on_behalf_of(self, info: Option<OnBehalfOfInfo>) -> Self
Trait Implementations§
Source§impl Clone for PingOptions
impl Clone for PingOptions
Source§fn clone(&self) -> PingOptions
fn clone(&self) -> PingOptions
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 PingOptions
impl Debug for PingOptions
Source§impl Default for PingOptions
impl Default for PingOptions
Source§fn default() -> PingOptions
fn default() -> PingOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for PingOptions
impl RefUnwindSafe for PingOptions
impl Send for PingOptions
impl Sync for PingOptions
impl Unpin for PingOptions
impl UnsafeUnpin for PingOptions
impl UnwindSafe for PingOptions
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