pub enum TimeCaller {
Time,
TimeNs,
Monotonic,
MonotonicNs,
PerfCounter,
PerfCounterNs,
Gmtime,
Localtime,
Asctime,
Ctime,
Strftime,
}Expand description
Which time function is reading the clock in an OsFunctionCall::Time.
All share the time.time call name since all want the current instant as epoch
seconds; the caller, passed as the call’s single positional argument spelled as
the Python function ("time.perf_counter"), lets a host that cares answer them
differently (say a virtual clock advancing only for time.monotonic).
Variants§
Time
time.time().
TimeNs
time.time_ns().
Monotonic
time.monotonic().
MonotonicNs
time.monotonic_ns().
PerfCounter
time.perf_counter().
PerfCounterNs
time.perf_counter_ns().
Gmtime
time.gmtime() with no argument.
Localtime
time.localtime() with no argument.
Asctime
time.asctime() with no argument.
Ctime
time.ctime() with no argument.
Strftime
time.strftime(format) with no time argument.
Implementations§
Trait Implementations§
Source§impl Clone for TimeCaller
impl Clone for TimeCaller
impl Copy for TimeCaller
Source§impl Debug for TimeCaller
impl Debug for TimeCaller
Source§impl<'de> Deserialize<'de> for TimeCaller
impl<'de> Deserialize<'de> for TimeCaller
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 Display for TimeCaller
impl Display for TimeCaller
impl Eq for TimeCaller
Source§impl<'_derivative_strum> From<&'_derivative_strum TimeCaller> for &'static str
impl<'_derivative_strum> From<&'_derivative_strum TimeCaller> for &'static str
Source§fn from(x: &'_derivative_strum TimeCaller) -> &'static str
fn from(x: &'_derivative_strum TimeCaller) -> &'static str
Converts to this type from the input type.
Source§impl From<TimeCaller> for &'static str
impl From<TimeCaller> for &'static str
Source§fn from(x: TimeCaller) -> &'static str
fn from(x: TimeCaller) -> &'static str
Converts to this type from the input type.
Source§impl FromStr for TimeCaller
impl FromStr for TimeCaller
Source§impl IntoEnumIterator for TimeCaller
impl IntoEnumIterator for TimeCaller
Source§impl PartialEq for TimeCaller
impl PartialEq for TimeCaller
Source§impl PushValue for TimeCaller
impl PushValue for TimeCaller
Source§fn push_into(self, graph: &mut MontyGraph) -> NodeId
fn push_into(self, graph: &mut MontyGraph) -> NodeId
Appends a value with its children below it, returning its arena-relative id.
Source§impl Serialize for TimeCaller
impl Serialize for TimeCaller
impl StructuralPartialEq for TimeCaller
Auto Trait Implementations§
impl Freeze for TimeCaller
impl RefUnwindSafe for TimeCaller
impl Send for TimeCaller
impl Sync for TimeCaller
impl Unpin for TimeCaller
impl UnsafeUnpin for TimeCaller
impl UnwindSafe for TimeCaller
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