pub struct ProcessAccessorSynchronousProxy { /* private fields */ }
Implementations§
source§impl ProcessAccessorSynchronousProxy
impl ProcessAccessorSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
sourcepub fn wait_for_event(
&self,
deadline: Time
) -> Result<ProcessAccessorEvent, Error>
pub fn wait_for_event( &self, deadline: Time ) -> Result<ProcessAccessorEvent, Error>
Waits until an event arrives and returns it. It is safe for other threads to make concurrent requests while waiting for an event.
sourcepub fn write_memory(
&self,
address: u64,
content: Vmo,
___deadline: Time
) -> Result<ProcessAccessorWriteMemoryResult, Error>
pub fn write_memory( &self, address: u64, content: Vmo, ___deadline: Time ) -> Result<ProcessAccessorWriteMemoryResult, Error>
Writes the contents of content
to address
in the process memory,
using the vmo content size to determine the number of bytes to write.
sourcepub fn read_memory(
&self,
address: u64,
length: u64,
___deadline: Time
) -> Result<ProcessAccessorReadMemoryResult, Error>
pub fn read_memory( &self, address: u64, length: u64, ___deadline: Time ) -> Result<ProcessAccessorReadMemoryResult, Error>
Returns the length
bytes of the memory of the process at address
in
the content
vmo. Th returned vmo’s content size must always be exactly
length
.
sourcepub fn file_request(
&self,
payload: FileRequest,
___deadline: Time
) -> Result<ProcessAccessorFileRequestResult, Error>
pub fn file_request( &self, payload: FileRequest, ___deadline: Time ) -> Result<ProcessAccessorFileRequestResult, Error>
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.