pub struct BallotProto<'a, 'b, C: Consensus, D: Driver>(pub &'a mut SlotProto<'b, C, D>);Tuple Fields§
§0: &'a mut SlotProto<'b, C, D>Implementations§
Source§impl<'a, 'b, C: Consensus, D: Driver> BallotProto<'a, 'b, C, D>
impl<'a, 'b, C: Consensus, D: Driver> BallotProto<'a, 'b, C, D>
pub fn is_newer_node_statement( &self, node_id: &SCPNodeID, st: &SCPStatement, ) -> bool
pub fn is_newer_statement(older: &SCPStatement, newer: &SCPStatement) -> bool
pub fn get_statement_values(st: &SCPStatement) -> HashSet<SCPValue>
pub fn should_process_envelope(&self, env: &SCPEnvelope, ours: bool) -> bool
pub fn process_envelope( &mut self, env: &SCPEnvelope, ours: bool, ) -> EnvelopeState
pub fn is_statement_sane(&self, statement: &SCPStatement, ours: bool) -> bool
pub fn abandon_ballot(&mut self, n: u32) -> bool
pub fn bump_state(&mut self, value: SCPValue, force: bool) -> bool
pub fn driver_calling_back(&mut self, cb: DriverCallback)
pub fn timer_expired(&mut self)
pub fn set_state_from_envelope(&mut self, env: &SCPEnvelope)
pub fn process_current_state<F>(&self, f: &mut F, force_self: bool) -> bool
pub fn get_latest_message(&self, id: &SCPNodeID) -> Option<SCPEnvelope>
pub fn get_externalizing_state(&self) -> Vec<SCPEnvelope>
pub fn get_state( &self, n: &SCPNodeID, self_already_moved_on: bool, ) -> QuorumInfoNodeState
pub fn get_json_quorum_info( &self, id: &SCPNodeID, summary: bool, full_keys: bool, ) -> Value
pub fn get_json_info(&self) -> Value
pub fn get_last_message_send(&self) -> Option<SCPEnvelope>
Trait Implementations§
Auto Trait Implementations§
impl<'a, 'b, C, D> !UnwindSafe for BallotProto<'a, 'b, C, D>
impl<'a, 'b, C, D> Forget for BallotProto<'a, 'b, C, D>
impl<'a, 'b, C, D> Freeze for BallotProto<'a, 'b, C, D>
impl<'a, 'b, C, D> Move for BallotProto<'a, 'b, C, D>
impl<'a, 'b, C, D> RefUnwindSafe for BallotProto<'a, 'b, C, D>where
C: RefUnwindSafe,
D: RefUnwindSafe,
impl<'a, 'b, C, D> Send for BallotProto<'a, 'b, C, D>where
&'b ConsensusDriver<C, D>: Send,
&'b LocalState: Send,
RawTable<(BytesM<u32::MAX>, ())>: Send,
RawTable<(PublicKey, SCPEnvelope)>: Send,
BoxRaw<MlDsa65PublicKey>: Send,
RawVecInner: Send,
BoxRaw<MlDsa65Signature>: Send,
RawTable<(PublicKey, ())>: Send,
impl<'a, 'b, C, D> Sync for BallotProto<'a, 'b, C, D>
impl<'a, 'b, C, D> Unpin for BallotProto<'a, 'b, C, D>
impl<'a, 'b, C, D> UnsafeUnpin for BallotProto<'a, 'b, C, D>where
&'a mut SlotProto<'b, C, D>: UnsafeUnpin,
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