Struct undo::HistoryBuilder [−][src]
pub struct HistoryBuilder<R> { /* fields omitted */ }
Builder for a History.
Methods
impl<R> HistoryBuilder<R>
[src]
impl<R> HistoryBuilder<R>
pub fn capacity(self, capacity: usize) -> HistoryBuilder<R>
[src]
pub fn capacity(self, capacity: usize) -> HistoryBuilder<R>
Sets the specified capacity for the history.
pub fn limit(self, limit: usize) -> HistoryBuilder<R>
[src]
pub fn limit(self, limit: usize) -> HistoryBuilder<R>
pub fn saved(self, saved: bool) -> HistoryBuilder<R>
[src]
pub fn saved(self, saved: bool) -> HistoryBuilder<R>
Sets if the receiver is initially in a saved state. By default the receiver is in a saved state.
pub fn signal(
self,
f: impl FnMut(Signal) + Send + Sync + 'static
) -> HistoryBuilder<R>
[src]
pub fn signal(
self,
f: impl FnMut(Signal) + Send + Sync + 'static
) -> HistoryBuilder<R>
Decides how the signal should be handled when the state changes. By default the history does not handle any signals.
pub fn build(
self,
receiver: impl Into<R>
) -> History<R>
[src]
pub fn build(
self,
receiver: impl Into<R>
) -> History<R>
Builds the history.
impl<R: Default> HistoryBuilder<R>
[src]
impl<R: Default> HistoryBuilder<R>
Trait Implementations
impl<R: Debug> Debug for HistoryBuilder<R>
[src]
impl<R: Debug> Debug for HistoryBuilder<R>
Auto Trait Implementations
impl<R> Send for HistoryBuilder<R> where
R: Send,
impl<R> Send for HistoryBuilder<R> where
R: Send,
impl<R> Sync for HistoryBuilder<R> where
R: Sync,
impl<R> Sync for HistoryBuilder<R> where
R: Sync,