pub struct MockTask { /* private fields */ }
Expand description

Mock task

A mock task is able to intercept and track notifications.

Implementations§

Create a new mock task

Run a closure from the context of the task.

Any notifications resulting from the execution of the closure are tracked.

Returns true if the inner future has received a readiness notification since the last call to enter.

Returns the number of references to the task notifier

The task itself holds a reference. The return value will never be zero.

Trait Implementations§

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.