modaccess;modmutation;usecrate::map::AnyMap;/// A type map of worker extensions.
////// `Extensions` can be used by worker job to store extra data.
#[derive(Clone, Default, Debug)]pubstructExtensions{// If extensions are never used, no need to carry around an empty HashMap.
// That's 3 words. Instead, this is only 1 word.
map:Option<Box<AnyMap>>,
}implExtensions{/// Create an empty `Extensions`.
#[inline]pubfnnew()-> Extensions{
Extensions { map:None}}}