pub enum ProcessAccessorRequest {
WriteMemory {
address: u64,
content: Vmo,
responder: ProcessAccessorWriteMemoryResponder,
},
WriteBytes {
address: u64,
bytes: Vec<u8>,
responder: ProcessAccessorWriteBytesResponder,
},
FileRequest {
payload: FileRequest,
responder: ProcessAccessorFileRequestResponder,
},
_UnknownMethod {
ordinal: u64,
control_handle: ProcessAccessorControlHandle,
method_type: MethodType,
},
}
Expand description
Protocol that gives the binder driver access to the client process’ resources.
Variants§
WriteMemory
Writes the contents of content
to address
in the process memory,
using the vmo content size to determine the number of bytes to write.
WriteBytes
Writes the contents of bytes
to address
in the process memory.
WriteBytes
is functionally equivalent to WriteMemory
, but is
optimized for small writes of less than MAX_WRITE_BYTES
.
FileRequest
Execute the given request
and returns the associated response
. Any
failure will interrupt further processing and fail this operation and
the associated errno will be then returned.
The implementator of this protocol should handle these requests as best
it can so that a failure doesn’t have visible side-effects.
_UnknownMethod
An interaction was received which does not match any known method.
Fields
This variant is marked as non-exhaustive
control_handle: ProcessAccessorControlHandle
method_type: MethodType
Implementations§
Source§impl ProcessAccessorRequest
impl ProcessAccessorRequest
pub fn into_write_memory( self, ) -> Option<(u64, Vmo, ProcessAccessorWriteMemoryResponder)>
pub fn into_write_bytes( self, ) -> Option<(u64, Vec<u8>, ProcessAccessorWriteBytesResponder)>
pub fn into_file_request( self, ) -> Option<(FileRequest, ProcessAccessorFileRequestResponder)>
Sourcepub fn method_name(&self) -> &'static str
pub fn method_name(&self) -> &'static str
Name of the method defined in FIDL