Async Debug
The async-debug
crate makes it easy to debug structs and enums containing
values that require an async call to render.
For example:
use RwLock;
let my_struct = MyStruct ;
println!;
Prints something like:
MyStruct { my_value: RwLock { mr: 536870911, s: Semaphore { permits: 536870911 }, c: UnsafeCell { .. } } }
Along comes Async Debug
Just derive from async_debug::AsyncDebug
and add the appropriate attribute!
Add to cargo.toml:
[]
= "0.1.3"
use AsyncDebug;
use RwLock;
let my_struct = MyStruct ;
assert_eq!;