[−][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 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
Auto Trait Implementations
impl Send for NodeBuilder
impl !Sync for NodeBuilder
impl Unpin for NodeBuilder
impl !UnwindSafe for NodeBuilder
impl !RefUnwindSafe for NodeBuilder
Blanket Implementations
impl<T> From<T> for T
[src]
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 = !
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<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> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Erased for T
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,
fn vzip(self) -> V
impl<T> Clear for T where
T: InitializableFromZeroed + ?Sized,
T: InitializableFromZeroed + ?Sized,
fn clear(&mut self)
impl<T> InitializableFromZeroed for T where
T: Default,
T: Default,