Struct bollard::container::StatsOptions
source · pub struct StatsOptions {
pub stream: bool,
pub one_shot: bool,
}
Expand description
Fields§
§stream: bool
Stream the output. If false, the stats will be output once and then it will disconnect.
one_shot: bool
Only get a single stat instead of waiting for 2 cycles. Must be used with stream = false
.
Trait Implementations§
source§impl Clone for StatsOptions
impl Clone for StatsOptions
source§fn clone(&self) -> StatsOptions
fn clone(&self) -> StatsOptions
Returns a copy 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 StatsOptions
impl Debug for StatsOptions
source§impl Default for StatsOptions
impl Default for StatsOptions
source§fn default() -> StatsOptions
fn default() -> StatsOptions
Returns the “default value” for a type. Read more
source§impl PartialEq for StatsOptions
impl PartialEq for StatsOptions
source§impl Serialize for StatsOptions
impl Serialize for StatsOptions
impl Copy for StatsOptions
impl StructuralPartialEq for StatsOptions
Auto Trait Implementations§
impl Freeze for StatsOptions
impl RefUnwindSafe for StatsOptions
impl Send for StatsOptions
impl Sync for StatsOptions
impl Unpin for StatsOptions
impl UnwindSafe for StatsOptions
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)