pub struct Occurrence<T> {
pub value: T,
pub timestamp: f64,
}Expand description
An event occurrence with a value
Fields§
§value: TThe value of this occurrence
timestamp: f64Timestamp (relative to behavior creation)
Trait Implementations§
Source§impl<T: Clone> Clone for Occurrence<T>
impl<T: Clone> Clone for Occurrence<T>
Source§fn clone(&self) -> Occurrence<T>
fn clone(&self) -> Occurrence<T>
Returns a duplicate 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 moreAuto Trait Implementations§
impl<T> Freeze for Occurrence<T>where
T: Freeze,
impl<T> RefUnwindSafe for Occurrence<T>where
T: RefUnwindSafe,
impl<T> Send for Occurrence<T>where
T: Send,
impl<T> Sync for Occurrence<T>where
T: Sync,
impl<T> Unpin for Occurrence<T>where
T: Unpin,
impl<T> UnsafeUnpin for Occurrence<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for Occurrence<T>where
T: UnwindSafe,
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