pub struct SectionReporter { /* private fields */ }Implementations§
Source§impl SectionReporter
impl SectionReporter
pub fn new(total_sections: usize, verbose: bool) -> Self
pub fn start_section(&mut self, name: &str, _description: Option<&str>)
pub fn skip_section(&self, name: &str)
pub fn attempt(&self, current: u32, total: u32)
pub fn retry(&self, _name: &str, attempt: u32, error: &Error, delay: Duration)
pub fn complete_section( &self, name: &str, duration: Duration, rows: Option<usize>, )
pub fn complete_section_with_retry( &self, name: &str, duration: Duration, rows: Option<usize>, attempts: u32, total_attempts: u32, )
pub fn fail_section(&self, _name: &str, error: &Error)
pub fn migration_summary( &self, total_duration: Duration, _sections_completed: usize, )
Auto Trait Implementations§
impl Freeze for SectionReporter
impl RefUnwindSafe for SectionReporter
impl Send for SectionReporter
impl Sync for SectionReporter
impl Unpin for SectionReporter
impl UnsafeUnpin for SectionReporter
impl UnwindSafe for SectionReporter
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more