mirror of https://github.com/fafhrd91/actix-web
This ensures that it's impossible to cause undefined behavior by accidentally violating Rust's aliasing rules (e.g. passing a closure to `set_date` which ends up invoking `reset` or `update` on the inner `DateServiceInner`). There might be a tiny amount of overhead from copying the `Option<(Date, Instant)>` rather than taking a reference, but it shouldn't be measureable. Since the wrapped type is `Copy`, a `Cell` can be used, avoiding the runtime overhead of a `RefCell`. |
||
---|---|---|
.. | ||
client | ||
cookie | ||
encoding | ||
h1 | ||
h2 | ||
header | ||
ws | ||
body.rs | ||
builder.rs | ||
cloneable.rs | ||
config.rs | ||
error.rs | ||
extensions.rs | ||
helpers.rs | ||
httpcodes.rs | ||
httpmessage.rs | ||
lib.rs | ||
message.rs | ||
payload.rs | ||
request.rs | ||
response.rs | ||
service.rs | ||
test.rs |