Struct network::testutils::builder::TestFrameworkBuilder [−][src]
pub struct TestFrameworkBuilder<Framework: TestFramework<Node>, Node: TestNode> { /* fields omitted */ }Expand description
A builder for a TestFramework implementation.
This handles making sure that nodes are unique, and that they have the channels attached to each other to send messages between each other.
Implementations
Create a new TestFrameworkBuilder, ensuring that there is a fixed number of owners.
Builds the TestFramework
Adds a TestNode of NodeType::Validator
Adds a TestNode of NodeType::ValidatorFullNode
Adds a TestNode of NodeType::PublicFullNode
Auto Trait Implementations
impl<Framework, Node> RefUnwindSafe for TestFrameworkBuilder<Framework, Node> where
Framework: RefUnwindSafe,
Node: RefUnwindSafe,
impl<Framework, Node> Send for TestFrameworkBuilder<Framework, Node> where
Framework: Send,
Node: Send,
impl<Framework, Node> Sync for TestFrameworkBuilder<Framework, Node> where
Framework: Sync,
impl<Framework, Node> Unpin for TestFrameworkBuilder<Framework, Node> where
Framework: Unpin,
Node: Unpin,
impl<Framework, Node> UnwindSafe for TestFrameworkBuilder<Framework, Node> where
Framework: UnwindSafe,
Node: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more
type Output = T
type Output = T
Should always be Self