pub enum ComponentRunnerRequest {
Start {
start_info: ComponentStartInfo,
controller: ServerEnd<ComponentControllerMarker>,
control_handle: ComponentRunnerControlHandle,
},
_UnknownMethod {
ordinal: u64,
control_handle: ComponentRunnerControlHandle,
method_type: MethodType,
},
}
Expand description
A protocol used for running components.
This protocol is implemented by components which provide a runtime environment for other components.
Note: The component manager is the only intended direct client of this interface.
Variants§
Start
Start running a component instance described by start_info
.
Component manager binds and uses controller
to control the
lifetime of the newly started component instance.
Errors are delivered as epitaphs over the ComponentController
protocol. In the event of an error, the runner must ensure that
resources are cleaned up.
Fields
§
start_info: ComponentStartInfo
§
controller: ServerEnd<ComponentControllerMarker>
§
control_handle: ComponentRunnerControlHandle
_UnknownMethod
An interaction was received which does not match any known method.
Fields
This variant is marked as non-exhaustive
Non-exhaustive enum variants could have additional fields added in future. Therefore, non-exhaustive enum variants cannot be constructed in external crates and cannot be matched against.
§
control_handle: ComponentRunnerControlHandle
§
method_type: MethodType
Implementations§
Source§impl ComponentRunnerRequest
impl ComponentRunnerRequest
pub fn into_start( self, ) -> Option<(ComponentStartInfo, ServerEnd<ComponentControllerMarker>, ComponentRunnerControlHandle)>
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 ComponentRunnerRequest
impl !RefUnwindSafe for ComponentRunnerRequest
impl Send for ComponentRunnerRequest
impl Sync for ComponentRunnerRequest
impl Unpin for ComponentRunnerRequest
impl !UnwindSafe for ComponentRunnerRequest
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