Struct persist::client::AtomicWriteBuilder [−][src]
pub struct AtomicWriteBuilder<'a> {
stream_ids: &'a HashSet<Id>,
records: Vec<(Id, ColumnarRecords)>,
}
Expand description
A buffer for staging a set of records to write atomically.
Feel free to think of this as a write-only transaction.
Fields
stream_ids: &'a HashSet<Id>
records: Vec<(Id, ColumnarRecords)>
Implementations
Adds the given updates to the set that will be written atomically.
Streams may be duplicated. However, the updates are passed down to storage unchanged, so users should coalesce them when that’s not otherwise slower.
Trait Implementations
Auto Trait Implementations
impl<'a> RefUnwindSafe for AtomicWriteBuilder<'a>
impl<'a> Send for AtomicWriteBuilder<'a>
impl<'a> Sync for AtomicWriteBuilder<'a>
impl<'a> Unpin for AtomicWriteBuilder<'a>
impl<'a> UnwindSafe for AtomicWriteBuilder<'a>
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more