pub struct NetworkNameOptions { /* private fields */ }Expand description
Sampling options for an explicitly requested network-name observer.
This policy is independent of connection availability policies. Compiling network monitoring support does not enable name collection.
Implementations§
Source§impl NetworkNameOptions
impl NetworkNameOptions
Sourcepub fn with_interval(self, interval: Duration) -> Self
pub fn with_interval(self, interval: Duration) -> Self
Set the delay after one sample completes before this observer samples again. Valid values range from one second through one hour, inclusive.
Sourcepub fn with_timeout(self, timeout: Duration) -> Self
pub fn with_timeout(self, timeout: Duration) -> Self
Set the validity budget for a native sampling operation. Valid values range from 100 milliseconds through 30 seconds, inclusive. The budget begins when the serial worker starts this observer’s query; it does not impose a deadline on waiting behind other observers. Native calls may finish after this budget, but expired values are discarded.
Trait Implementations§
Source§impl Clone for NetworkNameOptions
impl Clone for NetworkNameOptions
impl Copy for NetworkNameOptions
Source§impl Debug for NetworkNameOptions
impl Debug for NetworkNameOptions
Auto Trait Implementations§
impl Freeze for NetworkNameOptions
impl RefUnwindSafe for NetworkNameOptions
impl Send for NetworkNameOptions
impl Sync for NetworkNameOptions
impl Unpin for NetworkNameOptions
impl UnsafeUnpin for NetworkNameOptions
impl UnwindSafe for NetworkNameOptions
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