pub struct PeripheralState {
pub connections: Vec<(Peer, ConnectionProxy)>,
/* private fields */
}
Expand description
A snapshot of the current LE peripheral procedure states of the controller.
Fields§
§connections: Vec<(Peer, ConnectionProxy)>
Observed peer connections.
Implementations§
Trait Implementations§
Source§impl AsMut<EmulatorState> for PeripheralState
impl AsMut<EmulatorState> for PeripheralState
Source§fn as_mut(&mut self) -> &mut EmulatorState
fn as_mut(&mut self) -> &mut EmulatorState
Converts this type into a mutable reference of the (usually inferred) input type.
Source§impl AsRef<EmulatorState> for PeripheralState
impl AsRef<EmulatorState> for PeripheralState
Source§fn as_ref(&self) -> &EmulatorState
fn as_ref(&self) -> &EmulatorState
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Clone for PeripheralState
impl Clone for PeripheralState
Source§fn clone(&self) -> PeripheralState
fn clone(&self) -> PeripheralState
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 PeripheralState
impl Debug for PeripheralState
Source§impl Default for PeripheralState
impl Default for PeripheralState
Source§fn default() -> PeripheralState
fn default() -> PeripheralState
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for PeripheralState
impl !RefUnwindSafe for PeripheralState
impl Send for PeripheralState
impl Sync for PeripheralState
impl Unpin for PeripheralState
impl !UnwindSafe for PeripheralState
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
)