Struct ntex_util::services::Extensions
source · [−]pub struct Extensions { /* private fields */ }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.
Trait Implementations
Returns the “default value” for a type. Read more