#[non_exhaustive]pub enum PowerSourceRequest {
FixedSupply(FixedSupplyRequest),
}Expand description
Types of power source requests that a device can send to the policy engine.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
FixedSupply(FixedSupplyRequest)
Request a fixed supply voltage.
Trait Implementations§
Source§impl Clone for PowerSourceRequest
impl Clone for PowerSourceRequest
Source§fn clone(&self) -> PowerSourceRequest
fn clone(&self) -> PowerSourceRequest
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PowerSourceRequest
impl Debug for PowerSourceRequest
impl Copy for PowerSourceRequest
Auto Trait Implementations§
impl Freeze for PowerSourceRequest
impl RefUnwindSafe for PowerSourceRequest
impl Send for PowerSourceRequest
impl Sync for PowerSourceRequest
impl Unpin for PowerSourceRequest
impl UnwindSafe for PowerSourceRequest
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T, U> UnsafeFrom<U> for Twhere
U: Into<T>,
impl<T, U> UnsafeFrom<U> for Twhere
U: Into<T>,
Source§unsafe fn unsafe_from(other: U) -> T
unsafe fn unsafe_from(other: U) -> T
Calls U::into(other).
That is, this conversion is whatever the implementation of Into<T> for U chooses to
do.
Source§impl<T, U> UnsafeInto<U> for Twhere
U: UnsafeFrom<T>,
impl<T, U> UnsafeInto<U> for Twhere
U: UnsafeFrom<T>,
Source§unsafe fn unsafe_into(self) -> U
unsafe fn unsafe_into(self) -> U
Calls U::unsafe_from(self).
That is, this conversion is whatever the implementation of UnsafeFrom<T> for U
chooses to do.