Struct actix_http::Extensions [−][src]
pub struct Extensions { /* fields omitted */ }
Expand description
A type map of request extensions.
Implementations
Create an empty Extensions
.
Insert a type into this Extensions
.
If a extension of this type already existed, it will be returned.
Get a reference to a type previously inserted on this Extensions
.
Get a mutable reference to a type previously inserted on this Extensions
.
Remove a type from this Extensions
.
If a extension of this type existed, it will be returned.
Extends self with the items from another Extensions
.
Trait Implementations
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl !RefUnwindSafe for Extensions
impl !Send for Extensions
impl !Sync for Extensions
impl Unpin for Extensions
impl !UnwindSafe for Extensions
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more