pub struct ProcessAccessorProxy { /* private fields */ }
Implementations§
Source§impl ProcessAccessorProxy
impl ProcessAccessorProxy
Sourcepub fn new(channel: AsyncChannel) -> Self
pub fn new(channel: AsyncChannel) -> Self
Create a new Proxy for fuchsia.starnix.binder/ProcessAccessor.
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 protocol.
§Panics
Panics if the event stream was already taken.
Sourcepub fn write_memory(
&self,
address: u64,
content: Vmo,
) -> QueryResponseFut<ProcessAccessorWriteMemoryResult, DefaultFuchsiaResourceDialect>
pub fn write_memory( &self, address: u64, content: Vmo, ) -> QueryResponseFut<ProcessAccessorWriteMemoryResult, DefaultFuchsiaResourceDialect>
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 write_bytes(
&self,
address: u64,
bytes: &[u8],
) -> QueryResponseFut<ProcessAccessorWriteBytesResult, DefaultFuchsiaResourceDialect>
pub fn write_bytes( &self, address: u64, bytes: &[u8], ) -> QueryResponseFut<ProcessAccessorWriteBytesResult, DefaultFuchsiaResourceDialect>
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
.
Sourcepub fn file_request(
&self,
payload: FileRequest,
) -> QueryResponseFut<ProcessAccessorFileRequestResult, DefaultFuchsiaResourceDialect>
pub fn file_request( &self, payload: FileRequest, ) -> QueryResponseFut<ProcessAccessorFileRequestResult, DefaultFuchsiaResourceDialect>
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
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
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>>
type WriteBytesResponseFut = QueryResponseFut<Result<(), Errno>>
type FileRequestResponseFut = QueryResponseFut<Result<FileResponse, Errno>>
fn write_memory( &self, address: u64, content: Vmo, ) -> Self::WriteMemoryResponseFut
fn write_bytes(&self, address: u64, bytes: &[u8]) -> Self::WriteBytesResponseFut
fn file_request(&self, payload: FileRequest) -> Self::FileRequestResponseFut
Source§impl Proxy for ProcessAccessorProxy
impl Proxy for ProcessAccessorProxy
Source§type Protocol = ProcessAccessorMarker
type Protocol = ProcessAccessorMarker
Proxy
controls.