pub struct UsbAdbImpl_Proxy { /* private fields */ }
Implementations§
source§impl UsbAdbImpl_Proxy
impl UsbAdbImpl_Proxy
sourcepub fn new(channel: AsyncChannel) -> Self
pub fn new(channel: AsyncChannel) -> Self
Create a new Proxy for fuchsia.hardware.adb/UsbAdbImpl.
sourcepub fn take_event_stream(&self) -> UsbAdbImpl_EventStream
pub fn take_event_stream(&self) -> UsbAdbImpl_EventStream
Get a Stream of events from the remote end of the protocol.
§Panics
Panics if the event stream was already taken.
sourcepub fn queue_tx(
&self,
data: &[u8],
) -> QueryResponseFut<UsbAdbImplQueueTxResult, DefaultFuchsiaResourceDialect>
pub fn queue_tx( &self, data: &[u8], ) -> QueryResponseFut<UsbAdbImplQueueTxResult, DefaultFuchsiaResourceDialect>
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,
) -> QueryResponseFut<UsbAdbImplReceiveResult, DefaultFuchsiaResourceDialect>
pub fn receive( &self, ) -> QueryResponseFut<UsbAdbImplReceiveResult, DefaultFuchsiaResourceDialect>
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 Clone for UsbAdbImpl_Proxy
impl Clone for UsbAdbImpl_Proxy
source§fn clone(&self) -> UsbAdbImpl_Proxy
fn clone(&self) -> UsbAdbImpl_Proxy
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for UsbAdbImpl_Proxy
impl Debug for UsbAdbImpl_Proxy
source§impl Proxy for UsbAdbImpl_Proxy
impl Proxy for UsbAdbImpl_Proxy
§type Protocol = UsbAdbImpl_Marker
type Protocol = UsbAdbImpl_Marker
Proxy
controls.source§fn from_channel(inner: AsyncChannel) -> Self
fn from_channel(inner: AsyncChannel) -> Self
source§fn into_channel(self) -> Result<AsyncChannel, Self>
fn into_channel(self) -> Result<AsyncChannel, Self>
source§fn as_channel(&self) -> &AsyncChannel
fn as_channel(&self) -> &AsyncChannel
§fn into_client_end(self) -> Result<ClientEnd<Self::Protocol>, Self>
fn into_client_end(self) -> Result<ClientEnd<Self::Protocol>, Self>
source§impl UsbAdbImpl_ProxyInterface for UsbAdbImpl_Proxy
impl UsbAdbImpl_ProxyInterface for UsbAdbImpl_Proxy
type QueueTxResponseFut = QueryResponseFut<Result<(), i32>>
fn queue_tx(&self, data: &[u8]) -> Self::QueueTxResponseFut
type ReceiveResponseFut = QueryResponseFut<Result<Vec<u8>, i32>>
fn receive(&self) -> Self::ReceiveResponseFut
Auto Trait Implementations§
impl Freeze for UsbAdbImpl_Proxy
impl !RefUnwindSafe for UsbAdbImpl_Proxy
impl Send for UsbAdbImpl_Proxy
impl Sync for UsbAdbImpl_Proxy
impl Unpin for UsbAdbImpl_Proxy
impl !UnwindSafe for UsbAdbImpl_Proxy
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)