zebra_test::command

Trait 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>,