#[non_exhaustive]pub struct Observation<'a> {
pub record: &'a EffectRecord,
pub transition: Transition,
pub from: EffectStatus,
pub to: EffectStatus,
pub in_previous_status: Duration,
pub since_created: Duration,
}Expand description
One stored transition.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.record: &'a EffectRecordThe effect after the transition.
transition: TransitionWhat happened.
from: EffectStatusThe status before.
to: EffectStatusThe status after.
in_previous_status: DurationHow long the effect was in from, e.g. an attempt’s duration when
from is Executing.
since_created: DurationHow long since the effect was first recorded.
Trait Implementations§
Source§impl<'a> Clone for Observation<'a>
impl<'a> Clone for Observation<'a>
impl<'a> Copy for Observation<'a>
Auto Trait Implementations§
impl<'a> Freeze for Observation<'a>
impl<'a> RefUnwindSafe for Observation<'a>
impl<'a> Send for Observation<'a>
impl<'a> Sync for Observation<'a>
impl<'a> Unpin for Observation<'a>
impl<'a> UnsafeUnpin for Observation<'a>
impl<'a> UnwindSafe for Observation<'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