pub struct JoinedSession { /* private fields */ }Expand description
A secondary-installer view of an existing session.
This role can only register resources, inspect its key, and end. This
typestate is Send.
Implementations§
Source§impl JoinedSession
impl JoinedSession
Sourcepub fn join(key: &SessionKey) -> Result<Self>
pub fn join(key: &SessionKey) -> Result<Self>
Joins a session created by a primary installer.
Sourcepub fn session_key(&self) -> &SessionKey
pub fn session_key(&self) -> &SessionKey
Returns the key used by this joined session.
Sourcepub fn register_resources(&mut self, resources: &ResourceBatch) -> Result<()>
pub fn register_resources(&mut self, resources: &ResourceBatch) -> Result<()>
Registers a mixed collection in one native call.
Sourcepub fn register_files<I, P>(&mut self, files: I) -> Result<()>
pub fn register_files<I, P>(&mut self, files: I) -> Result<()>
Registers file paths.
Sourcepub fn register_processes<I, P>(&mut self, processes: I) -> Result<()>
pub fn register_processes<I, P>(&mut self, processes: I) -> Result<()>
Registers exact process identities from any iterator.
Sourcepub fn register_services<I, S>(&mut self, services: I) -> Result<()>
pub fn register_services<I, S>(&mut self, services: I) -> Result<()>
Registers Windows services by short name.
Auto Trait Implementations§
impl Freeze for JoinedSession
impl RefUnwindSafe for JoinedSession
impl Send for JoinedSession
impl Sync for JoinedSession
impl Unpin for JoinedSession
impl UnsafeUnpin for JoinedSession
impl UnwindSafe for JoinedSession
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