pub fn progress_cb<C>(&mut self, callback: C) -> &mut StashApplyOptions<'cb>
    where
        C: FnMut(StashApplyProgress) -> bool + 'cb,
    {
        self.progress = Some(Box::new(callback) as Box<StashApplyProgressCb<'cb>>);
        self.raw_opts.progress_cb = Some(stash_apply_progress_cb);
        self.raw_opts.progress_payload = self as *mut _ as *mut _;
        self
    }
/// Optional callback to notify the consumer of application progress.
///
/// Return `true` to continue processing, or `false` to
/// abort the stash application.
Optional callback to notify the consumer of application progress.
Return `true` to continue processing, or `false` to
abort the stash application.
Optional callback to notify the consumer of application progress . Return ` true ` to continue processing or ` false ` to abort the stash application .
pub fn progress_cb<C>(&mut self, callback: C) -> &mut StashApplyOptions<'cb>
    where
        C: FnMut(StashApplyProgress) -> bool + 'cb,
    {
        self.progress = Some(Box::new(callback) as Box<StashApplyProgressCb<'cb>>);
        self.raw_opts.progress_cb = Some(stash_apply_progress_cb);
        self.raw_opts.progress_payload = self as *mut _ as *mut _;
        self
    }
pub fn progress_cb < C > ( & mut self , callback : C ) -> & mut StashApplyOptions < ' cb > where C : FnMut ( StashApplyProgress ) -> bool + ' cb , { self . progress = Some ( Box :: new ( callback ) as Box < StashApplyProgressCb < ' cb > > ) ; self . raw_opts . progress_cb = Some ( stash_apply_progress_cb ) ; self . raw_opts . progress_payload = self as * mut _ as * mut _ ; self }
Optional callback to notify the consumer of application progress.
Optional callback to notify the consumer of application progress .
&mut self
callback
C
&mut self
callback
C