pub struct ManagedKey {
pub key_id: u16,
pub state: KeyState,
pub material: [u8; 32],
pub key_len: u8,
}Expand description
A managed cryptographic key.
Fields§
§key_id: u16Key identifier.
state: KeyStateCurrent lifecycle state.
material: [u8; 32]Key material (AES-128 = 16 bytes, AES-256 = 32 bytes).
key_len: u8Actual key length in bytes.
Implementations§
Trait Implementations§
Source§impl Clone for ManagedKey
impl Clone for ManagedKey
Source§fn clone(&self) -> ManagedKey
fn clone(&self) -> ManagedKey
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 moreAuto Trait Implementations§
impl Freeze for ManagedKey
impl RefUnwindSafe for ManagedKey
impl Send for ManagedKey
impl Sync for ManagedKey
impl Unpin for ManagedKey
impl UnsafeUnpin for ManagedKey
impl UnwindSafe for ManagedKey
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