pub struct KeyLocator { /* private fields */ }
Implementations§
Source§impl KeyLocator
impl KeyLocator
pub fn new(locator: KeyLocatorData) -> KeyLocator
Source§impl KeyLocator
impl KeyLocator
pub fn locator(&self) -> &KeyLocatorData
Trait Implementations§
Source§impl AsMut<KeyLocatorData> for KeyLocator
impl AsMut<KeyLocatorData> for KeyLocator
Source§fn as_mut(&mut self) -> &mut KeyLocatorData
fn as_mut(&mut self) -> &mut KeyLocatorData
Converts this type into a mutable reference of the (usually inferred) input type.
Source§impl AsRef<KeyLocatorData> for KeyLocator
impl AsRef<KeyLocatorData> for KeyLocator
Source§fn as_ref(&self) -> &KeyLocatorData
fn as_ref(&self) -> &KeyLocatorData
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Clone for KeyLocator
impl Clone for KeyLocator
Source§fn clone(&self) -> KeyLocator
fn clone(&self) -> KeyLocator
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 KeyLocator
impl Debug for KeyLocator
Source§impl From<KeyLocator> for KeyLocatorData
impl From<KeyLocator> for KeyLocatorData
Source§fn from(original: KeyLocator) -> Self
fn from(original: KeyLocator) -> Self
Converts to this type from the input type.
Source§impl From<KeyLocatorData> for KeyLocator
impl From<KeyLocatorData> for KeyLocator
Source§fn from(original: KeyLocatorData) -> KeyLocator
fn from(original: KeyLocatorData) -> KeyLocator
Converts to this type from the input type.
Source§impl Hash for KeyLocator
impl Hash for KeyLocator
Source§impl PartialEq for KeyLocator
impl PartialEq for KeyLocator
Source§impl Tlv for KeyLocator
impl Tlv for KeyLocator
Source§fn inner_size(&self) -> usize
fn inner_size(&self) -> usize
The size of the payload contained within this TLV Read more
Source§fn critical() -> bool
fn critical() -> bool
Whether the TLV is critical, see
tlv_critical
Source§impl TlvDecode for KeyLocator
impl TlvDecode for KeyLocator
Source§impl TlvEncode for KeyLocator
impl TlvEncode for KeyLocator
impl Eq for KeyLocator
impl StructuralPartialEq for KeyLocator
Auto Trait Implementations§
impl !Freeze for KeyLocator
impl RefUnwindSafe for KeyLocator
impl Send for KeyLocator
impl Sync for KeyLocator
impl Unpin for KeyLocator
impl UnwindSafe for KeyLocator
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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