Trait zebra_test::command::ContextFrom

source ·
pub trait ContextFrom<S> {
    type Return;

    // Required method
    fn context_from(self, source: S) -> Self::Return;
}
Expand description

Add context to an error report

Required Associated Types§

Required Methods§

source

fn context_from(self, source: S) -> Self::Return

Implementations on Foreign Types§

source§

impl ContextFrom<&ExitStatus> for Report

source§

type Return = Report

source§

fn context_from(self, source: &ExitStatus) -> Self::Return

source§

impl ContextFrom<&Output> for Report

source§

type Return = Report

source§

fn context_from(self, source: &Output) -> Self::Return

source§

impl ContextFrom<&TestStatus> for Report

source§

type Return = Report

source§

fn context_from(self, source: &TestStatus) -> Self::Return

source§

impl<T> ContextFrom<&TestOutput<T>> for Report

source§

type Return = Report

source§

fn context_from(self, source: &TestOutput<T>) -> Self::Return

source§

impl<T> ContextFrom<&mut TestChild<T>> for Report

source§

type Return = Report

source§

fn context_from(self, source: &mut TestChild<T>) -> Self::Return

Implementors§

source§

impl<C, T, E> ContextFrom<C> for Result<T, E>
where E: Into<Report>, Report: ContextFrom<C, Return = Report>,