Expand description
A bunch of utlities I found myself needing over and over again.
Modules§
- errors
- Stuff for error-handling.
- futures
- Utilities for use with futures and tokio.
- warp
- Utilities for use with warp.
Macros§
- Resp
- The type of a responder. Since
impl Traitcan’t be used intypeitems, this magics one up. - coerce
- An explicit trivial cast.
- err
- Creates an instance of
Eas aBox<dyn Error>. - packer_
statics - A
Filterthat serves static files from the given directory. - route_
any - Inserts
.or(...)between the given filters.
Functions§
- catch
- Runs the given closure immediately. Mostly for use as replacement for
catchblocks, which seem to be taking a while to stabilize… - init_
logger - Sets up a logger with the given verbosity and quietness. Panics if a logger is already set up.
- unwrap_
arc - Unwraps an
Arc, cloning the inner value if necessary.