Struct ralf::Action [] [src]

pub struct Action<'a, 'b> {
    pub cat: &'a str,
    pub data: &'b [u8],
}

Action data type, contain a string identifier and raw bytes

Fields

Category of the action, simmilar to Redux action type (reserved keywork in Rust)

Raw data associated with the action, parsing is left to the reducer Might change in the future

Methods

impl<'a, 'b> Action<'a, 'b>
[src]

[src]

Create an action from it's category and raw data

Trait Implementations

impl<'a, 'b> Debug for Action<'a, 'b>
[src]

[src]

Formats the value using the given formatter. Read more

impl<'a, 'b> Display for Action<'a, 'b>
[src]

[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl<'a, 'b> Send for Action<'a, 'b>

impl<'a, 'b> Sync for Action<'a, 'b>