#[repr(transparent)]pub struct MultiRadioNeighborInfo(pub otMultiRadioNeighborInfo);Expand description
This structure represents multi radio link information associated with a neighbor.
Functional equivalent of otsys::otMultiRadioNeighborInfo.
Tuple Fields§
§0: otMultiRadioNeighborInfoImplementations§
Source§impl MultiRadioNeighborInfo
impl MultiRadioNeighborInfo
Sourcepub fn is_ieee_802_15_4_supported(&self) -> bool
pub fn is_ieee_802_15_4_supported(&self) -> bool
Whether the neighbor supports IEEE 802.15.4 radio link.
Sourcepub fn is_trel_supported(&self) -> bool
pub fn is_trel_supported(&self) -> bool
Whether the neighbor supports Thread Radio Encapsulation Link (TREL) radio link.
Sourcepub fn ieee_802_15_4_preference(&self) -> u8
pub fn ieee_802_15_4_preference(&self) -> u8
Preference level for the IEEE 802.15.4 radio link.
Sourcepub fn trel_preference(&self) -> u8
pub fn trel_preference(&self) -> u8
Preference level for the Thread Radio Encapsulation Link (TREL) radio link.
Trait Implementations§
Source§impl Clone for MultiRadioNeighborInfo
impl Clone for MultiRadioNeighborInfo
Source§fn clone(&self) -> MultiRadioNeighborInfo
fn clone(&self) -> MultiRadioNeighborInfo
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 moreSource§impl Debug for MultiRadioNeighborInfo
impl Debug for MultiRadioNeighborInfo
Source§impl Default for MultiRadioNeighborInfo
impl Default for MultiRadioNeighborInfo
Source§fn default() -> MultiRadioNeighborInfo
fn default() -> MultiRadioNeighborInfo
Returns the “default value” for a type. Read more
Source§impl<'a> From<&'a MultiRadioNeighborInfo> for &'a otMultiRadioNeighborInfo
impl<'a> From<&'a MultiRadioNeighborInfo> for &'a otMultiRadioNeighborInfo
Source§fn from(x: &'a MultiRadioNeighborInfo) -> Self
fn from(x: &'a MultiRadioNeighborInfo) -> Self
Converts to this type from the input type.
Source§impl<'a> From<&'a otMultiRadioNeighborInfo> for &'a MultiRadioNeighborInfo
impl<'a> From<&'a otMultiRadioNeighborInfo> for &'a MultiRadioNeighborInfo
Source§fn from(x: &'a otMultiRadioNeighborInfo) -> Self
fn from(x: &'a otMultiRadioNeighborInfo) -> Self
Converts to this type from the input type.
Source§impl From<MultiRadioNeighborInfo> for otMultiRadioNeighborInfo
impl From<MultiRadioNeighborInfo> for otMultiRadioNeighborInfo
Source§fn from(x: MultiRadioNeighborInfo) -> Self
fn from(x: MultiRadioNeighborInfo) -> Self
Converts to this type from the input type.
Source§impl From<otMultiRadioNeighborInfo> for MultiRadioNeighborInfo
impl From<otMultiRadioNeighborInfo> for MultiRadioNeighborInfo
Source§fn from(x: otMultiRadioNeighborInfo) -> Self
fn from(x: otMultiRadioNeighborInfo) -> Self
Converts to this type from the input type.
Source§impl OtCastable for MultiRadioNeighborInfo
impl OtCastable for MultiRadioNeighborInfo
Source§type OtType = otMultiRadioNeighborInfo
type OtType = otMultiRadioNeighborInfo
Original OpenThread Type.
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.Auto Trait Implementations§
impl Freeze for MultiRadioNeighborInfo
impl RefUnwindSafe for MultiRadioNeighborInfo
impl Send for MultiRadioNeighborInfo
impl Sync for MultiRadioNeighborInfo
impl Unpin for MultiRadioNeighborInfo
impl UnsafeUnpin for MultiRadioNeighborInfo
impl UnwindSafe for MultiRadioNeighborInfo
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,
§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
§impl<T> InstanceFromServiceTransport<T> for T
impl<T> InstanceFromServiceTransport<T> for T
§fn from_service_transport(handle: T) -> T
fn from_service_transport(handle: T) -> T
Converts the given service transport handle of type
T to [Self]