#[repr(align(128))]pub struct TaskMetrics {
pub total_polls: RelaxedCell<u64>,
pub total_stolen_polls: RelaxedCell<u64>,
pub total_poll_time_ns: RelaxedCell<u64>,
pub max_poll_time_ns: RelaxedCell<u64>,
pub done: RelaxedCell<bool>,
}Fields§
§total_polls: RelaxedCell<u64>§total_stolen_polls: RelaxedCell<u64>§total_poll_time_ns: RelaxedCell<u64>§max_poll_time_ns: RelaxedCell<u64>§done: RelaxedCell<bool>Trait Implementations§
Source§impl Default for TaskMetrics
impl Default for TaskMetrics
Source§fn default() -> TaskMetrics
fn default() -> TaskMetrics
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !Freeze for TaskMetrics
impl RefUnwindSafe for TaskMetrics
impl Send for TaskMetrics
impl Sync for TaskMetrics
impl Unpin for TaskMetrics
impl UnsafeUnpin for TaskMetrics
impl UnwindSafe for TaskMetrics
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more