pub struct SingleNodeTestBootstrapper {
block0_builder: Block0ConfigurationBuilder,
node_config_builder: NodeConfigBuilder,
secret: Option<SecretModelFactory>,
reward_history: bool,
}
Fields§
§block0_builder: Block0ConfigurationBuilder
§node_config_builder: NodeConfigBuilder
§secret: Option<SecretModelFactory>
§reward_history: bool
Implementations§
source§impl SingleNodeTestBootstrapper
impl SingleNodeTestBootstrapper
pub fn with_rewards_history(self) -> Self
pub fn with_node_config(self, node_config: NodeConfigBuilder) -> Self
pub fn with_bft_secret(self, secret_key: SigningKey<Ed25519>) -> Self
pub fn as_bft_leader(self) -> Self
pub fn as_genesis_praos_stake_pool(self, stake_pool: &StakePool) -> Self
pub fn with_block0_config(self, config: Block0ConfigurationBuilder) -> Self
pub fn build(self) -> TestContext
Trait Implementations§
source§impl Default for SingleNodeTestBootstrapper
impl Default for SingleNodeTestBootstrapper
source§fn default() -> SingleNodeTestBootstrapper
fn default() -> SingleNodeTestBootstrapper
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for SingleNodeTestBootstrapper
impl Send for SingleNodeTestBootstrapper
impl Sync for SingleNodeTestBootstrapper
impl Unpin for SingleNodeTestBootstrapper
impl UnwindSafe for SingleNodeTestBootstrapper
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request