Write missing docs and Debug implementations for native

This commit is contained in:
Héctor Ramón Jiménez 2021-09-13 11:20:54 +07:00
parent 7cb6e7438f
commit 2c630809d4
No known key found for this signature in database
GPG key ID: 140CC052C94F138E
4 changed files with 51 additions and 2 deletions

View file

@ -1,7 +1,9 @@
//! Run asynchronous actions.
mod action;
pub use action::Action;
use std::fmt;
use std::future::Future;
/// A set of asynchronous actions to be performed by some runtime.
@ -60,3 +62,11 @@ impl<T> Command<T> {
command.actions()
}
}
impl<T> fmt::Debug for Command<T> {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
let Command(command) = self;
command.fmt(f)
}
}