Warn

Trait Warn 

Source
pub trait Warn<E: Error> {
    // Required method
    fn warn(&mut self, error: E);
}
Expand description

Sink to which the non-fatal errors of type E can be written

Required Methods§

Source

fn warn(&mut self, error: E)

Push the error error to the sink

Implementors§

Source§

impl<'a, D, E, F, W> Warn<D> for AdaptMap<'a, D, E, F, W>
where D: Error, E: Error, F: FnMut(D) -> E, W: Warn<E>,

Source§

impl<'a, D, E, W> Warn<D> for Adapt<'a, E, W>
where D: Error, E: Error + From<D>, W: Warn<E>,

Source§

impl<E: Error> Warn<E> for CollectAll<E>

Source§

impl<E: Error> Warn<E> for Ignore

Source§

impl<E: Error> Warn<E> for KeepFirst<E>

Source§

impl<E: Error> Warn<E> for KeepLast<E>

Source§

impl<E: Error> Warn<E> for Stderr

Source§

impl<E: Error, F: FnMut(E)> Warn<E> for FromFn<E, F>