pub enum ChildRealmRequest {
Stop {
control_handle: ChildRealmControlHandle,
},
StopChildren {
responder: ChildRealmStopChildrenResponder,
},
CreateChildren {
direct_children: u16,
tree_height: u16,
responder: ChildRealmCreateChildrenResponder,
},
}
Expand description
The way for parent to conrtol lifecycle of its child in a stress test.
Variants§
Stop
Component will gracefully exit.
Fields
§
control_handle: ChildRealmControlHandle
StopChildren
Fields
§
responder: ChildRealmStopChildrenResponder
CreateChildren
Create nested children in this realm.
direct_children
- Num of direct children of this realm.
tree_height
- Height of the realm tree to create.
Returns once all children are running.
Implementations§
Source§impl ChildRealmRequest
impl ChildRealmRequest
pub fn into_stop(self) -> Option<ChildRealmControlHandle>
pub fn into_stop_children(self) -> Option<ChildRealmStopChildrenResponder>
pub fn into_create_children( self, ) -> Option<(u16, u16, ChildRealmCreateChildrenResponder)>
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 ChildRealmRequest
impl !RefUnwindSafe for ChildRealmRequest
impl Send for ChildRealmRequest
impl Sync for ChildRealmRequest
impl Unpin for ChildRealmRequest
impl !UnwindSafe for ChildRealmRequest
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