pub struct PowerElementContextBuilder<'a> { /* private fields */ }
Implementations§
Source§impl<'a> PowerElementContextBuilder<'a>
impl<'a> PowerElementContextBuilder<'a>
pub fn new( topology: &'a TopologyProxy, element_name: &'a str, valid_levels: &'a [PowerLevel], ) -> Self
pub fn initial_current_level(self, value: PowerLevel) -> Self
pub fn dependencies(self, value: Vec<LevelDependency>) -> Self
pub fn register_dependency_tokens(self, enable: bool) -> Self
pub async fn build(self) -> Result<PowerElementContext>
Auto Trait Implementations§
impl<'a> Freeze for PowerElementContextBuilder<'a>
impl<'a> !RefUnwindSafe for PowerElementContextBuilder<'a>
impl<'a> Send for PowerElementContextBuilder<'a>
impl<'a> Sync for PowerElementContextBuilder<'a>
impl<'a> Unpin for PowerElementContextBuilder<'a>
impl<'a> !UnwindSafe for PowerElementContextBuilder<'a>
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