pub struct LeaseDependency {
pub requires_token: Option<Event>,
pub requires_level: Option<u8>,
pub requires_level_by_preference: Option<Vec<u8>>,
/* private fields */
}Fields§
§requires_token: Option<Event>Must supply a token registered via the RegisterDependencyToken call of the required element’s ElementControl protocol.
requires_level: Option<u8>Level of the element required. Most clients will want to use this, but for forward compatibility, requires_level_by_preference may be used instead.
requires_level_by_preference: Option<Vec<u8>>Advanced Options
(Optional) For forward compatibility, the list of levels in decreasing
preferential order that power broker should attempt to make required for
this dependency to be satisfied. The first level in list that is a valid
level will become the required level. If this is set, requires_level
will be ignored.
Platform clients can use this list to keep backwards compatibility with dependencies by providing multiple levels that the dependency may have implemented in older API levels.
Trait Implementations§
Source§impl Debug for LeaseDependency
impl Debug for LeaseDependency
Source§impl Decode<LeaseDependency, DefaultFuchsiaResourceDialect> for LeaseDependency
impl Decode<LeaseDependency, DefaultFuchsiaResourceDialect> for LeaseDependency
Source§impl Default for LeaseDependency
impl Default for LeaseDependency
Source§fn default() -> LeaseDependency
fn default() -> LeaseDependency
Source§impl Encode<LeaseDependency, DefaultFuchsiaResourceDialect> for &mut LeaseDependency
impl Encode<LeaseDependency, DefaultFuchsiaResourceDialect> for &mut LeaseDependency
Source§impl PartialEq for LeaseDependency
impl PartialEq for LeaseDependency
Source§impl ResourceTypeMarker for LeaseDependency
impl ResourceTypeMarker for LeaseDependency
Source§type Borrowed<'a> = &'a mut LeaseDependency
type Borrowed<'a> = &'a mut LeaseDependency
Encode<Self>
type cheaply obtainable from &mut Self::Owned. There are three cases: Read moreSource§fn take_or_borrow<'a>(
value: &'a mut <Self as TypeMarker>::Owned,
) -> Self::Borrowed<'a>
fn take_or_borrow<'a>( value: &'a mut <Self as TypeMarker>::Owned, ) -> Self::Borrowed<'a>
&mut Self::Owned to Self::Borrowed. For
HandleBased types this is “take” (it returns an owned handle and
replaces value with Handle::invalid), and for all other types it is
“borrow” (just converts from one reference to another).Source§impl TypeMarker for LeaseDependency
impl TypeMarker for LeaseDependency
Source§type Owned = LeaseDependency
type Owned = LeaseDependency
Source§fn inline_align(_context: Context) -> usize
fn inline_align(_context: Context) -> usize
Source§fn inline_size(_context: Context) -> usize
fn inline_size(_context: Context) -> usize
inline_align.Source§fn encode_is_copy() -> bool
fn encode_is_copy() -> bool
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 moreSource§fn decode_is_copy() -> bool
fn decode_is_copy() -> bool
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.