Struct openthread_sys::otCryptoKey
source · #[repr(C)]pub struct otCryptoKey {
pub mKey: *const u8,
pub mKeyLength: u16,
pub mKeyRef: u32,
}
Expand description
@struct otCryptoKey
Represents the Key Material required for Crypto operations.
Fields§
§mKey: *const u8
< Pointer to the buffer containing key. NULL indicates to use mKeyRef
.
mKeyLength: u16
< The key length in bytes (applicable when mKey
is not NULL).
mKeyRef: u32
< The PSA key ref (requires mKey
to be NULL).
Trait Implementations§
source§impl Clone for otCryptoKey
impl Clone for otCryptoKey
source§fn clone(&self) -> otCryptoKey
fn clone(&self) -> otCryptoKey
Returns a copy 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 otCryptoKey
impl Debug for otCryptoKey
source§impl Default for otCryptoKey
impl Default for otCryptoKey
impl Copy for otCryptoKey
Auto Trait Implementations§
impl Freeze for otCryptoKey
impl RefUnwindSafe for otCryptoKey
impl !Send for otCryptoKey
impl !Sync for otCryptoKey
impl Unpin for otCryptoKey
impl UnwindSafe for otCryptoKey
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)