pub struct ElementSchema {
pub element_name: Option<String>,
pub initial_current_level: Option<u8>,
pub valid_levels: Option<Vec<u8>>,
pub dependencies: Option<Vec<LevelDependency>>,
pub lessor_channel: Option<ServerEnd<Lessor, Channel>>,
pub element_control: Option<ServerEnd<ElementControl, Channel>>,
pub element_runner: Option<ClientEnd<ElementRunner, Channel>>,
}Expand description
Passed to Topology.AddElement.
Fields§
§element_name: Option<String>§initial_current_level: Option<u8>§valid_levels: Option<Vec<u8>>§dependencies: Option<Vec<LevelDependency>>§lessor_channel: Option<ServerEnd<Lessor, Channel>>§element_control: Option<ServerEnd<ElementControl, Channel>>§element_runner: Option<ClientEnd<ElementRunner, Channel>>Trait Implementations§
Source§impl CompatFrom<ElementSchema> for ElementSchema
impl CompatFrom<ElementSchema> for ElementSchema
Source§fn compat_from(value: ElementSchema) -> Self
fn compat_from(value: ElementSchema) -> Self
Converts
value into a value of this type.Source§impl CompatFrom<ElementSchema> for ElementSchema
impl CompatFrom<ElementSchema> for ElementSchema
Source§fn compat_from(value: ElementSchema) -> Self
fn compat_from(value: ElementSchema) -> Self
Converts
value into a value of this type.Source§impl Debug for ElementSchema
impl Debug for ElementSchema
Source§impl Default for ElementSchema
impl Default for ElementSchema
Source§fn default() -> ElementSchema
fn default() -> ElementSchema
Returns the “default value” for a type. Read more
Source§impl<___E> Encode<ElementSchema<'static>, ___E> for ElementSchemawhere
___E: Encoder + ?Sized + HandleEncoder,
impl<___E> Encode<ElementSchema<'static>, ___E> for ElementSchemawhere
___E: Encoder + ?Sized + HandleEncoder,
Source§fn encode(
self,
encoder: &mut ___E,
out: &mut MaybeUninit<ElementSchema<'static>>,
_: (),
) -> Result<(), EncodeError>
fn encode( self, encoder: &mut ___E, out: &mut MaybeUninit<ElementSchema<'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<'de> FromWire<ElementSchema<'de>> for ElementSchema
impl<'de> FromWire<ElementSchema<'de>> for ElementSchema
Source§fn from_wire(wire_: ElementSchema<'de>) -> Self
fn from_wire(wire_: ElementSchema<'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 ElementSchema
impl PartialEq for ElementSchema
impl StructuralPartialEq for ElementSchema
Auto Trait Implementations§
impl Freeze for ElementSchema
impl RefUnwindSafe for ElementSchema
impl Send for ElementSchema
impl Sync for ElementSchema
impl Unpin for ElementSchema
impl UnwindSafe for ElementSchema
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]