pub struct StateEvent<'a> {
pub previous: &'a Timestamped<DualsenseState>,
pub current: &'a Timestamped<DualsenseState>,
pub evicted: Timestamped<DualsenseState>,
}Fields§
§previous: &'a Timestamped<DualsenseState>§current: &'a Timestamped<DualsenseState>§evicted: Timestamped<DualsenseState>Implementations§
Source§impl<'a> StateEvent<'a>
impl<'a> StateEvent<'a>
pub fn elapsed_time(&self) -> Duration
Trait Implementations§
Source§impl<'a> Clone for StateEvent<'a>
impl<'a> Clone for StateEvent<'a>
Source§fn clone(&self) -> StateEvent<'a>
fn clone(&self) -> StateEvent<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<'a> Copy for StateEvent<'a>
Auto Trait Implementations§
impl<'a> Freeze for StateEvent<'a>
impl<'a> RefUnwindSafe for StateEvent<'a>
impl<'a> Send for StateEvent<'a>
impl<'a> Sync for StateEvent<'a>
impl<'a> Unpin for StateEvent<'a>
impl<'a> UnsafeUnpin for StateEvent<'a>
impl<'a> UnwindSafe for StateEvent<'a>
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