Enum cucumber::event::response::InvokeResponse [] [src]

pub enum InvokeResponse {
    Pending(String),
    Success,
    Fail(FailMessage),
}

The low level type capturing the possible outcomes a step invocation may have.

Typical instantiation of this type will be done using the helpers provided.

This type is designed to be heavily composable, as it is the form many operations against state will take. If it doesn't suit a particular use case, that use case was probably not conceived of and should be included!

Variants

Methods

impl InvokeResponse
[src]

Build an InvokeResponse::Pending with a message

Build an InvokeResponse::Fail with a message

Return an InvokeResponse reflecting an equality check

Return an InvokeResponse reflecting a negative equality check

Return an InvokeResponse reflecting a boolean outcome

Return an InvokeResponse reflecting a boolean outcome with a custom message

Compose InvokeResponses with "and" logic, exiting on non-success

Compose InvokeResponses with "or" logic, exiting on success

Trait Implementations

impl Debug for InvokeResponse
[src]

Formats the value using the given formatter.

impl Clone for InvokeResponse
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for InvokeResponse
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for InvokeResponse
[src]