pub struct SamplingPolicy {
pub id: u32,
pub kind: SamplingKind,
pub interval: Duration,
pub period: Duration,
pub offset: i32,
pub src_ip: Option<IpAddr>,
pub dst_ip: Option<IpAddr>,
pub node: Option<String>,
pub column: Option<u32>,
}
Fields§
§id: u32
§kind: SamplingKind
§interval: Duration
§period: Duration
§offset: i32
§src_ip: Option<IpAddr>
§dst_ip: Option<IpAddr>
§node: Option<String>
§column: Option<u32>
Trait Implementations§
Source§impl Clone for SamplingPolicy
impl Clone for SamplingPolicy
Source§fn clone(&self) -> SamplingPolicy
fn clone(&self) -> SamplingPolicy
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 SamplingPolicy
impl Debug for SamplingPolicy
Source§impl<'de> Deserialize<'de> for SamplingPolicy
impl<'de> Deserialize<'de> for SamplingPolicy
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for SamplingPolicy
impl RefUnwindSafe for SamplingPolicy
impl Send for SamplingPolicy
impl Sync for SamplingPolicy
impl Unpin for SamplingPolicy
impl UnwindSafe for SamplingPolicy
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