pub enum BuilderRequest {
Build {
runner: ClientEnd<ComponentRunnerMarker>,
responder: BuilderBuildResponder,
},
}
Variants§
Build
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.
Implementations§
Source§impl BuilderRequest
impl BuilderRequest
pub fn into_build( self, ) -> Option<(ClientEnd<ComponentRunnerMarker>, BuilderBuildResponder)>
Sourcepub fn method_name(&self) -> &'static str
pub fn method_name(&self) -> &'static str
Name of the method defined in FIDL
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BuilderRequest
impl !RefUnwindSafe for BuilderRequest
impl Send for BuilderRequest
impl Sync for BuilderRequest
impl Unpin for BuilderRequest
impl !UnwindSafe for BuilderRequest
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