pub struct KeystoreEntry<'a> {
key_path: KeyPath,
key_type: KeystoreItemType,
keystore_id: &'a KeystoreId,
raw_id: RawEntryId,
}Expand description
A keystore entry descriptor.
This identifies a key entry from a specific keystore.
The key entry can be retrieved, using KeyMgr::get_entry,
or removed, using KeyMgr::remove_entry.
Returned from KeyMgr::list_matching.
Fields§
§key_path: KeyPathThe KeyPath of the key.
key_type: KeystoreItemTypeThe KeystoreItemType of the key.
keystore_id: &'a KeystoreIdThe KeystoreId of the keystore where the key was found.
raw_id: RawEntryIdThe RawEntryId of the key, an identifier used in
arti raw operations.
Implementations§
Source§impl<'a> KeystoreEntry<'a>
impl<'a> KeystoreEntry<'a>
Sourcepub fn key_path(&self) -> &KeyPath
pub fn key_path(&self) -> &KeyPath
Method borrowing KeystoreEntry::key_path field.
The KeyPath of the key.
Sourcepub fn key_type(&self) -> &KeystoreItemType
pub fn key_type(&self) -> &KeystoreItemType
Method borrowing KeystoreEntry::key_type field.
The KeystoreItemType of the key.
Sourcepub fn keystore_id(&self) -> &'a KeystoreId
pub fn keystore_id(&self) -> &'a KeystoreId
Method returning copy of KeystoreEntry::keystore_id field.
The KeystoreId of the keystore where the key was found.
Source§impl<'a> KeystoreEntry<'a>
impl<'a> KeystoreEntry<'a>
Sourcepub(crate) fn new(
key_path: KeyPath,
key_type: KeystoreItemType,
keystore_id: &'a KeystoreId,
raw_id: RawEntryId,
) -> Self
pub(crate) fn new( key_path: KeyPath, key_type: KeystoreItemType, keystore_id: &'a KeystoreId, raw_id: RawEntryId, ) -> Self
Create a new KeystoreEntry
Sourcepub fn raw_entry(&self) -> RawKeystoreEntry
pub fn raw_entry(&self) -> RawKeystoreEntry
Return an instance of RawKeystoreEntry
Trait Implementations§
Source§impl<'a> Clone for KeystoreEntry<'a>
impl<'a> Clone for KeystoreEntry<'a>
Source§fn clone(&self) -> KeystoreEntry<'a>
fn clone(&self) -> KeystoreEntry<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for KeystoreEntry<'a>
impl<'a> Debug for KeystoreEntry<'a>
Source§impl<'a> From<KeystoreEntry<'a>> for KeystoreEntryResult<KeystoreEntry<'a>>
impl<'a> From<KeystoreEntry<'a>> for KeystoreEntryResult<KeystoreEntry<'a>>
Source§fn from(val: KeystoreEntry<'a>) -> Self
fn from(val: KeystoreEntry<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a> PartialEq for KeystoreEntry<'a>
impl<'a> PartialEq for KeystoreEntry<'a>
Source§fn eq(&self, other: &KeystoreEntry<'a>) -> bool
fn eq(&self, other: &KeystoreEntry<'a>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<'a> StructuralPartialEq for KeystoreEntry<'a>
Auto Trait Implementations§
impl<'a> Freeze for KeystoreEntry<'a>
impl<'a> RefUnwindSafe for KeystoreEntry<'a>
impl<'a> Send for KeystoreEntry<'a>
impl<'a> Sync for KeystoreEntry<'a>
impl<'a> Unpin for KeystoreEntry<'a>
impl<'a> UnsafeUnpin for KeystoreEntry<'a>
impl<'a> UnwindSafe for KeystoreEntry<'a>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
Converts
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn 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>
Converts
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which 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)
Converts
&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)
Converts
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSend for T
impl<T> DowncastSend for T
Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more