Struct sauron_core::dom::Effects[][src]

pub struct Effects<MSG, PMSG> {
    pub follow_ups: Vec<MSG>,
    pub effects: Vec<PMSG>,
}
Expand description

Msg that needs to be executed in its component on the next update loop

Fields

follow_ups: Vec<MSG>

Msg that will be executed in its own widget

effects: Vec<PMSG>

PMSG that will be executed in the component that mounts it

Implementations

create a new effects with follow_ups and effects

create a follow up message, but no effects

Create effects with no follow ups.

No effects, no follow ups

map the follow up messages of this Effect such that follow ups with type Vec will become Vec

Trait Implementations

Convert Effects that has only follow ups

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.