pub struct Scans { /* private fields */ }Expand description
Aggregates scan callbacks until the matching scanComplete callback arrives.
EZSP reports active network scans and energy scans as a stream of callbacks,
followed by scanComplete. Scans keeps the registered scan queue and
result buffers so the event handler can resolve the corresponding one-shot
request.
Implementations§
Source§impl Scans
impl Scans
Sourcepub fn add_channel(&mut self, scanned: EnergyScanResult)
pub fn add_channel(&mut self, scanned: EnergyScanResult)
Adds an energy scan result to the current channel buffer.
Sourcepub fn add_network(&mut self, found: NetworkFound)
pub fn add_network(&mut self, found: NetworkFound)
Adds an active scan result to the current network buffer.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Scans
impl !UnwindSafe for Scans
impl Freeze for Scans
impl Send for Scans
impl Sync for Scans
impl Unpin for Scans
impl UnsafeUnpin for Scans
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more