pub struct FDomainProxy { /* private fields */ }
Implementations§
Source§impl FDomainProxy
impl FDomainProxy
Sourcepub fn take_event_stream(&self) -> FDomainEventStream
pub fn take_event_stream(&self) -> FDomainEventStream
Get a Stream of events from the remote end of the protocol.
§Panics
Panics if the event stream was already taken.
pub fn create_channel( &self, handles: &[NewHid; 2], ) -> QueryResponseFut<ChannelCreateChannelResult, DefaultFuchsiaResourceDialect>
pub fn read_channel( &self, handle: &Hid, ) -> QueryResponseFut<ChannelReadChannelResult, DefaultFuchsiaResourceDialect>
pub fn write_channel( &self, handle: &Hid, data: &[u8], handles: &Handles, ) -> QueryResponseFut<ChannelWriteChannelResult, DefaultFuchsiaResourceDialect>
pub fn read_channel_streaming_start( &self, handle: &Hid, ) -> QueryResponseFut<ChannelReadChannelStreamingStartResult, DefaultFuchsiaResourceDialect>
pub fn read_channel_streaming_stop( &self, handle: &Hid, ) -> QueryResponseFut<ChannelReadChannelStreamingStopResult, DefaultFuchsiaResourceDialect>
pub fn create_event( &self, handle: &NewHid, ) -> QueryResponseFut<EventCreateEventResult, DefaultFuchsiaResourceDialect>
pub fn create_event_pair( &self, handles: &[NewHid; 2], ) -> QueryResponseFut<EventPairCreateEventPairResult, DefaultFuchsiaResourceDialect>
pub fn create_socket( &self, options: SocketType, handles: &[NewHid; 2], ) -> QueryResponseFut<SocketCreateSocketResult, DefaultFuchsiaResourceDialect>
pub fn set_socket_disposition( &self, handle: &Hid, disposition: SocketDisposition, disposition_peer: SocketDisposition, ) -> QueryResponseFut<SocketSetSocketDispositionResult, DefaultFuchsiaResourceDialect>
pub fn read_socket( &self, handle: &Hid, max_bytes: u64, ) -> QueryResponseFut<SocketReadSocketResult, DefaultFuchsiaResourceDialect>
pub fn write_socket( &self, handle: &Hid, data: &[u8], ) -> QueryResponseFut<SocketWriteSocketResult, DefaultFuchsiaResourceDialect>
pub fn read_socket_streaming_start( &self, handle: &Hid, ) -> QueryResponseFut<SocketReadSocketStreamingStartResult, DefaultFuchsiaResourceDialect>
pub fn read_socket_streaming_stop( &self, handle: &Hid, ) -> QueryResponseFut<SocketReadSocketStreamingStopResult, DefaultFuchsiaResourceDialect>
pub fn namespace( &self, new_handle: &NewHid, ) -> QueryResponseFut<FDomainNamespaceResult, DefaultFuchsiaResourceDialect>
pub fn close( &self, handles: &[Hid], ) -> QueryResponseFut<FDomainCloseResult, DefaultFuchsiaResourceDialect>
pub fn duplicate( &self, handle: &Hid, new_handle: &NewHid, rights: Rights, ) -> QueryResponseFut<FDomainDuplicateResult, DefaultFuchsiaResourceDialect>
pub fn replace( &self, handle: &Hid, new_handle: &NewHid, rights: Rights, ) -> QueryResponseFut<FDomainReplaceResult, DefaultFuchsiaResourceDialect>
pub fn signal( &self, handle: &Hid, set: u32, clear: u32, ) -> QueryResponseFut<FDomainSignalResult, DefaultFuchsiaResourceDialect>
pub fn signal_peer( &self, handle: &Hid, set: u32, clear: u32, ) -> QueryResponseFut<FDomainSignalPeerResult, DefaultFuchsiaResourceDialect>
pub fn wait_for_signals( &self, handle: &Hid, signals: u32, ) -> QueryResponseFut<FDomainWaitForSignalsResult, DefaultFuchsiaResourceDialect>
pub fn acknowledge_write_error( &self, handle: &Hid, ) -> QueryResponseFut<FDomainAcknowledgeWriteErrorResult, DefaultFuchsiaResourceDialect>
Trait Implementations§
Source§impl Clone for FDomainProxy
impl Clone for FDomainProxy
Source§fn clone(&self) -> FDomainProxy
fn clone(&self) -> FDomainProxy
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for FDomainProxy
impl Debug for FDomainProxy
Source§impl FDomainProxyInterface for FDomainProxy
impl FDomainProxyInterface for FDomainProxy
type CreateChannelResponseFut = QueryResponseFut<Result<(), Error>>
type ReadChannelResponseFut = QueryResponseFut<Result<(Vec<u8>, Vec<HandleInfo>), Error>>
type WriteChannelResponseFut = QueryResponseFut<Result<(), WriteChannelError>>
type ReadChannelStreamingStartResponseFut = QueryResponseFut<Result<(), Error>>
type ReadChannelStreamingStopResponseFut = QueryResponseFut<Result<(), Error>>
type CreateEventResponseFut = QueryResponseFut<Result<(), Error>>
type CreateEventPairResponseFut = QueryResponseFut<Result<(), Error>>
type CreateSocketResponseFut = QueryResponseFut<Result<(), Error>>
type SetSocketDispositionResponseFut = QueryResponseFut<Result<(), Error>>
type ReadSocketResponseFut = QueryResponseFut<Result<Vec<u8>, Error>>
type WriteSocketResponseFut = QueryResponseFut<Result<u64, WriteSocketError>>
type ReadSocketStreamingStartResponseFut = QueryResponseFut<Result<(), Error>>
type ReadSocketStreamingStopResponseFut = QueryResponseFut<Result<(), Error>>
type NamespaceResponseFut = QueryResponseFut<Result<(), Error>>
type CloseResponseFut = QueryResponseFut<Result<(), Error>>
type DuplicateResponseFut = QueryResponseFut<Result<(), Error>>
type ReplaceResponseFut = QueryResponseFut<Result<(), Error>>
type SignalResponseFut = QueryResponseFut<Result<(), Error>>
type SignalPeerResponseFut = QueryResponseFut<Result<(), Error>>
type WaitForSignalsResponseFut = QueryResponseFut<Result<u32, Error>>
type AcknowledgeWriteErrorResponseFut = QueryResponseFut<Result<(), Error>>
fn create_channel( &self, handles: &[NewHid; 2], ) -> Self::CreateChannelResponseFut
fn read_channel(&self, handle: &Hid) -> Self::ReadChannelResponseFut
fn write_channel( &self, handle: &Hid, data: &[u8], handles: &Handles, ) -> Self::WriteChannelResponseFut
fn read_channel_streaming_start( &self, handle: &Hid, ) -> Self::ReadChannelStreamingStartResponseFut
fn read_channel_streaming_stop( &self, handle: &Hid, ) -> Self::ReadChannelStreamingStopResponseFut
fn create_event(&self, handle: &NewHid) -> Self::CreateEventResponseFut
fn create_event_pair( &self, handles: &[NewHid; 2], ) -> Self::CreateEventPairResponseFut
fn create_socket( &self, options: SocketType, handles: &[NewHid; 2], ) -> Self::CreateSocketResponseFut
fn set_socket_disposition( &self, handle: &Hid, disposition: SocketDisposition, disposition_peer: SocketDisposition, ) -> Self::SetSocketDispositionResponseFut
fn read_socket( &self, handle: &Hid, max_bytes: u64, ) -> Self::ReadSocketResponseFut
fn write_socket( &self, handle: &Hid, data: &[u8], ) -> Self::WriteSocketResponseFut
fn read_socket_streaming_start( &self, handle: &Hid, ) -> Self::ReadSocketStreamingStartResponseFut
fn read_socket_streaming_stop( &self, handle: &Hid, ) -> Self::ReadSocketStreamingStopResponseFut
fn namespace(&self, new_handle: &NewHid) -> Self::NamespaceResponseFut
fn close(&self, handles: &[Hid]) -> Self::CloseResponseFut
fn duplicate( &self, handle: &Hid, new_handle: &NewHid, rights: Rights, ) -> Self::DuplicateResponseFut
fn replace( &self, handle: &Hid, new_handle: &NewHid, rights: Rights, ) -> Self::ReplaceResponseFut
fn signal(&self, handle: &Hid, set: u32, clear: u32) -> Self::SignalResponseFut
fn signal_peer( &self, handle: &Hid, set: u32, clear: u32, ) -> Self::SignalPeerResponseFut
fn wait_for_signals( &self, handle: &Hid, signals: u32, ) -> Self::WaitForSignalsResponseFut
fn acknowledge_write_error( &self, handle: &Hid, ) -> Self::AcknowledgeWriteErrorResponseFut
Source§impl Proxy for FDomainProxy
impl Proxy for FDomainProxy
Source§type Protocol = FDomainMarker
type Protocol = FDomainMarker
The protocol which this
Proxy
controls.Source§fn from_channel(inner: AsyncChannel) -> Self
fn from_channel(inner: AsyncChannel) -> Self
Create a proxy over the given channel.
Source§fn into_channel(self) -> Result<AsyncChannel, Self>
fn into_channel(self) -> Result<AsyncChannel, Self>
Attempt to convert the proxy back into a channel. Read more
Source§fn as_channel(&self) -> &AsyncChannel
fn as_channel(&self) -> &AsyncChannel
Get a reference to the proxy’s underlying channel. Read more
§fn into_client_end(self) -> Result<ClientEnd<Self::Protocol>, Self>
fn into_client_end(self) -> Result<ClientEnd<Self::Protocol>, Self>
Attempt to convert the proxy back into a client end. Read more
Auto Trait Implementations§
impl Freeze for FDomainProxy
impl !RefUnwindSafe for FDomainProxy
impl Send for FDomainProxy
impl Sync for FDomainProxy
impl Unpin for FDomainProxy
impl !UnwindSafe for FDomainProxy
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
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)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> ProxyHasClient for Twhere
T: Proxy,
impl<T> ProxyHasClient for Twhere
T: Proxy,
§fn client(&self) -> Result<ZirconClient, Infallible>
fn client(&self) -> Result<ZirconClient, Infallible>
Get a “client” for this proxy. This is just an object which has methods
for a few common handle creation operations.