#[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)§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§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)