pub struct KeyIdentifier(pub [u8; 20]);Expand description
20-byte key identifier (Subject Key Identifier or Authority Key Identifier per spec §6.5.4).
Tuple Fields§
§0: [u8; 20]Implementations§
Source§impl KeyIdentifier
impl KeyIdentifier
Sourcepub fn from_slice(slice: &[u8]) -> Result<Self>
pub fn from_slice(slice: &[u8]) -> Result<Self>
Construct from a byte slice; rejects wrong-length input.
§Errors
Returns Error::WrongKeyIdentifierLength if slice is not exactly
20 bytes.
Trait Implementations§
Source§impl Clone for KeyIdentifier
impl Clone for KeyIdentifier
Source§fn clone(&self) -> KeyIdentifier
fn clone(&self) -> KeyIdentifier
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 moreimpl Copy for KeyIdentifier
Source§impl Debug for KeyIdentifier
impl Debug for KeyIdentifier
impl Eq for KeyIdentifier
Source§impl Hash for KeyIdentifier
impl Hash for KeyIdentifier
Source§impl PartialEq for KeyIdentifier
impl PartialEq for KeyIdentifier
impl StructuralPartialEq for KeyIdentifier
Auto Trait Implementations§
impl Freeze for KeyIdentifier
impl RefUnwindSafe for KeyIdentifier
impl Send for KeyIdentifier
impl Sync for KeyIdentifier
impl Unpin for KeyIdentifier
impl UnsafeUnpin for KeyIdentifier
impl UnwindSafe for KeyIdentifier
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