[][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 new builder.

pub fn with_service(self, service: impl Into<Box<dyn ServiceFactory>>) -> Self[src]

Adds new Rust service to the list of available services.

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 a Rust Runtime, since it's included by default.

pub fn run(self) -> Result<(), Error>[src]

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

Only Rust runtime is enabled.

Trait Implementations

impl Default for NodeBuilder[src]

impl Debug for NodeBuilder[src]

Auto Trait Implementations

Blanket Implementations

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

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 = !

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<T> Borrow<T> for T where
    T: ?Sized
[src]

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

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

impl<T> Erased for T

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

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

impl<T> InitializableFromZeroed for T where
    T: Default