#[repr(transparent)]pub struct Info(pub otMessageInfo);
Expand description
Message Info.
Functional equivalent of otsys::otMessageInfo
.
Tuple Fields§
§0: otMessageInfo
Implementations§
Source§impl Info
impl Info
Sourcepub fn set_hop_limit(&mut self, hop_limit: u8)
pub fn set_hop_limit(&mut self, hop_limit: u8)
Sets the IPv6 Hop Limit value.
Sourcepub fn is_host_interface(&self) -> bool
pub fn is_host_interface(&self) -> bool
TRUE if packets sent/received via host interface, FALSE otherwise.
Sourcepub fn set_host_interface(&mut self, host_interface: bool)
pub fn set_host_interface(&mut self, host_interface: bool)
Set to TRUE if packets sent/received via host interface, FALSE otherwise.
Sourcepub fn multicast_loop(&self) -> bool
pub fn multicast_loop(&self) -> bool
TRUE if allowing looping back multicast, FALSE otherwise.
Sourcepub fn set_multicast_loop(&mut self, multicast_loop: bool)
pub fn set_multicast_loop(&mut self, multicast_loop: bool)
Set to TRUE to allow looping back multicast, FALSE otherwise.
Sourcepub fn allow_zero_hop_limit(&self) -> bool
pub fn allow_zero_hop_limit(&self) -> bool
TRUE if allowing IPv6 Hop Limit 0 in mHopLimit, FALSE otherwise.
Sourcepub fn set_allow_zero_hop_limit(&mut self, allow_zero_hop_limit: bool)
pub fn set_allow_zero_hop_limit(&mut self, allow_zero_hop_limit: bool)
Set to TRUE to allow IPv6 Hop Limit 0 in mHopLimit, FALSE otherwise.
Trait Implementations§
Source§impl OtCastable for Info
impl OtCastable for Info
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 Info
impl RefUnwindSafe for Info
impl Send for Info
impl Sync for Info
impl Unpin for Info
impl UnwindSafe for Info
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
)