[][src]Enum raft4rs::error::RaftError

pub enum RaftError {
    Success,
    SuccessRaw(Vec<u8>),
    Error(String),
    NetError(String),
    IOError(String),
    NotfoundAddr(u64),
    TermLess,
    TermGreater,
    IndexLess(u64u64),
    VoteNotAllow,
    TypeErr,
    RaftNotFound(u64),
    NotLeader(u64),
    LogFileNotFound(u64),
    LogFileInvalid(u64),
    Timeout(u64),
    IncompleteErr(u64),
    NotReady,
    NotEnoughRecipient(u16u16),
    ErrCode(i32String),
    OutMemIndex(u64),
}

Variants

Success
SuccessRaw(Vec<u8>)
Error(String)
NetError(String)
IOError(String)
NotfoundAddr(u64)
TermLess
TermGreater
IndexLess(u64u64)
VoteNotAllow
TypeErr
RaftNotFound(u64)
NotLeader(u64)
LogFileNotFound(u64)
LogFileInvalid(u64)
Timeout(u64)
IncompleteErr(u64)
NotReady
NotEnoughRecipient(u16u16)
ErrCode(i32String)
OutMemIndex(u64)

Implementations

impl RaftError[src]

pub fn encode(&self) -> Vec<u8>[src]

pub fn decode(data: &Vec<u8>) -> Self[src]

Trait Implementations

impl Debug for RaftError[src]

impl Display for RaftError[src]

impl Error for RaftError[src]

impl PartialEq<RaftError> for RaftError[src]

impl StructuralPartialEq for RaftError[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,