Enum simple_raft::node::AppendError[][src]

pub enum AppendError<E> {
    Cancelled {
        data: Bytes,
    },
    RaftLogErr(E),
}
Expand description

An error returned while attempting to append to a Raft log.

Variants

Cancelled

The append to the Raft log was cancelled and should be resubmitted to the current Raft leader.

Fields of Cancelled

data: Bytes

Arbitrary data associated with the log entry.

RaftLogErr(E)

An error was returned by the RaftLog implementation.

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

Performs the conversion.

Performs the conversion.

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.