pub struct SandboxSynchronousProxy { /* private fields */ }
Implementations§
Source§impl SandboxSynchronousProxy
impl SandboxSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
Sourcepub fn wait_for_event(
&self,
deadline: MonotonicInstant,
) -> Result<SandboxEvent, Error>
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> Result<SandboxEvent, 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 create_realm(
&self,
realm: ServerEnd<ManagedRealmMarker>,
options: RealmOptions,
) -> Result<(), Error>
pub fn create_realm( &self, realm: ServerEnd<ManagedRealmMarker>, options: RealmOptions, ) -> Result<(), Error>
Creates a new realm configured by options
.
- request
realm
request handle to the newly created managed realm. - request
options
configures the setup and child components ofrealm
. Ifoptions
is invalid,realm
will be closed.
Errors are presented as an epitaph on the realm
channel.
- error
ZX_ERR_INVALID_ARGS
ifoptions
was invalid. - error
ZX_ERR_INTERNAL
for internal errors, including failures to build the requested component topology.
Sourcepub fn get_network_context(
&self,
network_context: ServerEnd<NetworkContextMarker>,
) -> Result<(), Error>
pub fn get_network_context( &self, network_context: ServerEnd<NetworkContextMarker>, ) -> Result<(), Error>
Gets this sandbox’s network context.
- request
network_context
request handle to the network context.
Trait Implementations§
Source§impl Debug for SandboxSynchronousProxy
impl Debug for SandboxSynchronousProxy
Source§impl SynchronousProxy for SandboxSynchronousProxy
impl SynchronousProxy for SandboxSynchronousProxy
Source§type Proxy = SandboxProxy
type Proxy = SandboxProxy
The async proxy for the same protocol.
Source§type Protocol = SandboxMarker
type Protocol = SandboxMarker
The protocol which this
Proxy
controls.Source§fn from_channel(inner: Channel) -> Self
fn from_channel(inner: Channel) -> Self
Create a proxy over the given channel.
Source§fn into_channel(self) -> Channel
fn into_channel(self) -> Channel
Convert the proxy back into a channel.
Source§fn as_channel(&self) -> &Channel
fn as_channel(&self) -> &Channel
Get a reference to the proxy’s underlying channel. Read more
Auto Trait Implementations§
impl Freeze for SandboxSynchronousProxy
impl RefUnwindSafe for SandboxSynchronousProxy
impl Send for SandboxSynchronousProxy
impl Sync for SandboxSynchronousProxy
impl Unpin for SandboxSynchronousProxy
impl UnwindSafe for SandboxSynchronousProxy
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