[][src]Struct exonum::runtime::DispatcherSchema

pub struct DispatcherSchema<T: Access> { /* fields omitted */ }

Schema of the dispatcher, used to store information about pending artifacts / service instances, and to reload artifacts / instances on node restart.

Methods

impl<T: Access> Schema<T>[src]

pub fn get_instance<'q>(
    &self,
    query: impl Into<InstanceQuery<'q>>
) -> Option<InstanceState>
[src]

Returns the information about a service instance by its identifier.

pub fn get_artifact(&self, name: &ArtifactId) -> Option<ArtifactState>[src]

Returns information about an artifact by its identifier.

pub fn local_migration_result(
    &self,
    instance_name: &str
) -> Option<MigrationStatus>
[src]

Returns result of a locally completed migration for the specified service instance.

This result is set once the migration script associated with the service instance completes and is cleared after the migration is flushed or rolled back.

pub fn check_unloading_artifact(
    &self,
    artifact: &ArtifactId
) -> Result<(), ExecutionError>
[src]

Checks if the provided artifact can currently be unloaded. Returns an error if the unloading is impossible.

impl<T: AsReadonly> Schema<T>[src]

pub fn service_artifacts(
    &self
) -> ProofMapIndex<T::Readonly, ArtifactId, ArtifactState>
[src]

Readonly set of artifacts.

pub fn service_instances(
    &self
) -> ProofMapIndex<T::Readonly, str, InstanceState>
[src]

Readonly set of service instances.

Trait Implementations

impl<T: Debug + Access> Debug for Schema<T>[src]

Auto Trait Implementations

impl<T> RefUnwindSafe for Schema<T> where
    T: RefUnwindSafe

impl<T> Send for Schema<T> where
    T: Send

impl<T> Sync for Schema<T> where
    T: Sync

impl<T> Unpin for Schema<T> where
    T: Unpin

impl<T> UnwindSafe for Schema<T> where
    T: UnwindSafe

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