pub struct PowerElementContext {
pub element_control: ElementControlProxy,
pub lessor: LessorProxy,
pub required_level: RequiredLevelProxy,
pub current_level: CurrentLevelProxy,
/* private fields */
}
Fields§
§element_control: ElementControlProxy
§lessor: LessorProxy
§required_level: RequiredLevelProxy
§current_level: CurrentLevelProxy
Implementations§
Source§impl PowerElementContext
impl PowerElementContext
pub fn builder<'a>( topology: &'a TopologyProxy, element_name: &'a str, valid_levels: &'a [PowerLevel], ) -> PowerElementContextBuilder<'a>
pub fn assertive_dependency_token(&self) -> Option<DependencyToken>
pub fn opportunistic_dependency_token(&self) -> Option<DependencyToken>
pub fn name(&self) -> &str
Auto Trait Implementations§
impl Freeze for PowerElementContext
impl !RefUnwindSafe for PowerElementContext
impl Send for PowerElementContext
impl Sync for PowerElementContext
impl Unpin for PowerElementContext
impl !UnwindSafe for PowerElementContext
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