pub enum SessionmgrRequest {
Initialize {
session_id: String,
session_context: ClientEnd<SessionContextMarker>,
additional_services_for_agents: ServiceList,
services_from_sessionmgr: ServerEnd<DirectoryMarker>,
view_params: Option<Box<ViewParams>>,
control_handle: SessionmgrControlHandle,
},
}
Expand description
The basemgr application (there is no Basemgr
service) requests
an instance of this service in order to launch and display a Sessionmgr
.
Variants§
Initialize
Fields
session_context: ClientEnd<SessionContextMarker>
additional_services_for_agents: ServiceList
services_from_sessionmgr: ServerEnd<DirectoryMarker>
view_params: Option<Box<ViewParams>>
control_handle: SessionmgrControlHandle
Launches a sessionmgr instance identified by a unique device-local
session_id
. The uniqueness of session_id
must be guaranteed by the
caller, because sessionmgr
creates an Environment namespace with the
given session_id
, and this will crash if we try to create an
environment with a pre-existing name, because the services sessionmgr
tries to access won’t be available.
additional_services_for_agents
is currently used by basemgr
to
expose specified services from CFv2 components to sessionmgr
so they
can be used by CFv1 components.
services_from_sessionmgr
is a handle to a subdirectory
(/svc_from_v1_sessionmgr
) in the caller’s (basemgr’s) outgoing
directory, which should be populated by sessionmgr with services from
CFv1 components (such as agent services and modular APIs like
PuppetMaster) so they can also be used by CFv2 components hosted by
basemgr.
Implementations§
source§impl SessionmgrRequest
impl SessionmgrRequest
pub fn into_initialize( self ) -> Option<(String, ClientEnd<SessionContextMarker>, ServiceList, ServerEnd<DirectoryMarker>, Option<Box<ViewParams>>, SessionmgrControlHandle)>
sourcepub fn method_name(&self) -> &'static str
pub fn method_name(&self) -> &'static str
Name of the method defined in FIDL