Expand description
The common helper library
Structs§
- CString
Array - A structure to hold owned C-type strings for ffi usages.
- Resource
Guard - The resource guard ensures no resource is leaking. On
drop(), thedestroyeris used to free theresource.
Enums§
- Spin
Error - The error returned from the spin function
Functions§
- format_
size - get_
hashed_ cache_ file_ path - Generate a temp file path for cache, the filename is hashed
- load_
cache - random_
sleep - Sleep random nanoseconds, the nanosecond value could be bigger than a second.
- save_
cache - spin_
work_ with_ exp_ backoff