pub struct ProcessAccessorProxy { /* private fields */ }
Implementations§
source§impl ProcessAccessorProxy
impl ProcessAccessorProxy
sourcepub fn take_event_stream(&self) -> ProcessAccessorEventStream
pub fn take_event_stream(&self) -> ProcessAccessorEventStream
Get a Stream of events from the remote end of the ProcessAccessor protocol
Panics
Panics if the event stream was already taken.
sourcepub fn write_memory(
&self,
address: u64,
content: Vmo
) -> QueryResponseFut<ProcessAccessorWriteMemoryResult>
pub fn write_memory( &self, address: u64, content: Vmo ) -> QueryResponseFut<ProcessAccessorWriteMemoryResult>
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
) -> QueryResponseFut<ProcessAccessorReadMemoryResult>
pub fn read_memory( &self, address: u64, length: u64 ) -> QueryResponseFut<ProcessAccessorReadMemoryResult>
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
) -> QueryResponseFut<ProcessAccessorFileRequestResult>
pub fn file_request( &self, payload: FileRequest ) -> QueryResponseFut<ProcessAccessorFileRequestResult>
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.
Trait Implementations§
source§impl Clone for ProcessAccessorProxy
impl Clone for ProcessAccessorProxy
source§fn clone(&self) -> ProcessAccessorProxy
fn clone(&self) -> ProcessAccessorProxy
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 ProcessAccessorProxy
impl Debug for ProcessAccessorProxy
source§impl ProcessAccessorProxyInterface for ProcessAccessorProxy
impl ProcessAccessorProxyInterface for ProcessAccessorProxy
type WriteMemoryResponseFut = QueryResponseFut<Result<(), Errno>>
fn write_memory( &self, address: u64, content: Vmo ) -> Self::WriteMemoryResponseFut
type ReadMemoryResponseFut = QueryResponseFut<Result<Vmo, Errno>>
fn read_memory(&self, address: u64, length: u64) -> Self::ReadMemoryResponseFut
type FileRequestResponseFut = QueryResponseFut<Result<FileResponse, Errno>>
fn file_request(&self, payload: FileRequest) -> Self::FileRequestResponseFut
source§impl Proxy for ProcessAccessorProxy
impl Proxy for ProcessAccessorProxy
§type Protocol = ProcessAccessorMarker
type Protocol = ProcessAccessorMarker
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