flux_common::result

Trait ErrorCollector

Source
pub trait ErrorCollector<E> {
    type Result;

    // Required methods
    fn collect(&mut self, err: E);
    fn into_result(self) -> Self::Result;
}

Required Associated Types§

Required Methods§

Source

fn collect(&mut self, err: E)

Source

fn into_result(self) -> Self::Result

Implementations on Foreign Types§

Source§

impl ErrorCollector<ErrorGuaranteed> for Option<ErrorGuaranteed>

Implementors§