pub struct I2cEndpointSynchronousProxy { /* private fields */ }Implementations§
Source§impl I2cEndpointSynchronousProxy
impl I2cEndpointSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
Sourcepub fn wait_for_event(
&self,
deadline: MonotonicInstant,
) -> Result<I2cEndpointEvent, Error>
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> Result<I2cEndpointEvent, 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 transfer( &self, write_data: &[u8], read_length: u32, ___deadline: MonotonicInstant, ) -> Result<I2cEndpointTransferResult, Error>
Trait Implementations§
Source§impl Debug for I2cEndpointSynchronousProxy
impl Debug for I2cEndpointSynchronousProxy
Source§impl From<Channel> for I2cEndpointSynchronousProxy
Available on Fuchsia only.
impl From<Channel> for I2cEndpointSynchronousProxy
Available on Fuchsia only.
Source§impl From<I2cEndpointSynchronousProxy> for NullableHandle
Available on Fuchsia only.
impl From<I2cEndpointSynchronousProxy> for NullableHandle
Available on Fuchsia only.
Source§fn from(value: I2cEndpointSynchronousProxy) -> Self
fn from(value: I2cEndpointSynchronousProxy) -> Self
Converts to this type from the input type.
Source§impl FromClient for I2cEndpointSynchronousProxy
Available on Fuchsia only.
impl FromClient for I2cEndpointSynchronousProxy
Available on Fuchsia only.
Source§type Protocol = I2cEndpointMarker
type Protocol = I2cEndpointMarker
The protocol.
Source§fn from_client(value: ClientEnd<I2cEndpointMarker>) -> Self
fn from_client(value: ClientEnd<I2cEndpointMarker>) -> Self
Converts from a client.
Source§impl SynchronousProxy for I2cEndpointSynchronousProxy
Available on Fuchsia only.
impl SynchronousProxy for I2cEndpointSynchronousProxy
Available on Fuchsia only.
Source§type Proxy = I2cEndpointProxy
type Proxy = I2cEndpointProxy
The async proxy for the same protocol.
Source§type Protocol = I2cEndpointMarker
type Protocol = I2cEndpointMarker
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 I2cEndpointSynchronousProxy
impl RefUnwindSafe for I2cEndpointSynchronousProxy
impl Send for I2cEndpointSynchronousProxy
impl Sync for I2cEndpointSynchronousProxy
impl Unpin for I2cEndpointSynchronousProxy
impl UnsafeUnpin for I2cEndpointSynchronousProxy
impl UnwindSafe for I2cEndpointSynchronousProxy
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