pub struct UsbAdbImpl_SynchronousProxy { /* private fields */ }Implementations§
Source§impl UsbAdbImpl_SynchronousProxy
impl UsbAdbImpl_SynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
Sourcepub fn wait_for_event(
&self,
deadline: MonotonicInstant,
) -> Result<UsbAdbImpl_Event, Error>
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> Result<UsbAdbImpl_Event, 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 queue_tx(
&self,
data: &[u8],
___deadline: MonotonicInstant,
) -> Result<UsbAdbImplQueueTxResult, Error>
pub fn queue_tx( &self, data: &[u8], ___deadline: MonotonicInstant, ) -> Result<UsbAdbImplQueueTxResult, Error>
Request transmission of the packet in |data|.
Return status indicates transmission result: ZX_OK: Packet has been transmitted over USB to the host. ZX_ERR_INVALID_ARGS: |data| is empty. ZX_ERR_BAD_STATE: USB ADB device is not in an online or waiting state (e.g. stopping). ZX_ERR_IO: Low-level transport error submitting request to the USB endpoint. ZX_ERR_CANCELED: Transmission was canceled prior to completion (e.g. driver reset or teardown).
Sourcepub fn receive(
&self,
___deadline: MonotonicInstant,
) -> Result<UsbAdbImplReceiveResult, Error>
pub fn receive( &self, ___deadline: MonotonicInstant, ) -> Result<UsbAdbImplReceiveResult, Error>
Request to receive data. This method ensures flow control by allowing the client to queue |Receive| requests proactively. The driver will complete the requests only when data is available.
Return data or error. ZX_OK: Success. data is valid. ZX_ERR_BAD_STATE: Subsequent requests will not succeed as well. Other error codes are from underlying subsystem and the caller should retry |Receive| in that case.
Trait Implementations§
Source§impl Debug for UsbAdbImpl_SynchronousProxy
impl Debug for UsbAdbImpl_SynchronousProxy
Source§impl From<Channel> for UsbAdbImpl_SynchronousProxy
Available on Fuchsia only.
impl From<Channel> for UsbAdbImpl_SynchronousProxy
Source§impl From<UsbAdbImpl_SynchronousProxy> for NullableHandle
Available on Fuchsia only.
impl From<UsbAdbImpl_SynchronousProxy> for NullableHandle
Source§fn from(value: UsbAdbImpl_SynchronousProxy) -> Self
fn from(value: UsbAdbImpl_SynchronousProxy) -> Self
Source§impl FromClient for UsbAdbImpl_SynchronousProxy
Available on Fuchsia only.
impl FromClient for UsbAdbImpl_SynchronousProxy
Source§type Protocol = UsbAdbImpl_Marker
type Protocol = UsbAdbImpl_Marker
Source§fn from_client(value: ClientEnd<UsbAdbImpl_Marker>) -> Self
fn from_client(value: ClientEnd<UsbAdbImpl_Marker>) -> Self
Source§impl SynchronousProxy for UsbAdbImpl_SynchronousProxy
Available on Fuchsia only.
impl SynchronousProxy for UsbAdbImpl_SynchronousProxy
Source§type Proxy = UsbAdbImpl_Proxy
type Proxy = UsbAdbImpl_Proxy
Source§type Protocol = UsbAdbImpl_Marker
type Protocol = UsbAdbImpl_Marker
Proxy controls.