pub struct JwaAlgorithmId { /* private fields */ }Expand description
JOSE/JWA AlgorithmID value before its 32-bit length prefix is applied.
Implementations§
Source§impl JwaAlgorithmId
impl JwaAlgorithmId
Sourcepub fn from_slice(input: &[u8]) -> Result<JwaAlgorithmId, CryptoError>
pub fn from_slice(input: &[u8]) -> Result<JwaAlgorithmId, CryptoError>
Constructs an AlgorithmID from its ASCII/UTF-8 bytes, such as A128GCM.
Trait Implementations§
Source§impl Clone for JwaAlgorithmId
impl Clone for JwaAlgorithmId
Source§fn clone(&self) -> JwaAlgorithmId
fn clone(&self) -> JwaAlgorithmId
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 Debug for JwaAlgorithmId
impl Debug for JwaAlgorithmId
impl Eq for JwaAlgorithmId
Source§impl PartialEq for JwaAlgorithmId
impl PartialEq for JwaAlgorithmId
impl StructuralPartialEq for JwaAlgorithmId
Auto Trait Implementations§
impl Freeze for JwaAlgorithmId
impl RefUnwindSafe for JwaAlgorithmId
impl Send for JwaAlgorithmId
impl Sync for JwaAlgorithmId
impl Unpin for JwaAlgorithmId
impl UnsafeUnpin for JwaAlgorithmId
impl UnwindSafe for JwaAlgorithmId
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