Struct redo::HistoryBuilder[][src]

pub struct HistoryBuilder<R, C: Command<R>> { /* fields omitted */ }

Builder for a history.

Methods

impl<R, C: Command<R>> HistoryBuilder<R, C>
[src]

Sets the specified capacity for the history.

Sets the limit for the history.

If this limit is reached it will start popping of commands at the beginning of the history when pushing new commands on to the stack. No limit is set by default which means it may grow indefinitely.

Sets if the receiver is initially in a saved state.

Decides how the signal should be handled when the state changes. By default the history does nothing.

Creates the history.

impl<R: Default, C: Command<R>> HistoryBuilder<R, C>
[src]

Creates the history with a default receiver.

Trait Implementations

impl<R: Debug, C: Debug + Command<R>> Debug for HistoryBuilder<R, C>
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl<R, C> Send for HistoryBuilder<R, C> where
    C: Send,
    R: Send

impl<R, C> Sync for HistoryBuilder<R, C> where
    C: Sync,
    R: Sync