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
Source§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>
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)