Struct libflow::slice::Flow
[−]
[src]
pub struct Flow { /* fields omitted */ }One flow slice.
This struct holds one flow slice ‒ an interval of a flow. Note that it does not have to ocupy the full time slice and that the ends may be bit fuzzy.
Methods
impl Flow[src]
fn new(tags: FlowTags, stats: Stats) -> Self
Constructs new Flow
It simply builds it from the relevant parts.
Params
- tags: The tags of the flow. Note that due to interior mutability, the data there might change in the future.
- stats: Statistics (eg. how much was transferred, etc) during the slice. This is only in the slice, not from the start of the flow.
Trait Implementations
impl Clone for Flow[src]
fn clone(&self) -> Flow
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0
Performs copy-assignment from source. Read more
impl Debug for Flow[src]
impl Eq for Flow[src]
impl PartialEq for Flow[src]
fn eq(&self, __arg_0: &Flow) -> bool
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &Flow) -> bool
This method tests for !=.
impl<'a> ValueSrc for &'a Flow[src]
fn value(&self, ident: &Ident) -> Option<Value>
Extracts the given column. Read more
fn stats(&self) -> &Stats
Provides the statistics. Read more
impl<'a> InTimeInterval for &'a Flow[src]
fn interval(&self) -> (SystemTime, SystemTime)
The interval of the data inside. Read more
fn granularity(&self) -> Duration
Provides the granularity of the container. Read more
fn in_time_interval(
&self,
start: Option<SystemTime>,
end: Option<SystemTime>
) -> bool
&self,
start: Option<SystemTime>,
end: Option<SystemTime>
) -> bool
Returns if the queried interval is for the data contained. Read more