Struct actix_web::Extensions[][src]

pub struct Extensions { /* fields omitted */ }

A type map of request extensions.

Methods

impl Extensions
[src]

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.

Clear the Extensions of all inserted extensions.

Trait Implementations

impl Debug for Extensions
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl !Send for Extensions

impl !Sync for Extensions