pub enum RemoteDomainRequest {
Close {
control_handle: RemoteDomainControlHandle,
},
GetPayloadBufferSet {
count: u8,
responder: RemoteDomainGetPayloadBufferSetResponder,
},
Invoke {
remote_thread_id: i32,
handle: u32,
method_id: u32,
payload_buffer_id: u32,
input_arguments: Vec<ArgumentEntry>,
output_arguments: Vec<ArgumentEntry>,
responder: RemoteDomainInvokeResponder,
},
_UnknownMethod {
ordinal: u64,
control_handle: RemoteDomainControlHandle,
method_type: MethodType,
},
}
Variants§
Close
Closes down the domain. This will release all resources associated with this domain. The server end will close the channel when this is completed.
Fields
§
control_handle: RemoteDomainControlHandle
GetPayloadBufferSet
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.
Invoke
A user invocation on the remote domain.
Fields
§
input_arguments: Vec<ArgumentEntry>
§
output_arguments: Vec<ArgumentEntry>
§
responder: RemoteDomainInvokeResponder
_UnknownMethod
An interaction was received which does not match any known method.
Fields
This variant is marked as non-exhaustive
Non-exhaustive enum variants could have additional fields added in future. Therefore, non-exhaustive enum variants cannot be constructed in external crates and cannot be matched against.
§
control_handle: RemoteDomainControlHandle
§
method_type: MethodType
Implementations§
Source§impl RemoteDomainRequest
impl RemoteDomainRequest
pub fn into_close(self) -> Option<RemoteDomainControlHandle>
pub fn into_get_payload_buffer_set( self, ) -> Option<(u8, RemoteDomainGetPayloadBufferSetResponder)>
pub fn into_invoke( self, ) -> Option<(i32, u32, u32, u32, Vec<ArgumentEntry>, Vec<ArgumentEntry>, RemoteDomainInvokeResponder)>
Sourcepub fn method_name(&self) -> &'static str
pub fn method_name(&self) -> &'static str
Name of the method defined in FIDL
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RemoteDomainRequest
impl !RefUnwindSafe for RemoteDomainRequest
impl Send for RemoteDomainRequest
impl Sync for RemoteDomainRequest
impl Unpin for RemoteDomainRequest
impl !UnwindSafe for RemoteDomainRequest
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