pub struct RemoteDomainProxy { /* private fields */ }
Implementations§
Source§impl RemoteDomainProxy
impl RemoteDomainProxy
Sourcepub fn new(channel: AsyncChannel) -> Self
pub fn new(channel: AsyncChannel) -> Self
Create a new Proxy for fuchsia.hardware.qualcomm.fastrpc/RemoteDomain.
Sourcepub fn take_event_stream(&self) -> RemoteDomainEventStream
pub fn take_event_stream(&self) -> RemoteDomainEventStream
Get a Stream of events from the remote end of the protocol.
§Panics
Panics if the event stream was already taken.
Sourcepub fn close(&self) -> Result<(), Error>
pub fn close(&self) -> Result<(), Error>
Closes down the domain. This will release all resources associated with this domain. The server end will close the channel when this is completed.
Sourcepub fn get_payload_buffer_set(
&self,
count: u8,
) -> QueryResponseFut<RemoteDomainGetPayloadBufferSetResult, DefaultFuchsiaResourceDialect>
pub fn get_payload_buffer_set( &self, count: u8, ) -> QueryResponseFut<RemoteDomainGetPayloadBufferSetResult, DefaultFuchsiaResourceDialect>
Requests |count| payload buffers from the driver. The returned vector of buffers should be managed by the client entirely. When making an |Invoke| request, the client can provide the |id| of the buffer of their chosing inside the |payload_buffer_id|. The client should ensure only 1 invoke is active for each of these buffers.
Sourcepub fn invoke(
&self,
remote_thread_id: i32,
handle: u32,
method_id: u32,
payload_buffer_id: u32,
input_arguments: Vec<ArgumentEntry>,
output_arguments: Vec<ArgumentEntry>,
) -> QueryResponseFut<RemoteDomainInvokeResult, DefaultFuchsiaResourceDialect>
pub fn invoke( &self, remote_thread_id: i32, handle: u32, method_id: u32, payload_buffer_id: u32, input_arguments: Vec<ArgumentEntry>, output_arguments: Vec<ArgumentEntry>, ) -> QueryResponseFut<RemoteDomainInvokeResult, DefaultFuchsiaResourceDialect>
A user invocation on the remote domain.
Trait Implementations§
Source§impl Clone for RemoteDomainProxy
impl Clone for RemoteDomainProxy
Source§fn clone(&self) -> RemoteDomainProxy
fn clone(&self) -> RemoteDomainProxy
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 RemoteDomainProxy
impl Debug for RemoteDomainProxy
Source§impl Proxy for RemoteDomainProxy
impl Proxy for RemoteDomainProxy
Source§type Protocol = RemoteDomainMarker
type Protocol = RemoteDomainMarker
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
Source§impl RemoteDomainProxyInterface for RemoteDomainProxy
impl RemoteDomainProxyInterface for RemoteDomainProxy
type GetPayloadBufferSetResponseFut = QueryResponseFut<Result<Vec<SharedPayloadBuffer>, i32>>
type InvokeResponseFut = QueryResponseFut<Result<(), i32>>
fn close(&self) -> Result<(), Error>
fn get_payload_buffer_set( &self, count: u8, ) -> Self::GetPayloadBufferSetResponseFut
fn invoke( &self, remote_thread_id: i32, handle: u32, method_id: u32, payload_buffer_id: u32, input_arguments: Vec<ArgumentEntry>, output_arguments: Vec<ArgumentEntry>, ) -> Self::InvokeResponseFut
Auto Trait Implementations§
impl Freeze for RemoteDomainProxy
impl !RefUnwindSafe for RemoteDomainProxy
impl Send for RemoteDomainProxy
impl Sync for RemoteDomainProxy
impl Unpin for RemoteDomainProxy
impl !UnwindSafe for RemoteDomainProxy
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,
§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> FromClient for Twhere
T: Proxy,
impl<T> FromClient for Twhere
T: Proxy,
§fn from_client(value: ClientEnd<<T as FromClient>::Protocol>) -> T
fn from_client(value: ClientEnd<<T as FromClient>::Protocol>) -> T
Converts from a client.