pub struct Dynamic;
Expand description
A state that models the C API. The Regulator
can be either enabled or
disabled, and the user is in control of the reference count. This is also
the default state.
Use Regulator::is_enabled
to check the regulator’s current state.
Trait Implementations§
Source§impl RegulatorState for Dynamic
impl RegulatorState for Dynamic
Source§const DISABLE_ON_DROP: bool = false
const DISABLE_ON_DROP: bool = false
Whether the regulator should be disabled when dropped.
impl IsEnabled for Dynamic
Auto Trait Implementations§
impl Freeze for Dynamic
impl RefUnwindSafe for Dynamic
impl Send for Dynamic
impl Sync for Dynamic
impl Unpin for Dynamic
impl UnwindSafe for Dynamic
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
Source§impl<T> PinInit<T> for T
impl<T> PinInit<T> for T
Source§unsafe fn __pinned_init(self, slot: *mut T) -> Result<(), Infallible>
unsafe fn __pinned_init(self, slot: *mut T) -> Result<(), Infallible>
Initializes
slot
. Read more