Expand description
Standard library extensions.
Enums§
- Sleep
Reason - Indicates why a sleep is happening.
Traits§
- Display
Ext - Allows to implement
to_string
for types that does not have it. - Infallible
Ext - Option
Ext - Extensions for
Option<T>
.
Functions§
- from_
json_ str - Deserializes any deserializable value from
&str
without having to check for errors. - not
not(something)
instead of!something
.- ordered_
map - parse_
duration - Parses a duration specified using human-time notation or fallback to milliseconds.
- spawn_
named - Spawns an async Tokio task with a name to be displayed in tokio-console.
- spawn_
signal_ handler - Spawns a handler that listens to system signals.
- spawn_
thread - Spawns a thread with the given name. Thread has access to Tokio current runtime.
- to_
json_ string - Serializes any serializable value to non-formatted
String
without having to check for errors. - to_
json_ value - Serializes any serializable value to
serde_json::Value
without having to check for errors. - traced_
sleep - Sleeps the current task and tracks why it is sleeping.
- type_
basename - Extracts only the basename of a Rust type instead of the full qualification.