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
cat: &'a str
Category of the action, simmilar to Redux action type (reserved keywork in Rust)
data: &'b [u8]
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]
pub fn new(cat: &'a str, data: &'b [u8]) -> Action<'a, 'b>
[src]
Create an action from it's category and raw data
Trait Implementations
impl<'a, 'b> Debug for Action<'a, 'b>
[src]
fn fmt(&self, f: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more