[−][src]Struct exonum_rust_runtime::RustRuntimeBuilder
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]
S: ServiceFactory + MigrateData,
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]
fn default() -> RustRuntimeBuilder
[src]
Auto Trait Implementations
impl !RefUnwindSafe for RustRuntimeBuilder
impl Send for RustRuntimeBuilder
impl !Sync for RustRuntimeBuilder
impl Unpin for RustRuntimeBuilder
impl !UnwindSafe for RustRuntimeBuilder
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> Erased for T
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>,