pub enum MockEvent {
Initialized,
Started,
Stopped,
ScanStarted,
ScanStopped,
AdvertisingStarted,
AdvertisingStopped,
Connected(NodeId),
Disconnected(NodeId, DisconnectReason),
GattServiceRegistered,
GattServiceUnregistered,
}Expand description
Events recorded by the mock adapter for test assertions
Variants§
Initialized
Adapter was initialized
Started
Adapter was started
Stopped
Adapter was stopped
ScanStarted
Scanning for devices started
ScanStopped
Scanning stopped
AdvertisingStarted
Advertising started
AdvertisingStopped
Advertising stopped
Connected(NodeId)
Connected to a peer
Disconnected(NodeId, DisconnectReason)
Disconnected from a peer
GattServiceRegistered
GATT service was registered
GattServiceUnregistered
GATT service was unregistered
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MockEvent
impl RefUnwindSafe for MockEvent
impl Send for MockEvent
impl Sync for MockEvent
impl Unpin for MockEvent
impl UnwindSafe for MockEvent
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