#[repr(transparent)]pub struct NetworkKey(pub otNetworkKey);
Expand description
Network Key.
Functional equivalent of otsys::otNetworkKey
.
Tuple Fields§
§0: otNetworkKey
Implementations§
Source§impl NetworkKey
impl NetworkKey
Source§impl NetworkKey
impl NetworkKey
Sourcepub fn try_ref_from_slice(slice: &[u8]) -> Result<&NetworkKey, WrongSize>
pub fn try_ref_from_slice(slice: &[u8]) -> Result<&NetworkKey, WrongSize>
Tries to create a NetworkKey
reference from a byte slice.
Trait Implementations§
Source§impl Clone for NetworkKey
impl Clone for NetworkKey
Source§fn clone(&self) -> NetworkKey
fn clone(&self) -> NetworkKey
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 NetworkKey
impl Debug for NetworkKey
Source§impl Default for NetworkKey
impl Default for NetworkKey
Source§fn default() -> NetworkKey
fn default() -> NetworkKey
Returns the “default value” for a type. Read more
Source§impl<'a> From<&'a NetworkKey> for &'a otNetworkKey
impl<'a> From<&'a NetworkKey> for &'a otNetworkKey
Source§fn from(x: &'a NetworkKey) -> Self
fn from(x: &'a NetworkKey) -> Self
Converts to this type from the input type.
Source§impl<'a> From<&'a otNetworkKey> for &'a NetworkKey
impl<'a> From<&'a otNetworkKey> for &'a NetworkKey
Source§impl From<NetworkKey> for [u8; 16]
impl From<NetworkKey> for [u8; 16]
Source§fn from(key: NetworkKey) -> Self
fn from(key: NetworkKey) -> Self
Converts to this type from the input type.
Source§impl From<NetworkKey> for otNetworkKey
impl From<NetworkKey> for otNetworkKey
Source§fn from(x: NetworkKey) -> Self
fn from(x: NetworkKey) -> Self
Converts to this type from the input type.
Source§impl From<otNetworkKey> for NetworkKey
impl From<otNetworkKey> for NetworkKey
Source§impl OtCastable for NetworkKey
impl OtCastable for NetworkKey
Source§fn as_ot_ptr(&self) -> *const Self::OtType
fn as_ot_ptr(&self) -> *const Self::OtType
Returns a pointer to the underlying
Self::OtType
instance.Source§fn as_ot_mut_ptr(&mut self) -> *mut Self::OtType
fn as_ot_mut_ptr(&mut self) -> *mut Self::OtType
Returns a mutable pointer to the underlying
Self::OtType
instance.Source§unsafe fn ref_from_ot_ptr<'a>(ptr: *const Self::OtType) -> Option<&'a Self>
unsafe fn ref_from_ot_ptr<'a>(ptr: *const Self::OtType) -> Option<&'a Self>
Creates a reference from a pointer to an
Self::OtType
. Read moreSource§unsafe fn mut_from_ot_mut_ptr<'a>(
ptr: *mut Self::OtType,
) -> Option<&'a mut Self>
unsafe fn mut_from_ot_mut_ptr<'a>( ptr: *mut Self::OtType, ) -> Option<&'a mut Self>
Creates a mut reference from a mut pointer to an
Self::OtType
. Read moreSource§fn as_ot_ref(&self) -> &Self::OtType
fn as_ot_ref(&self) -> &Self::OtType
Returns a reference to the original OpenThread type
Self::OtType
.Source§fn as_ot_mut(&mut self) -> &mut Self::OtType
fn as_ot_mut(&mut self) -> &mut Self::OtType
Returns a mutable reference to the original OpenThread type
Self::OtType
.Source§fn ref_from_ot_ref(x: &Self::OtType) -> &Self
fn ref_from_ot_ref(x: &Self::OtType) -> &Self
Casts a reference to the original OpenThread type to a reference to
Self
.Source§impl Transparent for NetworkKey
impl Transparent for NetworkKey
impl Copy for NetworkKey
Auto Trait Implementations§
impl Freeze for NetworkKey
impl RefUnwindSafe for NetworkKey
impl Send for NetworkKey
impl Sync for NetworkKey
impl Unpin for NetworkKey
impl UnwindSafe for NetworkKey
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§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
)