pub struct UniqueIdentifier(pub Vec<u8>);Expand description
NTS Unique Identifier extension field (RFC 8915 Section 5.3).
Contains random data for replay protection at the NTS level. The client generates this value and the server echoes it back.
Tuple Fields§
§0: Vec<u8>Implementations§
Source§impl UniqueIdentifier
impl UniqueIdentifier
Sourcepub fn to_extension_field(&self) -> ExtensionField
pub fn to_extension_field(&self) -> ExtensionField
Convert to a generic extension field.
Sourcepub fn from_extension_field(ef: &ExtensionField) -> Option<Self>
pub fn from_extension_field(ef: &ExtensionField) -> Option<Self>
Try to extract from a generic extension field.
Trait Implementations§
Source§impl Clone for UniqueIdentifier
impl Clone for UniqueIdentifier
Source§fn clone(&self) -> UniqueIdentifier
fn clone(&self) -> UniqueIdentifier
Returns a duplicate 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 UniqueIdentifier
impl Debug for UniqueIdentifier
Source§impl PartialEq for UniqueIdentifier
impl PartialEq for UniqueIdentifier
impl Eq for UniqueIdentifier
impl StructuralPartialEq for UniqueIdentifier
Auto Trait Implementations§
impl Freeze for UniqueIdentifier
impl RefUnwindSafe for UniqueIdentifier
impl Send for UniqueIdentifier
impl Sync for UniqueIdentifier
impl Unpin for UniqueIdentifier
impl UnsafeUnpin for UniqueIdentifier
impl UnwindSafe for UniqueIdentifier
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