pub struct TestDevice2SynchronousProxy { /* private fields */ }
Implementations§
Source§impl TestDevice2SynchronousProxy
impl TestDevice2SynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
Sourcepub fn wait_for_event(
&self,
deadline: MonotonicInstant,
) -> Result<TestDevice2Event, Error>
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> Result<TestDevice2Event, Error>
Waits until an event arrives and returns it. It is safe for other threads to make concurrent requests while waiting for an event.
pub fn get_unit_test_status( &self, ___deadline: MonotonicInstant, ) -> Result<i32, Error>
Trait Implementations§
Source§impl Debug for TestDevice2SynchronousProxy
impl Debug for TestDevice2SynchronousProxy
Source§impl From<Channel> for TestDevice2SynchronousProxy
impl From<Channel> for TestDevice2SynchronousProxy
Source§impl From<TestDevice2SynchronousProxy> for Handle
impl From<TestDevice2SynchronousProxy> for Handle
Source§fn from(value: TestDevice2SynchronousProxy) -> Self
fn from(value: TestDevice2SynchronousProxy) -> Self
Converts to this type from the input type.
Source§impl SynchronousProxy for TestDevice2SynchronousProxy
impl SynchronousProxy for TestDevice2SynchronousProxy
Source§type Proxy = TestDevice2Proxy
type Proxy = TestDevice2Proxy
The async proxy for the same protocol.
Source§type Protocol = TestDevice2Marker
type Protocol = TestDevice2Marker
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 TestDevice2SynchronousProxy
impl RefUnwindSafe for TestDevice2SynchronousProxy
impl Send for TestDevice2SynchronousProxy
impl Sync for TestDevice2SynchronousProxy
impl Unpin for TestDevice2SynchronousProxy
impl UnwindSafe for TestDevice2SynchronousProxy
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