Enum viewstamped_replication::model::Payload
source · pub enum Payload {
Request(Request),
Prepare(Prepare),
PrepareOk(PrepareOk),
Reply(Reply),
DoViewChange(DoViewChange),
StartView(StartView),
Commit(Commit),
OutdatedView,
ConcurrentRequest(ConcurrentRequest),
Recovery,
RecoveryResponse(RecoveryResponse),
}Variants§
Request(Request)
Prepare(Prepare)
PrepareOk(PrepareOk)
Reply(Reply)
DoViewChange(DoViewChange)
StartView(StartView)
Commit(Commit)
OutdatedView
ConcurrentRequest(ConcurrentRequest)
Recovery
RecoveryResponse(RecoveryResponse)
Trait Implementations§
source§impl From<ConcurrentRequest> for Payload
impl From<ConcurrentRequest> for Payload
source§fn from(value: ConcurrentRequest) -> Self
fn from(value: ConcurrentRequest) -> Self
Converts to this type from the input type.
source§impl From<DoViewChange> for Payload
impl From<DoViewChange> for Payload
source§fn from(value: DoViewChange) -> Self
fn from(value: DoViewChange) -> Self
Converts to this type from the input type.
source§impl From<RecoveryResponse> for Payload
impl From<RecoveryResponse> for Payload
source§fn from(value: RecoveryResponse) -> Self
fn from(value: RecoveryResponse) -> Self
Converts to this type from the input type.
source§impl PartialEq for Payload
impl PartialEq for Payload
source§impl TryFrom<Payload> for ConcurrentRequest
impl TryFrom<Payload> for ConcurrentRequest
source§impl TryFrom<Payload> for DoViewChange
impl TryFrom<Payload> for DoViewChange
source§impl TryFrom<Payload> for RecoveryResponse
impl TryFrom<Payload> for RecoveryResponse
impl Eq for Payload
impl StructuralPartialEq for Payload
Auto Trait Implementations§
impl RefUnwindSafe for Payload
impl Send for Payload
impl Sync for Payload
impl Unpin for Payload
impl UnwindSafe for Payload
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more