pub struct Registry<K> { /* private fields */ }
Expand description
The registry of multiple await-trees.
Create a new registry with given config.
Register with given key. Returns a TreeRoot that can be used to instrument a future.
If the key already exists, a new TreeRoot is returned and the reference to the old
TreeRoot is dropped.
Iterate over the clones of all registered await-trees.
Get a clone of the await-tree with given key.
Returns None if the key does not exist or the tree root has been dropped.
Remove all the registered await-trees.
Formats the value using the given formatter.
Read more
Immutably borrows from an owned value.
Read more
Mutably borrows from an owned value.
Read more
Returns the argument unchanged.
Instruments this type with the provided
Span, returning an
Instrumented wrapper.
Read more
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.