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>>,
pub initial_lease_token: Option<EventPair>,
}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>>§initial_lease_token: Option<EventPair>Trait Implementations§
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 owned value 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
§impl<T, W> FromWireOption<Box<'_, W>> for Twhere
T: FromWire<W>,
impl<T, W> FromWireOption<Box<'_, W>> for Twhere
T: FromWire<W>,
§fn from_wire_option(wire: Box<'_, W>) -> Option<T>
fn from_wire_option(wire: Box<'_, W>) -> Option<T>
Converts the given owned value 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]