pub struct VmTimeSource { /* private fields */ }
Expand description
A time source, used to instantiate VmTimeAccess
.
Implementations§
Source§impl VmTimeSource
impl VmTimeSource
Sourcepub fn access(&self, name: impl Into<Arc<str>>) -> VmTimeAccess
pub fn access(&self, name: impl Into<Arc<str>>) -> VmTimeAccess
Gets a time accessor.
name
is used for diagnostics via inspect
.
Sourcepub fn builder(&self) -> &VmTimeSourceBuilder
pub fn builder(&self) -> &VmTimeSourceBuilder
Gets the builder for creating additional time sources backing tasks whose times are in sync with this one.
Trait Implementations§
Source§impl Clone for VmTimeSource
impl Clone for VmTimeSource
Source§fn clone(&self) -> VmTimeSource
fn clone(&self) -> VmTimeSource
Returns a copy 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 moreAuto Trait Implementations§
impl Freeze for VmTimeSource
impl !RefUnwindSafe for VmTimeSource
impl Send for VmTimeSource
impl Sync for VmTimeSource
impl Unpin for VmTimeSource
impl !UnwindSafe for VmTimeSource
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