Struct diesel::r2d2::Extensions [−][src]
pub struct Extensions(_);
Expand description
A “type map” used to associate data with pooled connections.
Extensions
is a data structure mapping types to a value of that type. This
can be used to, for example, cache prepared statements along side their
connection.
Implementations
Returns a new, empty Extensions
.
Inserts a new value into the map.
Returns the previously stored value of that type, if present.
Returns a shared reference to the stored value of the specified type.
Returns a mutable reference to the stored value of the specified type.
Removes the value of the specified type from the map, returning it.
Trait Implementations
Returns the “default value” for a type. Read more