pub struct ConfigurableLabelResolver { /* private fields */ }Expand description
Configurable label resolver implementation
Implementations§
Source§impl ConfigurableLabelResolver
impl ConfigurableLabelResolver
pub fn new(config: KeyMappingConfig) -> Self
Trait Implementations§
Source§impl LabelResolver for ConfigurableLabelResolver
impl LabelResolver for ConfigurableLabelResolver
Source§fn resolve_label_info(&self, label: &str) -> Result<Option<LabelKeyInfo>>
fn resolve_label_info(&self, label: &str) -> Result<Option<LabelKeyInfo>>
Resolve a label to key-info (public key + scope).
Source§fn available_labels(&self) -> Vec<String>
fn available_labels(&self) -> Vec<String>
Get available labels in current context
Source§fn can_resolve(&self, label: &str) -> bool
fn can_resolve(&self, label: &str) -> bool
Check if a label can be resolved
Source§fn clone_box(&self) -> Box<dyn LabelResolver>
fn clone_box(&self) -> Box<dyn LabelResolver>
Clone this trait object
Auto Trait Implementations§
impl Freeze for ConfigurableLabelResolver
impl RefUnwindSafe for ConfigurableLabelResolver
impl Send for ConfigurableLabelResolver
impl Sync for ConfigurableLabelResolver
impl Unpin for ConfigurableLabelResolver
impl UnsafeUnpin for ConfigurableLabelResolver
impl UnwindSafe for ConfigurableLabelResolver
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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