pub struct PowerElement {
pub name: Option<String>,
pub levels: Option<Vec<PowerLevel>>,
/* private fields */
}
Expand description
Set of PowerLevel
s and a human-readable identifier. A PowerLevel
itself
contains information about valid transitions out of that level.
Fields§
§name: Option<String>
§levels: Option<Vec<PowerLevel>>
Trait Implementations§
Source§impl Clone for PowerElement
impl Clone for PowerElement
Source§fn clone(&self) -> PowerElement
fn clone(&self) -> PowerElement
Returns a duplicate 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 PowerElement
impl Debug for PowerElement
Source§impl<D: ResourceDialect> Decode<PowerElement, D> for PowerElement
impl<D: ResourceDialect> Decode<PowerElement, D> for PowerElement
Source§impl Default for PowerElement
impl Default for PowerElement
Source§fn default() -> PowerElement
fn default() -> PowerElement
Returns the “default value” for a type. Read more
Source§impl<D: ResourceDialect> Encode<PowerElement, D> for &PowerElement
impl<D: ResourceDialect> Encode<PowerElement, D> for &PowerElement
Source§impl PartialEq for PowerElement
impl PartialEq for PowerElement
Source§impl TypeMarker for PowerElement
impl TypeMarker for PowerElement
Source§type Owned = PowerElement
type Owned = PowerElement
The owned Rust type which this FIDL type decodes into.
Source§fn inline_align(_context: Context) -> usize
fn inline_align(_context: Context) -> usize
Returns the minimum required alignment of the inline portion of the
encoded object. It must be a (nonzero) power of two.
Source§fn inline_size(_context: Context) -> usize
fn inline_size(_context: Context) -> usize
Returns the size of the inline portion of the encoded object, including
padding for alignment. Must be a multiple of
inline_align
.§fn encode_is_copy() -> bool
fn encode_is_copy() -> bool
Returns true if the memory layout of
Self::Owned
matches the FIDL wire
format and encoding requires no validation. When true, we can optimize
encoding arrays and vectors of Self::Owned
to a single memcpy. Read more§fn decode_is_copy() -> bool
fn decode_is_copy() -> bool
Returns true if the memory layout of
Self::Owned
matches the FIDL wire
format and decoding requires no validation. When true, we can optimize
decoding arrays and vectors of Self::Owned
to a single memcpy.Source§impl ValueTypeMarker for PowerElement
impl ValueTypeMarker for PowerElement
Source§type Borrowed<'a> = &'a PowerElement
type Borrowed<'a> = &'a PowerElement
The Rust type to use for encoding. This is a particular
Encode<Self>
type cheaply obtainable from &Self::Owned
. There are three cases: Read moreimpl Persistable for PowerElement
impl StructuralPartialEq for PowerElement
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§
§impl<T> Body for Twhere
T: Persistable,
impl<T> Body for Twhere
T: Persistable,
§type MarkerAtTopLevel = T
type MarkerAtTopLevel = T
The marker type to use when the body is at the top-level.
§type MarkerInResultUnion = T
type MarkerInResultUnion = T
The marker type to use when the body is nested in a result union.
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