Trait flex_error::ErrorSource[][src]

pub trait ErrorSource<Trace> {
    type Source;
    type Detail;
    fn error_details(source: Self::Source) -> (Self::Detail, Option<Trace>);
}

Associated Types

Required methods

fn error_details(source: Self::Source) -> (Self::Detail, Option<Trace>)[src]

Implementors

impl<Detail, Trace> ErrorSource<Trace> for DetailOnly<Detail>[src]

type Detail = Detail

type Source = Detail

fn error_details(source: Self::Source) -> (Self::Detail, Option<Trace>)[src]

impl<Detail, Trace> ErrorSource<Trace> for ErrorReport<Detail, Trace>[src]

type Source = Self

type Detail = Detail

fn error_details(source: Self::Source) -> (Self::Detail, Option<Trace>)[src]

impl<E, Tracer> ErrorSource<Tracer> for StdError<E> where
    Tracer: ErrorTracer<E>, 
[src]

type Detail = E

type Source = E

fn error_details(source: Self::Source) -> (Self::Detail, Option<Tracer>)[src]

impl<Trace> ErrorSource<Trace> for NoSource[src]

type Detail = ()

type Source = ()

fn error_details(_: Self::Source) -> (Self::Detail, Option<Trace>)[src]