[][src]Struct exonum_cli::NodeBuilder

pub struct NodeBuilder { /* fields omitted */ }

Rust-specific node builder used for constructing a node with a list of provided services.

Methods

impl NodeBuilder[src]

pub fn new() -> Self[src]

Creates a new builder.

pub fn development_node() -> Result<Self>[src]

Creates a single-node development network with default settings. The node stores its data in a temporary directory, which is automatically removed when the node is stopped.

Return value

Returns an error if the temporary directory cannot be created.

pub fn with(self, spec: impl Deploy) -> Self[src]

Adds a deploy spec to this builder. The spec may contain artifacts and service instances to deploy at the blockchain start.

pub fn with_external_runtime(self, runtime: impl WellKnownRuntime) -> Self[src]

Adds a new Runtime to the list of available runtimes.

Note that you don't have to add the Rust runtime, since it is included by default.

pub async fn run(__arg0: Self) -> Result<()>[src]

Configures the node using parameters provided by user from stdin and then runs it.

Trait Implementations

impl Debug for NodeBuilder[src]

impl Default for NodeBuilder[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Clear for T where
    T: InitializableFromZeroed + ?Sized

impl<T> From<T> for T[src]

impl<T> InitializableFromZeroed for T where
    T: Default

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,