stratus

Module ext

Source
Expand description

Standard library extensions.

Enums§

SleepReason
Indicates why a sleep is happening.

Traits§

DisplayExt
Allows to implement to_string for types that does not have it.
InfallibleExt
OptionExt
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.