pub struct HciTransportMock { /* private fields */ }
Expand description
Provides a simple mock implementation of fuchsia.hardware.bluetooth/HciTransport
.
Implementations§
Source§impl HciTransportMock
impl HciTransportMock
pub fn new( timeout: MonotonicDuration, ) -> Result<(HciTransportProxy, HciTransportMock), Error>
pub fn from_stream( stream: HciTransportRequestStream, timeout: MonotonicDuration, ) -> HciTransportMock
pub async fn expect_send(&mut self, packet: SentPacket) -> Result<(), Error>
Auto Trait Implementations§
impl Freeze for HciTransportMock
impl !RefUnwindSafe for HciTransportMock
impl Send for HciTransportMock
impl Sync for HciTransportMock
impl Unpin for HciTransportMock
impl !UnwindSafe for HciTransportMock
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