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