pub enum Outcome<'a> {
    Unsupported {
        error: Error,
        location: Location,
    },
    ParseFailure {
        error: Error,
        location: Location,
    },
    PlanFailure {
        error: Error,
        location: Location,
    },
    UnexpectedPlanSuccess {
        expected_error: &'a str,
        location: Location,
    },
    WrongNumberOfRowsInserted {
        expected_count: u64,
        actual_count: u64,
        location: Location,
    },
    WrongColumnCount {
        expected_count: usize,
        actual_count: usize,
        location: Location,
    },
    WrongColumnNames {
        expected_column_names: &'a Vec<ColumnName>,
        actual_column_names: Vec<ColumnName>,
        location: Location,
    },
    OutputFailure {
        expected_output: &'a Output,
        actual_raw_output: Vec<Row>,
        actual_output: Output,
        location: Location,
    },
    Bail {
        cause: Box<Outcome<'a>>,
        location: Location,
    },
    Success,
}

Variants§

§

Unsupported

Fields

§error: Error
§location: Location
§

ParseFailure

Fields

§error: Error
§location: Location
§

PlanFailure

Fields

§error: Error
§location: Location
§

UnexpectedPlanSuccess

Fields

§expected_error: &'a str
§location: Location
§

WrongNumberOfRowsInserted

Fields

§expected_count: u64
§actual_count: u64
§location: Location
§

WrongColumnCount

Fields

§expected_count: usize
§actual_count: usize
§location: Location
§

WrongColumnNames

Fields

§expected_column_names: &'a Vec<ColumnName>
§actual_column_names: Vec<ColumnName>
§location: Location
§

OutputFailure

Fields

§expected_output: &'a Output
§actual_raw_output: Vec<Row>
§actual_output: Output
§location: Location
§

Bail

Fields

§cause: Box<Outcome<'a>>
§location: Location
§

Success

Implementations§

Returns an error message that will match self. Appropriate for rewriting error messages (i.e. not inserting error messages where we currently expect success).

Trait Implementations§

Formats the value using the given formatter. Read more
Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
Formats an object with the “alternative” format ({:#}) and returns it.

Returns the argument unchanged.

Attaches the provided Context to this type, returning a WithContext wrapper. Read more
Attaches the current Context to this type, returning a WithContext wrapper. Read more
Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Wrap the input message T in a tonic::Request
The alignment of pointer.
The type for initializers.
Initializes a with the given initializer. Read more
Dereferences the given pointer. Read more
Mutably dereferences the given pointer. Read more
Drops the object pointed to by the given pointer. Read more
Should always be Self
Converts the given value to a String. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more