Struct tor_keymgr::KeyPathPatternSet
source · #[non_exhaustive]pub struct KeyPathPatternSet {
pub arti: KeyPathPattern,
pub ctor: KeyPathPattern,
}Expand description
KeyPathPatterns that can be used to match ArtiPaths or CTorPaths.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.arti: KeyPathPatternA pattern for matching ArtiPaths.
ctor: KeyPathPatternA pattern for matching CTorPaths.
Implementations§
source§impl KeyPathPatternSet
impl KeyPathPatternSet
sourcepub fn new(arti: KeyPathPattern, ctor: KeyPathPattern) -> Self
pub fn new(arti: KeyPathPattern, ctor: KeyPathPattern) -> Self
Create a new KeyPathPatternSet.
Trait Implementations§
source§impl Clone for KeyPathPatternSet
impl Clone for KeyPathPatternSet
source§fn clone(&self) -> KeyPathPatternSet
fn clone(&self) -> KeyPathPatternSet
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for KeyPathPatternSet
impl Debug for KeyPathPatternSet
source§impl From<KeyPathPatternSet> for (KeyPathPattern, KeyPathPattern)
impl From<KeyPathPatternSet> for (KeyPathPattern, KeyPathPattern)
source§fn from(original: KeyPathPatternSet) -> Self
fn from(original: KeyPathPatternSet) -> Self
Converts to this type from the input type.
source§impl Hash for KeyPathPatternSet
impl Hash for KeyPathPatternSet
source§impl PartialEq for KeyPathPatternSet
impl PartialEq for KeyPathPatternSet
source§fn eq(&self, other: &KeyPathPatternSet) -> bool
fn eq(&self, other: &KeyPathPatternSet) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Eq for KeyPathPatternSet
impl StructuralEq for KeyPathPatternSet
impl StructuralPartialEq for KeyPathPatternSet
Auto Trait Implementations§
impl RefUnwindSafe for KeyPathPatternSet
impl Send for KeyPathPatternSet
impl Sync for KeyPathPatternSet
impl Unpin for KeyPathPatternSet
impl UnwindSafe for KeyPathPatternSet
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
source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere T: Any,
source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.