pub struct TestControllerSynchronousProxy { /* private fields */ }
Implementations§
Source§impl TestControllerSynchronousProxy
impl TestControllerSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
Sourcepub fn wait_for_event(
&self,
deadline: MonotonicInstant,
) -> Result<TestControllerEvent, Error>
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> Result<TestControllerEvent, Error>
Waits until an event arrives and returns it. It is safe for other threads to make concurrent requests while waiting for an event.
Sourcepub fn create_fullmac(
&self,
bridge_client: ClientEnd<WlanFullmacImpl_Marker>,
___deadline: MonotonicInstant,
) -> Result<TestControllerCreateFullmacResult, Error>
pub fn create_fullmac( &self, bridge_client: ClientEnd<WlanFullmacImpl_Marker>, ___deadline: MonotonicInstant, ) -> Result<TestControllerCreateFullmacResult, Error>
Create and bind Fullmac driver that forwards all incoming calls to the |bridge_client|. The Fullmac driver will also create an instance of SME on binding.
The user should expect to receive a call to WlanFullmacImpl::Start shortly after calling this.
Returns an |id| that uniquely identifies the new instance of the Fullmac driver, which can be used to delete the driver instance later.
Sourcepub fn delete_fullmac(
&self,
id: u32,
___deadline: MonotonicInstant,
) -> Result<TestControllerDeleteFullmacResult, Error>
pub fn delete_fullmac( &self, id: u32, ___deadline: MonotonicInstant, ) -> Result<TestControllerDeleteFullmacResult, Error>
Deletes the Fullmac driver with the given |id|.
Trait Implementations§
Source§impl SynchronousProxy for TestControllerSynchronousProxy
impl SynchronousProxy for TestControllerSynchronousProxy
Source§type Proxy = TestControllerProxy
type Proxy = TestControllerProxy
The async proxy for the same protocol.
Source§type Protocol = TestControllerMarker
type Protocol = TestControllerMarker
The protocol which this
Proxy
controls.Source§fn from_channel(inner: Channel) -> Self
fn from_channel(inner: Channel) -> Self
Create a proxy over the given channel.
Source§fn into_channel(self) -> Channel
fn into_channel(self) -> Channel
Convert the proxy back into a channel.
Source§fn as_channel(&self) -> &Channel
fn as_channel(&self) -> &Channel
Get a reference to the proxy’s underlying channel. Read more
Auto Trait Implementations§
impl Freeze for TestControllerSynchronousProxy
impl RefUnwindSafe for TestControllerSynchronousProxy
impl Send for TestControllerSynchronousProxy
impl Sync for TestControllerSynchronousProxy
impl Unpin for TestControllerSynchronousProxy
impl UnwindSafe for TestControllerSynchronousProxy
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