pub struct LevelDependency {
pub dependency_type: DependencyType,
pub dependent_level: u8,
pub requires_token: Event,
pub requires_level_by_preference: Vec<u8>,
}Expand description
Describes a dependency from one power element’s level on another power
element’s level.
For example if element PowerElement_A has a level PowerLevel_A3 which
depends on an element PowerElement_B being at PowerLevel_B2 where the
dependency is DependencyType::ASSERTIVE then we would fill out the struct
to convey the meaning:
dependent_level=PowerLevel_A3requires_token=PowerElement_B,dependency_type =ASSERTIVE`,requires_level_by_preference=[PowerLevel_B2](Note the values above are only symbolic, eg.dependent_levelrequires an integer value, not a string.)
The dependent Element’s identity is not specified in this struct and must be specified as a separate argument in a request or be inferred, perhaps because a channel is scoped to the dependent element.
Fields§
§dependency_type: DependencyType§dependent_level: u8§requires_token: Event§requires_level_by_preference: Vec<u8>Trait Implementations§
Source§impl CompatFrom<LevelDependency> for LevelDependency
impl CompatFrom<LevelDependency> for LevelDependency
Source§fn compat_from(value: LevelDependency) -> Self
fn compat_from(value: LevelDependency) -> Self
Converts
value into a value of this type.Source§impl CompatFrom<LevelDependency> for LevelDependency
impl CompatFrom<LevelDependency> for LevelDependency
Source§fn compat_from(value: LevelDependency) -> Self
fn compat_from(value: LevelDependency) -> Self
Converts
value into a value of this type.Source§impl Debug for LevelDependency
impl Debug for LevelDependency
Source§impl<___E> Encode<LevelDependency<'static>, ___E> for LevelDependencywhere
___E: InternalHandleEncoder + ?Sized + Encoder + HandleEncoder,
impl<___E> Encode<LevelDependency<'static>, ___E> for LevelDependencywhere
___E: InternalHandleEncoder + ?Sized + Encoder + HandleEncoder,
Source§fn encode(
self,
encoder_: &mut ___E,
out_: &mut MaybeUninit<LevelDependency<'static>>,
_: (),
) -> Result<(), EncodeError>
fn encode( self, encoder_: &mut ___E, out_: &mut MaybeUninit<LevelDependency<'static>>, _: (), ) -> Result<(), EncodeError>
Encodes this value into an encoder and output.
§const COPY_OPTIMIZATION: CopyOptimization<Self, W> = _
const COPY_OPTIMIZATION: CopyOptimization<Self, W> = _
Source§impl<___E> EncodeOption<WireBox<'static, LevelDependency<'static>>, ___E> for LevelDependency
impl<___E> EncodeOption<WireBox<'static, LevelDependency<'static>>, ___E> for LevelDependency
Source§fn encode_option(
this: Option<Self>,
encoder: &mut ___E,
out: &mut MaybeUninit<WireBox<'static, LevelDependency<'static>>>,
_: (),
) -> Result<(), EncodeError>
fn encode_option( this: Option<Self>, encoder: &mut ___E, out: &mut MaybeUninit<WireBox<'static, LevelDependency<'static>>>, _: (), ) -> Result<(), EncodeError>
Encodes this optional value into an encoder and output.
Source§impl<'de> FromWire<LevelDependency<'de>> for LevelDependency
impl<'de> FromWire<LevelDependency<'de>> for LevelDependency
Source§fn from_wire(wire: LevelDependency<'de>) -> Self
fn from_wire(wire: LevelDependency<'de>) -> Self
Converts the given
wire to this type.§const COPY_OPTIMIZATION: CopyOptimization<W, Self> = _
const COPY_OPTIMIZATION: CopyOptimization<W, Self> = _
Source§impl PartialEq for LevelDependency
impl PartialEq for LevelDependency
impl StructuralPartialEq for LevelDependency
Auto Trait Implementations§
impl Freeze for LevelDependency
impl RefUnwindSafe for LevelDependency
impl Send for LevelDependency
impl Sync for LevelDependency
impl Unpin for LevelDependency
impl UnwindSafe for LevelDependency
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, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
Source§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
§impl<T, W> FromWireOption<WireBox<'_, W>> for Twhere
T: FromWire<W>,
impl<T, W> FromWireOption<WireBox<'_, W>> for Twhere
T: FromWire<W>,
§fn from_wire_option(wire: WireBox<'_, W>) -> Option<T>
fn from_wire_option(wire: WireBox<'_, W>) -> Option<T>
Converts the given
wire to an option of this type.§impl<T> InstanceFromServiceTransport<T> for T
impl<T> InstanceFromServiceTransport<T> for T
§fn from_service_transport(handle: T) -> T
fn from_service_transport(handle: T) -> T
Converts the given service transport handle of type
T to [Self]