[][src]Struct exonum_rust_runtime::RustRuntimeBuilder

pub struct RustRuntimeBuilder { /* fields omitted */ }

Builder of the RustRuntime.

Methods

impl RustRuntimeBuilder[src]

pub fn new() -> Self[src]

Creates a new builder instance.

pub fn with_factory<S: ServiceFactory>(self, service_factory: S) -> Self[src]

Adds a new service factory to the runtime. The service factory does not support data migrations. Use with_migrating_factory to add a service factory with migration support.

Return value

Returns a modified RustRuntime object for further chaining.

pub fn with_migrating_factory<S>(self, service_factory: S) -> Self where
    S: ServiceFactory + MigrateData
[src]

Adds a new service factory with migration support to the runtime.

Return value

Returns a modified RustRuntime object for further chaining.

pub fn build(self, api_notifier: Sender<UpdateEndpoints>) -> RustRuntime[src]

Completes the build process, converting the builder into a RustRuntime.

pub fn build_for_tests(self) -> RustRuntime[src]

Builds the Rust runtime without connection to the HTTP API. As the name implies, this method should only be used for testing.

Trait Implementations

impl Debug for RustRuntimeBuilder[src]

impl Default for RustRuntimeBuilder[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>,