pub struct PowerElement { /* private fields */ }
Expand description
A power element representing the session.
This power element is owned and registered by session_manager
. This power element is
added in the power topology as a dependent on the Application Activity element that is
owned by the SAG.
After session_manager
starts, a power-on lease will be created and retained.
The session component may fetch the lease from session_manager
and decide when to
drop it.
When stopping or restarting the session, the power element and the power-on lease will be recreated, returning thing to the initial started state.
Implementations§
Auto Trait Implementations§
impl Freeze for PowerElement
impl !RefUnwindSafe for PowerElement
impl Send for PowerElement
impl Sync for PowerElement
impl Unpin for PowerElement
impl !UnwindSafe for PowerElement
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