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 capacity for the history.

Sets the limit for the history.

Panics

Panics if limit is 0.

Sets if the receiver is initially in a saved state. By default the receiver is in a saved state.

Decides how the signal should be handled when the state changes. By default the history does not handle any signals.

Builds 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