pub struct EventTime(pub i64, pub usize);Tuple Fields§
§0: i64§1: usizeImplementations§
Source§impl EventTime
impl EventTime
pub const MIN: EventTime
pub const MAX: EventTime
pub fn new(t: i64, s: usize) -> Self
Sourcepub fn set_event_id(self, i: usize) -> Self
pub fn set_event_id(self, i: usize) -> Self
Sets the event id of the EventTime. Note that this mutates the EventTime in place rather than create and return a new one.
pub fn as_tuple(&self) -> (i64, usize)
pub fn start(t: i64) -> Self
pub fn next(&self) -> Self
pub fn previous(&self) -> Self
pub fn end(t: i64) -> Self
Trait Implementations§
Source§impl<'de> Deserialize<'de> for EventTime
impl<'de> Deserialize<'de> for EventTime
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
Source§impl Ord for EventTime
impl Ord for EventTime
Source§impl PartialOrd for EventTime
impl PartialOrd for EventTime
Source§impl TryIntoInputTime for EventTime
impl TryIntoInputTime for EventTime
fn try_into_input_time(self) -> Result<InputTime, ParseTimeError>
impl Copy for EventTime
impl Eq for EventTime
impl StructuralPartialEq for EventTime
Auto Trait Implementations§
impl Freeze for EventTime
impl RefUnwindSafe for EventTime
impl Send for EventTime
impl Sync for EventTime
impl Unpin for EventTime
impl UnsafeUnpin for EventTime
impl UnwindSafe for EventTime
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more