pub struct SecureFastRpcSynchronousProxy { /* private fields */ }
Implementations§
Source§impl SecureFastRpcSynchronousProxy
impl SecureFastRpcSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
Sourcepub fn wait_for_event(
&self,
deadline: MonotonicInstant,
) -> Result<SecureFastRpcEvent, Error>
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> Result<SecureFastRpcEvent, 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 get_channel_id(
&self,
___deadline: MonotonicInstant,
) -> Result<SecureFastRpcGetChannelIdResult, Error>
pub fn get_channel_id( &self, ___deadline: MonotonicInstant, ) -> Result<SecureFastRpcGetChannelIdResult, Error>
Used to identify the channel id that this device instance talks to. The channel id is associated with the remote processor target.
Sourcepub fn allocate(
&self,
size: u64,
___deadline: MonotonicInstant,
) -> Result<SecureFastRpcAllocateResult, Error>
pub fn allocate( &self, size: u64, ___deadline: MonotonicInstant, ) -> Result<SecureFastRpcAllocateResult, Error>
Allocate a contiguous region of memory of at least |size|. This memory is meant to be used in |VmoArgument| typed arguments in an |InvokeParameters|. This vmo is owned exclusively by the caller.
Sourcepub fn get_capabilities(
&self,
___deadline: MonotonicInstant,
) -> Result<SecureFastRpcGetCapabilitiesResult, Error>
pub fn get_capabilities( &self, ___deadline: MonotonicInstant, ) -> Result<SecureFastRpcGetCapabilitiesResult, Error>
Get the vector of capabilities from the remote processor.
Sourcepub fn attach_root_domain(
&self,
server: ServerEnd<RemoteDomainMarker>,
___deadline: MonotonicInstant,
) -> Result<SecureFastRpcAttachRootDomainResult, Error>
pub fn attach_root_domain( &self, server: ServerEnd<RemoteDomainMarker>, ___deadline: MonotonicInstant, ) -> Result<SecureFastRpcAttachRootDomainResult, Error>
Attaches to the root (Guest OS) protection domain in the remote processor. This domain can access to the memory of its own protection domain, the memory of the user protection domains, and some system registers.
Sourcepub fn create_static_domain(
&self,
name: &str,
memory_size: u32,
server: ServerEnd<RemoteDomainMarker>,
___deadline: MonotonicInstant,
) -> Result<SecureFastRpcCreateStaticDomainResult, Error>
pub fn create_static_domain( &self, name: &str, memory_size: u32, server: ServerEnd<RemoteDomainMarker>, ___deadline: MonotonicInstant, ) -> Result<SecureFastRpcCreateStaticDomainResult, Error>
Creates the static (user) protection domain identified by |name| on the remote processor. This is provided with a memory of size |memory_size|. This protection domain can access only its own memory. Static domains are created for specific use cases like audio.
Trait Implementations§
Source§impl From<Channel> for SecureFastRpcSynchronousProxy
impl From<Channel> for SecureFastRpcSynchronousProxy
Source§impl From<SecureFastRpcSynchronousProxy> for Handle
impl From<SecureFastRpcSynchronousProxy> for Handle
Source§fn from(value: SecureFastRpcSynchronousProxy) -> Self
fn from(value: SecureFastRpcSynchronousProxy) -> Self
Source§impl FromClient for SecureFastRpcSynchronousProxy
impl FromClient for SecureFastRpcSynchronousProxy
Source§type Protocol = SecureFastRpcMarker
type Protocol = SecureFastRpcMarker
Source§fn from_client(value: ClientEnd<SecureFastRpcMarker>) -> Self
fn from_client(value: ClientEnd<SecureFastRpcMarker>) -> Self
Source§impl SynchronousProxy for SecureFastRpcSynchronousProxy
impl SynchronousProxy for SecureFastRpcSynchronousProxy
Source§type Proxy = SecureFastRpcProxy
type Proxy = SecureFastRpcProxy
Source§type Protocol = SecureFastRpcMarker
type Protocol = SecureFastRpcMarker
Proxy
controls.