Struct tokio_mock_task::MockTask[][src]

pub struct MockTask { /* fields omitted */ }

Mock task

A mock task is able to intercept and track notifications.

Methods

impl MockTask
[src]

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.

Trait Implementations

impl Debug for MockTask
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for MockTask

impl Sync for MockTask