pub struct EmulatorState {
pub controller_parameters: Option<ControllerParameters>,
pub advertising_state_changes: Vec<LegacyAdvertisingState>,
pub connection_states: HashMap<Address, Vec<ConnectionState>>,
}
Expand description
Used to maintain the state transitions that are observed from the emulator. This type can be used in test harness auxiliary types.
Fields§
§controller_parameters: Option<ControllerParameters>
Most recently observed controller parameters.
advertising_state_changes: Vec<LegacyAdvertisingState>
Observed changes to the controller’s advertising state and parameters.
connection_states: HashMap<Address, Vec<ConnectionState>>
List of observed peer connection states.
Trait Implementations§
Source§impl AsMut<EmulatorState> for HostState
impl AsMut<EmulatorState> for HostState
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 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 AsMut<EmulatorState> for ProfileState
impl AsMut<EmulatorState> for ProfileState
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 HostState
impl AsRef<EmulatorState> for HostState
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 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 AsRef<EmulatorState> for ProfileState
impl AsRef<EmulatorState> for ProfileState
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 EmulatorState
impl Clone for EmulatorState
Source§fn clone(&self) -> EmulatorState
fn clone(&self) -> EmulatorState
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 EmulatorState
impl Debug for EmulatorState
Source§impl Default for EmulatorState
impl Default for EmulatorState
Source§fn default() -> EmulatorState
fn default() -> EmulatorState
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for EmulatorState
impl RefUnwindSafe for EmulatorState
impl Send for EmulatorState
impl Sync for EmulatorState
impl Unpin for EmulatorState
impl UnwindSafe for EmulatorState
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
)