Struct libflow::slice::Time
[−]
[src]
pub struct Time { /* fields omitted */ }
One time slice.
It is produced by the ProtoTime
.
Methods
impl Time
[src]
fn new(start: SystemTime, end: SystemTime, flows: Vec<Flow>) -> Self
Constructs a new time slice.
It simply puts all the parts together.
Params
- start: The time when the slice starts.
- end: The time when the slice ends.
- flows: The flows that live inside.
Panics
If some of the flows sneak out of the start
-end
interval, if they don't have the
interval set or if they are invalid in some other way.
Trait Implementations
impl Debug for Time
[src]
impl Eq for Time
[src]
impl PartialEq for Time
[src]
fn eq(&self, __arg_0: &Time) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Time) -> bool
This method tests for !=
.
impl InTimeInterval for Time
[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
impl<'a> IntoIterator for &'a Time
[src]
type Item = &'a Flow
The type of the elements being iterated over.
type IntoIter = SliceIter<'a, Flow>
Which kind of iterator are we turning this into?
fn into_iter(self) -> Self::IntoIter
Creates an iterator from a value. Read more
impl Container for Time
[src]
fn pre_filter(&self, _query: &Query) -> PreFilterResult
Given the provided query, may the container contain relevant data?
fn timeline(&self) -> Timeline
Provides the timeline of data inside this container. Read more