Skip to main content

Module utils

Module utils 

Source

Re-exports§

pub use byte_size::ByteSize;
pub use config_enum::ConfigEnum;
pub use configuration_utils::is_high_performance;
pub use rw_task_lock::RwTaskLock;
pub use rw_task_lock::RwTaskLockError;
pub use rw_task_lock::RwTaskLockReadGuard;

Modules§

adjustable_semaphore
async_iterator
async_read
byte_size
config_enum
configuration_utils
errors
limited_joinset
pipe
rw_task_lock
singleflight
A singleflight implementation for tokio.

Structs§

ClosureGuard
Guard that executes a closure when dropped.
CwdGuard
Guard that temporarily changes the current working directory and restores the previous one on drop.
EnvVarGuard
Guard that temporarily sets an environment variable and restores the previous value on drop.
TemplatedPathBuf
A path buffer that can contain template variables like {PID} and {TIMESTAMP}.
UniqueId

Functions§

output_bytes
Convert a usize into an output string, choosing the nearest byte prefix.