pub struct TimestampQueryPool { /* private fields */ }Expand description
Timestamp query results associated with a completed fence.
Implementations§
Source§impl TimestampQueryPool
impl TimestampQueryPool
Sourcepub fn has_results(&self) -> bool
pub fn has_results(&self) -> bool
Returns true once the associated submission has completed.
A complete pool can still return None for a query when timestamps were unsupported,
omitted, or never submitted.
Sourcepub fn duration(&self, query: TimestampQuery) -> Option<Duration>
pub fn duration(&self, query: TimestampQuery) -> Option<Duration>
Returns the duration from submission start to query, or None if results are not available.
None can mean the submission is still pending, timestamps were unsupported for the queue,
or the query point was not part of submitted graph work. Use Self::has_results to
distinguish pending work from a completed submission with no timestamp for this query.
When the checked feature is enabled, this panics if query belongs to a different graph.
Trait Implementations§
Source§impl Clone for TimestampQueryPool
impl Clone for TimestampQueryPool
Source§fn clone(&self) -> TimestampQueryPool
fn clone(&self) -> TimestampQueryPool
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 TimestampQueryPool
impl RefUnwindSafe for TimestampQueryPool
impl Send for TimestampQueryPool
impl Sync for TimestampQueryPool
impl Unpin for TimestampQueryPool
impl UnsafeUnpin for TimestampQueryPool
impl UnwindSafe for TimestampQueryPool
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