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