Type Alias InstancelessDynClientInputBundle

Source
pub type InstancelessDynClientInputBundle = ClientInputBundle<Box<dyn IInput + Send + Sync + 'static>, Box<dyn IState + Send + Sync + 'static>>;

Aliased Type§

struct InstancelessDynClientInputBundle {
    pub(crate) inputs: Vec<ClientInput<Box<dyn IInput + Send + Sync>>>,
    pub(crate) sm_gens: Vec<ClientInputSM<Box<dyn IState + Send + Sync>>>,
}

Fields§

§inputs: Vec<ClientInput<Box<dyn IInput + Send + Sync>>>§sm_gens: Vec<ClientInputSM<Box<dyn IState + Send + Sync>>>

Implementations

Source§

impl<I, S> ClientInputBundle<I, S>
where I: IInput + MaybeSend + MaybeSync + 'static, S: IState + MaybeSend + MaybeSync + 'static,

Source

pub fn new(inputs: Vec<ClientInput<I>>, sm_gens: Vec<ClientInputSM<S>>) -> Self

Source

pub fn inputs(&self) -> &[ClientInput<I>]

Source

pub fn sms(&self) -> &[ClientInputSM<S>]

Source

pub fn into_instanceless(self) -> InstancelessDynClientInputBundle

Source§

impl<I, S> ClientInputBundle<I, S>

Source

pub fn is_empty(&self) -> bool

Trait Implementations§

Source§

impl IntoDynInstance for InstancelessDynClientInputBundle

Source§

type DynType = ClientInputBundle

The type erased version of the type implementing this trait
Source§

fn into_dyn(self, module_instance_id: ModuleInstanceId) -> ClientInputBundle

Convert self into its type-erased equivalent
Source§

impl<I: Clone, S: Clone> Clone for ClientInputBundle<I, S>

Source§

fn clone(&self) -> ClientInputBundle<I, S>

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<I: Debug, S: Debug> Debug for ClientInputBundle<I, S>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<I, S> IntoDynInstance for ClientInputBundle<I, S>
where I: IntoDynInstance<DynType = DynInput> + 'static, S: IntoDynInstance<DynType = DynState> + 'static,

Source§

type DynType = ClientInputBundle

The type erased version of the type implementing this trait
Source§

fn into_dyn(self, module_instance_id: ModuleInstanceId) -> ClientInputBundle

Convert self into its type-erased equivalent