pub struct Clock {
pub info: ClockInfo,
/* private fields */
}
Fields§
§info: ClockInfo
Implementations§
source§impl Clock
impl Clock
pub const ZERO: Clock = _
pub fn new(info: ClockInfo, id: ClockID, kind: ClockKind) -> Clock
pub fn read(&self) -> TimeSpan
pub fn info(&self) -> ClockInfo
sourcepub fn get(kind: ClockKind) -> Clock
pub fn get(kind: ClockKind) -> Clock
Returns a new instance of a Clock from the specified ClockKind
pub fn set(&mut self, info: ClockInfo, id: ClockID, kind: ClockKind)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Clock
impl ObjSafe for Clock
impl RefUnwindSafe for Clock
impl Send for Clock
impl Sync for Clock
impl Unpin for Clock
impl UnwindSafe for Clock
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)