Type Alias InstancelessDynClientOutputBundle

Source
pub type InstancelessDynClientOutputBundle = ClientOutputBundle<Box<dyn IOutput + Send + Sync + 'static>, Box<dyn IState + Send + Sync + 'static>>;

Aliased Type§

struct InstancelessDynClientOutputBundle {
    pub(crate) outputs: Vec<ClientOutput<Box<dyn IOutput + Send + Sync>>>,
    pub(crate) sm_gens: Vec<ClientOutputSM<Box<dyn IState + Send + Sync>>>,
}

Fields§

§outputs: Vec<ClientOutput<Box<dyn IOutput + Send + Sync>>>§sm_gens: Vec<ClientOutputSM<Box<dyn IState + Send + Sync>>>

Implementations

Source§

impl<O, S> ClientOutputBundle<O, S>

Source

pub fn outputs(&self) -> &[ClientOutput<O>]

Source§

impl<O, S> ClientOutputBundle<O, S>
where O: IOutput + MaybeSend + MaybeSync + 'static, S: IState + MaybeSend + MaybeSync + 'static,

Source

pub fn new( outputs: Vec<ClientOutput<O>>, sm_gens: Vec<ClientOutputSM<S>>, ) -> Self

Source

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

Source

pub fn with(self, other: Self) -> Self

Source

pub fn into_instanceless(self) -> InstancelessDynClientOutputBundle

Source§

impl<O, S> ClientOutputBundle<O, S>

Source

pub fn is_empty(&self) -> bool

Trait Implementations§

Source§

impl IntoDynInstance for InstancelessDynClientOutputBundle

Source§

type DynType = ClientOutputBundle

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

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

Convert self into its type-erased equivalent
Source§

impl<O: Clone, S: Clone> Clone for ClientOutputBundle<O, S>

Source§

fn clone(&self) -> ClientOutputBundle<O, 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<O: Debug, S: Debug> Debug for ClientOutputBundle<O, S>

Source§

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

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

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

Source§

type DynType = ClientOutputBundle

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

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

Convert self into its type-erased equivalent