IRuntimePlatform
trait · ferroui-base · v0.5.0
trait IRuntimePlatform: 'static
Describes the platform the application runs on.
Members
get_runtime_info
fn get_runtime_info(self: &Self) -> RuntimePlatformInfo
Information about the platform the application runs on.
get_utc_now
fn get_utc_now(self: &Self) -> std::time::SystemTime
The current instant, read by
system_time_now and
DateTime::utc_now. The
default is for a platform without a wall clock: it reports the Unix
epoch, 1970-01-01T00:00:00 UTC.
Since 0.5 the instant is a SystemTime,
where it was a DateTime of kind UTC: an implementation returns
SystemTime::try_from(date_time) of the value it returned (or the
system time it read), and a caller that needs the calendar value
converts with DateTime::try_from.
Trait implementations
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.