Skip to main content

Module utils

Module utils 

Source

Re-exports§

pub use self::arrayvec::ArrayVecExt;
pub use self::bool::BoolExt;
pub use self::bytes::increment;
pub use self::bytes::u64_from_bytes;
pub use self::bytes::u64_from_u8;
pub use self::debug::slice_truncated as debug_slice_truncated;
pub use self::future::BoolExt as FutureBoolExt;
pub use self::future::OptionStream;
pub use self::future::TryExtExt as TryFutureExtExt;
pub use self::hash::sha256::delimited as calculate_hash;
pub use self::json::deserialize_from_str;
pub use self::json::to_canonical_object;
pub use self::mutex_map::Guard as MutexMapGuard;
pub use self::mutex_map::MutexMap;
pub use self::option::OptionExt;
pub use self::rand::shuffle;
pub use self::rand::string as random_string;
pub use self::stream::IterStream;
pub use self::stream::ReadyExt;
pub use self::stream::Tools as StreamTools;
pub use self::stream::TryReadyExt;
pub use self::string::str_from_bytes;
pub use self::string::string_from_bytes;
pub use self::sys::compute::available_parallelism;
pub use self::time::exponential_backoff::continue_exponential_backoff;
pub use self::time::exponential_backoff::continue_exponential_backoff_secs;
pub use self::time::now_millis as millis_since_unix_epoch;
pub use self::time::timepoint_ago;
pub use self::time::timepoint_from_now;
pub use self::time::timepoint_has_passed;

Modules§

arrayvec
bool
Trait BoolExt
bytes
content_disposition
debug
defer
future
hash
html
json
math
mutex_map
option
rand
result
set
stream
string
sys
time
two_phase_counter
Two-Phase Counter.
unhandled
Indicate a branch which will never be taken. Currently expands to unimplemented!() in every build; the unreachable_unchecked() arm below is parked behind #[cfg(disable)] until callsites are vetted.

Functions§

assert_dst
assert_ref_unwind_safe
assert_send
assert_sized
assert_sync
assert_unpin
assert_unwind_safe

Attribute Macros§

ctor
dtor
implement