Struct ListenerTimings
#[non_exhaustive]pub struct ListenerTimings {
pub id: String,
pub owner: Option<String>,
pub stats: TimingStats,
}Expand description
One listener’s time on a point (PointTimings::listeners).
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.id: StringIts id.
owner: Option<String>Its owner.
stats: TimingStatsIts runs.
Implementations§
§impl ListenerTimings
impl ListenerTimings
pub fn new(id: impl Into<String>) -> ListenerTimings
pub fn new(id: impl Into<String>) -> ListenerTimings
The listener id, no run.
Trait Implementations§
§impl Clone for ListenerTimings
impl Clone for ListenerTimings
§fn clone(&self) -> ListenerTimings
fn clone(&self) -> ListenerTimings
Returns a duplicate 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 more§impl Debug for ListenerTimings
impl Debug for ListenerTimings
§impl Default for ListenerTimings
impl Default for ListenerTimings
§fn default() -> ListenerTimings
fn default() -> ListenerTimings
Returns the “default value” for a type. Read more
§impl PartialEq for ListenerTimings
impl PartialEq for ListenerTimings
impl Eq for ListenerTimings
impl StructuralPartialEq for ListenerTimings
Auto Trait Implementations§
impl Freeze for ListenerTimings
impl RefUnwindSafe for ListenerTimings
impl Send for ListenerTimings
impl Sync for ListenerTimings
impl Unpin for ListenerTimings
impl UnsafeUnpin for ListenerTimings
impl UnwindSafe for ListenerTimings
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