pub enum ProcessAccessorRequest {
WriteMemory {
address: u64,
content: Vmo,
responder: ProcessAccessorWriteMemoryResponder,
},
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.
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
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: ProcessAccessorControlHandle
§
method_type: MethodType
Implementations§
Source§impl ProcessAccessorRequest
impl ProcessAccessorRequest
pub fn into_write_memory( self, ) -> Option<(u64, Vmo, ProcessAccessorWriteMemoryResponder)>
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
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ProcessAccessorRequest
impl !RefUnwindSafe for ProcessAccessorRequest
impl Send for ProcessAccessorRequest
impl Sync for ProcessAccessorRequest
impl Unpin for ProcessAccessorRequest
impl !UnwindSafe for ProcessAccessorRequest
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