pub struct Builder {
pub force_rediff: bool,
pub ignore_missing: bool,
pub contents: Arc<Mutex<Vec<u8>>>,
/* private fields */
}Expand description
A change in the process of being recorded. This is typically
created using Builder::new.
Fields§
§force_rediff: bool§ignore_missing: bool§contents: Arc<Mutex<Vec<u8>>>Implementations§
Source§impl Builder
impl Builder
pub fn record<T, W: WorkingCopyRead + Clone + Send + Sync + 'static, C: ChangeStore + Clone + Send + 'static>(
&mut self,
txn: ArcTxn<T>,
diff_algorithm: Algorithm,
stop_early: bool,
diff_separator: &Regex,
channel: ChannelRef<T>,
working_copy: &W,
changes: &C,
prefix: &str,
_n_workers: usize,
) -> Result<(), RecordError<C::Error, W::Error, T>>where
T: ChannelMutTxnT + TreeTxnT + Send + Sync + 'static,
T::Channel: Send + Sync,
<W as WorkingCopyRead>::Error: 'static,
pub fn record_single_thread<T, W: WorkingCopyRead + Clone, C: ChangeStore + Clone>( &mut self, txn: ArcTxn<T>, diff_algorithm: Algorithm, stop_early: bool, diff_separator: &Regex, channel: ChannelRef<T>, working_copy: &W, changes: &C, prefix: &str, ) -> Result<(), RecordError<C::Error, W::Error, T>>
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Builder
impl !UnwindSafe for Builder
impl Freeze for Builder
impl Send for Builder
impl Sync for Builder
impl Unpin for Builder
impl UnsafeUnpin for Builder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more