Module util

Source
Expand description

Various small utilities accumulated over time for the WebPush server

Re-exports§

pub use self::timing::ms_since_epoch;
pub use self::timing::ms_utc_midnight;
pub use self::timing::sec_since_epoch;
pub use self::timing::us_since_epoch;

Modules§

timing
user_agent

Traits§

InsertOpt

Functions§

b64_decode
Try to decode the string, first as URL safe, then as STD.
b64_decode_std
b64_decode_url
Convenience wrapper for base64 decoding note The base64 devs are HIGHLY opinionated and the method to encode/decode changes frequently. This function encapsulates that as much as possible.
b64_encode_std
b64_encode_url
deserialize_opt_u32_to_duration
deserialize_u32_to_duration