Crate libremexre

Source
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 Trait can’t be used in type items, this magics one up.
coerce
An explicit trivial cast.
err
Creates an instance of E as a Box<dyn Error>.
packer_statics
A Filter that 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 catch blocks, 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.