Enum eventstore_tcp::adapted::WriteEventsFailure [] [src]

pub enum WriteEventsFailure {
    PrepareTimeout,
    CommitTimeout,
    ForwardTimeout,
    WrongExpectedVersion,
    StreamDeleted,
    AccessDenied,
}

Like OperationResult on the wire but does not have a success value. Explains the reason for failure.

Variants

Server failed to process the request before timeout

Server timed out while awaiting commit to be processed

Server timed out while awaiting for a forwarded request to complete

Optimistic locking failure; stream version was not the expected

Stream has been deleted

No authentication provided or insufficient permissions to a stream

Methods

impl WriteEventsFailure
[src]

Return true if the operation failed in a transient way that might be resolved by retrying.

Trait Implementations

impl Debug for WriteEventsFailure
[src]

Formats the value using the given formatter.

impl Clone for WriteEventsFailure
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for WriteEventsFailure
[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 WriteEventsFailure
[src]

impl Copy for WriteEventsFailure
[src]

impl From<OperationResult> for WriteEventsFailure
[src]

Performs the conversion.

impl Into<OperationResult> for WriteEventsFailure
[src]

Performs the conversion.

impl Display for WriteEventsFailure
[src]

Formats the value using the given formatter.

impl Error for WriteEventsFailure
[src]

A short description of the error. Read more

The lower-level cause of this error, if any. Read more