Struct undo::HistoryBuilder[][src]

pub struct HistoryBuilder<R> { /* fields omitted */ }

Builder for a History.

Methods

impl<R> HistoryBuilder<R>
[src]

Sets the specified 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> HistoryBuilder<R>
[src]

Creates the history with a default receiver.

Trait Implementations

impl<R: Debug> Debug for HistoryBuilder<R>
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

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

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