[−][src]Struct exonum::runtime::DispatcherSchema
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]
&self,
query: impl Into<InstanceQuery<'q>>
) -> Option<InstanceState>
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]
&self,
instance_name: &str
) -> Option<MigrationStatus>
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]
&self,
artifact: &ArtifactId
) -> Result<(), ExecutionError>
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]
&self
) -> ProofMapIndex<T::Readonly, ArtifactId, ArtifactState>
Readonly set of artifacts.
pub fn service_instances(
&self
) -> ProofMapIndex<T::Readonly, str, InstanceState>
[src]
&self
) -> ProofMapIndex<T::Readonly, str, InstanceState>
Readonly set of service instances.
Trait Implementations
Auto Trait Implementations
impl<T> RefUnwindSafe for Schema<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<T> Send for Schema<T> where
T: Send,
T: Send,
impl<T> Sync for Schema<T> where
T: Sync,
T: Sync,
impl<T> Unpin for Schema<T> where
T: Unpin,
T: Unpin,
impl<T> UnwindSafe for Schema<T> where
T: UnwindSafe,
T: UnwindSafe,
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> 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 = 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>,