[−][src]Struct exonum_cli::NodeBuilder
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
impl !RefUnwindSafe for NodeBuilder
impl Send for NodeBuilder
impl !Sync for NodeBuilder
impl Unpin for NodeBuilder
impl !UnwindSafe for NodeBuilder
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Clear for T where
T: InitializableFromZeroed + ?Sized,
T: InitializableFromZeroed + ?Sized,
fn clear(&mut self)
impl<T> From<T> for T
[src]
impl<T> InitializableFromZeroed for T where
T: Default,
T: Default,
unsafe fn initialize(place: *mut T)
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,