Struct domain_map::DomainMap
source · pub struct DomainMap<V: Clone> { /* private fields */ }
Expand description
A DomainMap is conceptually similar to a HashMap. The differences are that the keys are always domain name strings like “example.com” and that a lookup that doesn’t have an exact match in the map is allowed to resolve through a wildcard entry, such as “.example.com”, if one has been inserted. A lookup for “example.com” will not match the wildcard “.example.com” because it has fewer segments than the wildcard entry.
Implementations§
Trait Implementations§
source§impl<'de, V> Deserialize<'de> for DomainMap<V>where
V: Deserialize<'de> + Clone,
impl<'de, V> Deserialize<'de> for DomainMap<V>where
V: Deserialize<'de> + Clone,
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl UserData for DomainMap<CacheValue>
impl UserData for DomainMap<CacheValue>
source§fn add_methods<'lua, M: UserDataMethods<'lua, Self>>(methods: &mut M)
fn add_methods<'lua, M: UserDataMethods<'lua, Self>>(methods: &mut M)
Adds custom methods and operators specific to this userdata.
§fn add_fields<'lua, F>(fields: &mut F)where
F: UserDataFields<'lua, Self>,
fn add_fields<'lua, F>(fields: &mut F)where
F: UserDataFields<'lua, Self>,
Adds custom fields specific to this userdata.
Auto Trait Implementations§
impl<V> Freeze for DomainMap<V>
impl<V> RefUnwindSafe for DomainMap<V>where
V: RefUnwindSafe,
impl<V> Send for DomainMap<V>where
V: Send,
impl<V> Sync for DomainMap<V>where
V: Sync,
impl<V> Unpin for DomainMap<V>where
V: Unpin,
impl<V> UnwindSafe for DomainMap<V>where
V: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<'lua, T> IntoLua<'lua> for Twhere
T: UserData + MaybeSend + 'static,
impl<'lua, T> IntoLua<'lua> for Twhere
T: UserData + MaybeSend + 'static,
§impl<'lua, T> IntoLuaMulti<'lua> for Twhere
T: IntoLua<'lua>,
impl<'lua, T> IntoLuaMulti<'lua> for Twhere
T: IntoLua<'lua>,
§fn into_lua_multi(self, lua: &'lua Lua) -> Result<MultiValue<'lua>, Error>
fn into_lua_multi(self, lua: &'lua Lua) -> Result<MultiValue<'lua>, Error>
Performs the conversion.