pub struct StandardRuntimePlatform;Expand description
The runtime platform of the standard targets: derives the platform information from the operating system the application was built for.
Implementations§
Trait Implementations§
Source§impl Clone for StandardRuntimePlatform
impl Clone for StandardRuntimePlatform
impl Copy for StandardRuntimePlatform
Source§impl Debug for StandardRuntimePlatform
impl Debug for StandardRuntimePlatform
Source§impl Default for StandardRuntimePlatform
impl Default for StandardRuntimePlatform
Source§impl IRuntimePlatform for StandardRuntimePlatform
impl IRuntimePlatform for StandardRuntimePlatform
Source§fn get_utc_now(&self) -> DateTime
fn get_utc_now(&self) -> DateTime
The system clock. A target without one (wasm32-unknown-unknown)
reports the Unix epoch; its platform layer registers a runtime
platform of its own.
Source§fn get_runtime_info(&self) -> RuntimePlatformInfo
fn get_runtime_info(&self) -> RuntimePlatformInfo
Information about the platform the application runs on.
Auto Trait Implementations§
impl Freeze for StandardRuntimePlatform
impl RefUnwindSafe for StandardRuntimePlatform
impl Send for StandardRuntimePlatform
impl Sync for StandardRuntimePlatform
impl Unpin for StandardRuntimePlatform
impl UnsafeUnpin for StandardRuntimePlatform
impl UnwindSafe for StandardRuntimePlatform
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
Source§impl<T> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
The static constructor of a type: work done once per thread, after
the properties of the type are registered and before its first
instance exists (class handlers,
affects_render, metadata
overrides). Read more