Skip to main content

Reporter

Trait Reporter 

Source
pub trait Reporter {
    type Error: Error + Send + 'static;

    // Required methods
    fn start(&mut self) -> Result<(), Self::Error>;
    fn finish(self) -> Result<(), Self::Error>;
}

Required Associated Types§

Source

type Error: Error + Send + 'static

Required Methods§

Source

fn start(&mut self) -> Result<(), Self::Error>

Source

fn finish(self) -> Result<(), Self::Error>

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<R1, R2> Reporter for (R1, R2)
where R1: Reporter, R2: Reporter,

Source§

type Error = EitherError<<R1 as Reporter>::Error, <R2 as Reporter>::Error>

Source§

fn start(&mut self) -> Result<(), Self::Error>

Source§

fn finish(self) -> Result<(), Self::Error>

Implementors§