pub struct TimeTravelStatus {
pub enabled: bool,
pub current_time: Option<DateTime<Utc>>,
pub scale_factor: f64,
pub real_time: DateTime<Utc>,
}
Expand description
Status information for time travel
Fields§
§enabled: bool
Whether time travel is enabled
current_time: Option<DateTime<Utc>>
Current virtual time (None if using real time)
scale_factor: f64
Time scale factor
real_time: DateTime<Utc>
Current real time
Trait Implementations§
Source§impl Clone for TimeTravelStatus
impl Clone for TimeTravelStatus
Source§fn clone(&self) -> TimeTravelStatus
fn clone(&self) -> TimeTravelStatus
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 moreSource§impl Debug for TimeTravelStatus
impl Debug for TimeTravelStatus
Source§impl<'de> Deserialize<'de> for TimeTravelStatus
impl<'de> Deserialize<'de> for TimeTravelStatus
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
Auto Trait Implementations§
impl Freeze for TimeTravelStatus
impl RefUnwindSafe for TimeTravelStatus
impl Send for TimeTravelStatus
impl Sync for TimeTravelStatus
impl Unpin for TimeTravelStatus
impl UnwindSafe for TimeTravelStatus
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