[][src]Enum paxos::Rpc

pub enum Rpc {
    ClientRequest(u64Req),
    ClientResponse(u64Result<Option<Vec<u8>>, Error>),
    SetAcceptAcceptors(Vec<String>),
    SetProposeAcceptors(Vec<String>),
    ProposeReq(BallotVec<u8>),
    ProposeRes {
        req_ballot: Ballot,
        last_accepted_ballot: Ballot,
        last_accepted_value: Option<Vec<u8>>,
        res: Result<(), Error>,
    },
    AcceptReq(BallotVec<u8>, Option<Vec<u8>>),
    AcceptRes(BallotResult<(), Error>),
}

Variants

ClientRequest(u64Req)
ClientResponse(u64Result<Option<Vec<u8>>, Error>)
SetAcceptAcceptors(Vec<String>)
SetProposeAcceptors(Vec<String>)
ProposeReq(BallotVec<u8>)
ProposeRes

Fields of ProposeRes

req_ballot: Ballotlast_accepted_ballot: Ballotlast_accepted_value: Option<Vec<u8>>res: Result<(), Error>
AcceptReq(BallotVec<u8>, Option<Vec<u8>>)
AcceptRes(BallotResult<(), Error>)

Implementations

impl Rpc[src]

pub fn client_req_id(&self) -> Option<u64>[src]

pub fn client_req(self) -> Option<Req>[src]

Trait Implementations

impl Clone for Rpc[src]

impl Debug for Rpc[src]

impl<'de> Deserialize<'de> for Rpc[src]

impl Eq for Rpc[src]

impl Ord for Rpc[src]

impl PartialEq<Rpc> for Rpc[src]

impl PartialOrd<Rpc> for Rpc[src]

impl Serialize for Rpc[src]

impl StructuralEq for Rpc[src]

impl StructuralPartialEq for Rpc[src]

Auto Trait Implementations

impl RefUnwindSafe for Rpc

impl Send for Rpc

impl Sync for Rpc

impl Unpin for Rpc

impl UnwindSafe for Rpc

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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

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

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.