#[repr(C)]pub struct otCryptoContext {
pub mContext: *mut c_void,
pub mContextSize: u16,
}Expand description
@struct otCryptoContext
Stores the context object for platform APIs.
If OPENTHREAD_CONFIG_CRYPTO_PLATFORM_ALLOCS_CONTEXT is enabled, the platform allocates and populates this.
Otherwise OpenThread core allocates and populates this.
Fields§
§mContext: *mut c_void< Pointer to the context.
mContextSize: u16< The length of the context in bytes.
Trait Implementations§
Source§impl Clone for otCryptoContext
impl Clone for otCryptoContext
Source§fn clone(&self) -> otCryptoContext
fn clone(&self) -> otCryptoContext
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 otCryptoContext
Source§impl Debug for otCryptoContext
impl Debug for otCryptoContext
Auto Trait Implementations§
impl !Send for otCryptoContext
impl !Sync for otCryptoContext
impl Freeze for otCryptoContext
impl RefUnwindSafe for otCryptoContext
impl Unpin for otCryptoContext
impl UnsafeUnpin for otCryptoContext
impl UnwindSafe for otCryptoContext
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