pub struct StaticGroupSource { /* private fields */ }Expand description
In-memory group source backed by a HashMap.
Supports basic resolve_map, and optionally resolve_all, resolve_list, and resolve_reverse if provided.
Implementations§
Trait Implementations§
Source§impl GroupSource for StaticGroupSource
impl GroupSource for StaticGroupSource
Source§fn resolve_map(&self, group: &str) -> Result<String>
fn resolve_map(&self, group: &str) -> Result<String>
Resolve a group name to a node pattern string. Read more
Source§fn resolve_reverse(&self, node: &str) -> Result<Vec<String>>
fn resolve_reverse(&self, node: &str) -> Result<Vec<String>>
Find all groups that contain a given node.
Source§fn has_reverse(&self) -> bool
fn has_reverse(&self) -> bool
Returns true if this source supports reverse lookups.
Source§fn cache_time(&self) -> Option<f64>
fn cache_time(&self) -> Option<f64>
Returns the cache time in seconds, if any.
Auto Trait Implementations§
impl Freeze for StaticGroupSource
impl RefUnwindSafe for StaticGroupSource
impl Send for StaticGroupSource
impl Sync for StaticGroupSource
impl Unpin for StaticGroupSource
impl UnsafeUnpin for StaticGroupSource
impl UnwindSafe for StaticGroupSource
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