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 queue state: ZX_OK: Packet has been enqueued. Other: Packet could not be enqueued. Upon a return of ZX_OK, the packet has been enqueued, but no information is returned as to the completion state of the transmission itself.
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 SynchronousProxy for UsbAdbImpl_SynchronousProxy
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.