pub struct ConsensusDriver<C: Consensus, D: Driver> {
pub consensus: C,
pub driver: D,
}Fields§
§consensus: C§driver: DImplementations§
Source§impl<C: Consensus, D: Driver> ConsensusDriver<C, D>
impl<C: Consensus, D: Driver> ConsensusDriver<C, D>
pub fn new(consensus: C, driver: D) -> ConsensusDriver<C, D>
pub fn ballot_to_str(&self, b: &SCPBallot) -> String
pub fn opt_ballot_to_str(&self, b: Option<&SCPBallot>) -> String
pub fn envelope_to_str(&self, env: &SCPEnvelope, full_keys: bool) -> String
pub fn statement_to_str(&self, st: &SCPStatement, full_keys: bool) -> String
pub fn node_ids_to_str(&self, ns: &[SCPNodeID]) -> String
Trait Implementations§
Auto Trait Implementations§
impl<C, D> Freeze for ConsensusDriver<C, D>
impl<C, D> RefUnwindSafe for ConsensusDriver<C, D>where
C: RefUnwindSafe,
D: RefUnwindSafe,
impl<C, D> Send for ConsensusDriver<C, D>
impl<C, D> Sync for ConsensusDriver<C, D>
impl<C, D> Unpin for ConsensusDriver<C, D>
impl<C, D> UnsafeUnpin for ConsensusDriver<C, D>where
C: UnsafeUnpin,
D: UnsafeUnpin,
impl<C, D> UnwindSafe for ConsensusDriver<C, D>where
C: UnwindSafe,
D: UnwindSafe,
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