pub enum ManagerRequest {
ProposeElement {
spec: Spec,
controller: Option<ServerEnd<ControllerMarker>>,
responder: ManagerProposeElementResponder,
},
RemoveElement {
name: String,
responder: ManagerRemoveElementResponder,
},
}
Expand description
An interface used to add elements to a session.
An element is a component that is expected to be instantiated as a child of the session and (optionally) to interact with the user in some way.
The session will typically implement Manager
and route it where needed.
For tools like ffx session add
to work, the session must expose Manager
to its parent.
For example, a component in the session may be a non-interactive application that
listens to the network for a command to display an element to the user.
When it receives the command, the component calls ProposeElement()
.
Variants§
ProposeElement
RemoveElement
Removes the element identified by name
from the session. If the element is a persistent
element, it is removed permanently. Any persistent storage that the element might have used
is left untouched.
Implementations§
Source§impl ManagerRequest
impl ManagerRequest
pub fn into_propose_element( self, ) -> Option<(Spec, Option<ServerEnd<ControllerMarker>>, ManagerProposeElementResponder)>
pub fn into_remove_element( self, ) -> Option<(String, ManagerRemoveElementResponder)>
Sourcepub fn method_name(&self) -> &'static str
pub fn method_name(&self) -> &'static str
Name of the method defined in FIDL