Struct mainnet_lib::MainnetNetworkBuilder
source · pub struct MainnetNetworkBuilder {
states: Vec<MainnetWalletState>,
settings: Settings,
}
Expand description
Cardano Network state builder, responsible to create a given state of cardano network which will be an input for snapshot
Fields§
§states: Vec<MainnetWalletState>
§settings: Settings
Implementations§
source§impl MainnetNetworkBuilder
impl MainnetNetworkBuilder
sourcepub fn with(self, state: MainnetWalletState) -> Self
pub fn with(self, state: MainnetWalletState) -> Self
Pushes new wallet to collection
sourcepub fn build_block0(&self) -> Block0
pub fn build_block0(&self) -> Block0
Builds block0
sourcepub fn build(self) -> (InMemoryDbSync, Ledger, HashSet<Identifier>)
pub fn build(self) -> (InMemoryDbSync, Ledger, HashSet<Identifier>)
Builds dbsync instance and set or representatives identifiers tailored for async usage
Panics
On internal logic issue
Trait Implementations§
source§impl Default for MainnetNetworkBuilder
impl Default for MainnetNetworkBuilder
source§fn default() -> MainnetNetworkBuilder
fn default() -> MainnetNetworkBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for MainnetNetworkBuilder
impl Send for MainnetNetworkBuilder
impl Sync for MainnetNetworkBuilder
impl Unpin for MainnetNetworkBuilder
impl UnwindSafe for MainnetNetworkBuilder
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