pub struct SessionmgrProxy { /* private fields */ }
Implementations§
source§impl SessionmgrProxy
impl SessionmgrProxy
sourcepub fn take_event_stream(&self) -> SessionmgrEventStream
pub fn take_event_stream(&self) -> SessionmgrEventStream
Get a Stream of events from the remote end of the Sessionmgr protocol
Panics
Panics if the event stream was already taken.
sourcepub fn initialize(
&self,
session_id: &str,
session_context: ClientEnd<SessionContextMarker>,
additional_services_for_agents: &mut ServiceList,
services_from_sessionmgr: ServerEnd<DirectoryMarker>,
view_params: Option<&mut ViewParams>
) -> Result<(), Error>
pub fn initialize( &self, session_id: &str, session_context: ClientEnd<SessionContextMarker>, additional_services_for_agents: &mut ServiceList, services_from_sessionmgr: ServerEnd<DirectoryMarker>, view_params: Option<&mut ViewParams> ) -> Result<(), Error>
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.
Trait Implementations§
source§impl Clone for SessionmgrProxy
impl Clone for SessionmgrProxy
source§fn clone(&self) -> SessionmgrProxy
fn clone(&self) -> SessionmgrProxy
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for SessionmgrProxy
impl Debug for SessionmgrProxy
source§impl Proxy for SessionmgrProxy
impl Proxy for SessionmgrProxy
§type Protocol = SessionmgrMarker
type Protocol = SessionmgrMarker
Proxy
controls.