pub struct BuilderSynchronousProxy { /* private fields */ }
Implementations§
Source§impl BuilderSynchronousProxy
impl BuilderSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
Sourcepub fn wait_for_event(
&self,
deadline: MonotonicInstant,
) -> Result<BuilderEvent, Error>
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> Result<BuilderEvent, 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 build(
&self,
runner: ClientEnd<ComponentRunnerMarker>,
___deadline: MonotonicInstant,
) -> Result<BuilderBuildResult, Error>
pub fn build( &self, runner: ClientEnd<ComponentRunnerMarker>, ___deadline: MonotonicInstant, ) -> Result<BuilderBuildResult, Error>
Assembles the realm being constructed and returns the URL for the root
component in the realm, which may then be used to create a new component
in any collection where fuchsia-test-component is properly set up. Once
this is called, any Realm channels for the realm will no longer be
usable. The runner
argument must be provided if the AddLocalChild
function has been used in this realm, as this runner channel will be
used to inform the client when to start and stop running any local
component implementations.
Errors:
INVALID_COMPONENT_DECL
: A component declaration failed validaiton.BUILD_ALREADY_CALLED
: TheBuild
function has been called multiple times on this channel.
Trait Implementations§
Source§impl Debug for BuilderSynchronousProxy
impl Debug for BuilderSynchronousProxy
Source§impl SynchronousProxy for BuilderSynchronousProxy
impl SynchronousProxy for BuilderSynchronousProxy
Source§type Proxy = BuilderProxy
type Proxy = BuilderProxy
The async proxy for the same protocol.
Source§type Protocol = BuilderMarker
type Protocol = BuilderMarker
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 BuilderSynchronousProxy
impl RefUnwindSafe for BuilderSynchronousProxy
impl Send for BuilderSynchronousProxy
impl Sync for BuilderSynchronousProxy
impl Unpin for BuilderSynchronousProxy
impl UnwindSafe for BuilderSynchronousProxy
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