Enum coset::iana::KeyOperation [−][src]
#[non_exhaustive] pub enum KeyOperation { Sign, Verify, Encrypt, Decrypt, WrapKey, UnwrapKey, DeriveKey, DeriveBits, MacCreate, MacVerify, }
Expand description
Key operation values.
See RFC 8152 section 7.1 table 4.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Expand description
Key is used to create signatures. Requires private key fields.
Expand description
Key is used for verification of signatures.
Expand description
Key is used for key transport encryption.
Expand description
Key is used for key transport decryption. Requires private key fields.
Expand description
Key is used for key wrap encryption.
Expand description
Key is used for key wrap decryption. Requires private key fields.
Expand description
Key is used for deriving keys. Requires private key fields.
Expand description
Key is used for deriving bits not to be used as a key. Requires private key fields.
Expand description
Key is used for creating MACs.
Expand description
Key is used for validating MACs.
Trait Implementations
impl Clone for KeyOperation
[src]
impl Clone for KeyOperation
[src]fn clone(&self) -> KeyOperation
[src]
fn clone(&self) -> KeyOperation
[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
impl Debug for KeyOperation
[src]
impl Debug for KeyOperation
[src]impl<'de> Deserialize<'de> for KeyOperation
[src]
impl<'de> Deserialize<'de> for KeyOperation
[src]fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]Deserialize this value from the given Serde deserializer. Read more
impl EnumI128 for KeyOperation
[src]
impl EnumI128 for KeyOperation
[src]impl Ord for KeyOperation
[src]
impl Ord for KeyOperation
[src]impl PartialEq<KeyOperation> for KeyOperation
[src]
impl PartialEq<KeyOperation> for KeyOperation
[src]impl PartialOrd<KeyOperation> for KeyOperation
[src]
impl PartialOrd<KeyOperation> for KeyOperation
[src]fn partial_cmp(&self, other: &KeyOperation) -> Option<Ordering>
[src]
fn partial_cmp(&self, other: &KeyOperation) -> Option<Ordering>
[src]This method returns an ordering between self
and other
values if one exists. Read more
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]This method tests less than (for self
and other
) and is used by the <
operator. Read more
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl Serialize for KeyOperation
[src]
impl Serialize for KeyOperation
[src]impl Copy for KeyOperation
[src]
impl Eq for KeyOperation
[src]
impl StructuralEq for KeyOperation
[src]
impl StructuralPartialEq for KeyOperation
[src]
Auto Trait Implementations
impl RefUnwindSafe for KeyOperation
impl Send for KeyOperation
impl Sync for KeyOperation
impl Unpin for KeyOperation
impl UnwindSafe for KeyOperation
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,