#[repr(transparent)]pub struct ActiveScanResult(pub otActiveScanResult);
Expand description
This structure holds information about a network beacon discovered during an active scan.
Functional equivalent of otsys::otActiveScanResult
.
Tuple Fields§
§0: otActiveScanResult
Implementations§
Source§impl ActiveScanResult
impl ActiveScanResult
Sourcepub fn channel(&self) -> ChannelIndex
pub fn channel(&self) -> ChannelIndex
Channel index.
Sourcepub fn ext_address(&self) -> ExtAddress
pub fn ext_address(&self) -> ExtAddress
IEEE 802.15.4 Extended Address for this beacon.
Sourcepub fn extended_pan_id(&self) -> ExtendedPanId
pub fn extended_pan_id(&self) -> ExtendedPanId
Extended PAN-ID for this beacon.
Sourcepub fn is_joinable(&self) -> bool
👎Deprecated
pub fn is_joinable(&self) -> bool
Deprecated. Use [discover()
] instead.
Returns true if this beacon is joinable.
Sourcepub fn joiner_udp_port(&self) -> u16
pub fn joiner_udp_port(&self) -> u16
UDP Joiner port
Sourcepub fn network_name(&self) -> &NetworkName
pub fn network_name(&self) -> &NetworkName
Network Name from this beacon.
Sourcepub fn steering_data(&self) -> &[u8] ⓘ
pub fn steering_data(&self) -> &[u8] ⓘ
Steering Data.
Trait Implementations§
Source§impl Clone for ActiveScanResult
impl Clone for ActiveScanResult
Source§fn clone(&self) -> ActiveScanResult
fn clone(&self) -> ActiveScanResult
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 ActiveScanResult
impl Debug for ActiveScanResult
Source§impl Default for ActiveScanResult
impl Default for ActiveScanResult
Source§fn default() -> ActiveScanResult
fn default() -> ActiveScanResult
Returns the “default value” for a type. Read more
Source§impl<'a> From<&'a ActiveScanResult> for &'a otActiveScanResult
impl<'a> From<&'a ActiveScanResult> for &'a otActiveScanResult
Source§fn from(x: &'a ActiveScanResult) -> Self
fn from(x: &'a ActiveScanResult) -> Self
Converts to this type from the input type.
Source§impl<'a> From<&'a otActiveScanResult> for &'a ActiveScanResult
impl<'a> From<&'a otActiveScanResult> for &'a ActiveScanResult
Source§impl From<ActiveScanResult> for otActiveScanResult
impl From<ActiveScanResult> for otActiveScanResult
Source§fn from(x: ActiveScanResult) -> Self
fn from(x: ActiveScanResult) -> Self
Converts to this type from the input type.
Source§impl From<otActiveScanResult> for ActiveScanResult
impl From<otActiveScanResult> for ActiveScanResult
Source§impl OtCastable for ActiveScanResult
impl OtCastable for ActiveScanResult
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 ActiveScanResult
impl RefUnwindSafe for ActiveScanResult
impl Send for ActiveScanResult
impl Sync for ActiveScanResult
impl Unpin for ActiveScanResult
impl UnwindSafe for ActiveScanResult
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
)