pub enum ProtocolPayload<P>where
P: Protocol,{
Prepare(Prepare<P::Request, P::Prediction>),
PrepareOk(PrepareOk),
Commit(Commit),
GetState(GetState),
NewState(NewState<P::Request, P::Prediction>),
StartViewChange(StartViewChange),
DoViewChange(DoViewChange<P::Request, P::Prediction>),
StartView(StartView<P::Request, P::Prediction>),
Recovery(Recovery),
RecoveryResponse(RecoveryResponse<P::Request, P::Prediction>),
}Variants§
Prepare(Prepare<P::Request, P::Prediction>)
PrepareOk(PrepareOk)
Commit(Commit)
GetState(GetState)
NewState(NewState<P::Request, P::Prediction>)
StartViewChange(StartViewChange)
DoViewChange(DoViewChange<P::Request, P::Prediction>)
StartView(StartView<P::Request, P::Prediction>)
Recovery(Recovery)
RecoveryResponse(RecoveryResponse<P::Request, P::Prediction>)
Implementations§
Source§impl<P> ProtocolPayload<P>where
P: Protocol,
impl<P> ProtocolPayload<P>where
P: Protocol,
pub fn unwrap_prepare(self) -> Prepare<P::Request, P::Prediction>
pub fn unwrap_prepare_ok(self) -> PrepareOk
pub fn unwrap_commit(self) -> Commit
pub fn unwrap_get_state(self) -> GetState
Trait Implementations§
Source§impl<P> Clone for ProtocolPayload<P>where
P: Protocol,
impl<P> Clone for ProtocolPayload<P>where
P: Protocol,
Source§impl<P, Req, Pre> Debug for ProtocolPayload<P>
impl<P, Req, Pre> Debug for ProtocolPayload<P>
Source§impl<P> PartialEq for ProtocolPayload<P>
impl<P> PartialEq for ProtocolPayload<P>
impl<P> Eq for ProtocolPayload<P>
impl<P> StructuralPartialEq for ProtocolPayload<P>where
P: Protocol,
Auto Trait Implementations§
impl<P> Freeze for ProtocolPayload<P>
impl<P> RefUnwindSafe for ProtocolPayload<P>
impl<P> Send for ProtocolPayload<P>
impl<P> Sync for ProtocolPayload<P>
impl<P> Unpin for ProtocolPayload<P>
impl<P> UnwindSafe for ProtocolPayload<P>
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