[−][src]Struct exonum_supervisor::Supervisor
Supervisor service implementation.
Methods
impl<Mode> Supervisor<Mode> where
Mode: SupervisorMode,
[src]
Mode: SupervisorMode,
pub const NAME: &'static str
[src]
Name of the supervisor service.
pub fn new() -> Supervisor<Mode>
[src]
Creates a new Supervisor
service object.
pub fn construct(&self) -> Box<Self>
[src]
Factory constructor of the Supervisor
object that takes &self
as an argument.
The constructor is required for the ServiceFactory
trait implementation.
Trait Implementations
impl<Mode> SupervisorInterface for Supervisor<Mode> where
Mode: SupervisorMode,
[src]
Mode: SupervisorMode,
fn propose_config_change(
&self,
context: CallContext,
propose: ConfigPropose
) -> Result<(), ExecutionError>
[src]
&self,
context: CallContext,
propose: ConfigPropose
) -> Result<(), ExecutionError>
fn confirm_config_change(
&self,
context: CallContext,
vote: ConfigVote
) -> Result<(), ExecutionError>
[src]
&self,
context: CallContext,
vote: ConfigVote
) -> Result<(), ExecutionError>
fn request_artifact_deploy(
&self,
context: CallContext,
deploy: DeployRequest
) -> Result<(), ExecutionError>
[src]
&self,
context: CallContext,
deploy: DeployRequest
) -> Result<(), ExecutionError>
fn confirm_artifact_deploy(
&self,
context: CallContext,
confirmation: DeployConfirmation
) -> Result<(), ExecutionError>
[src]
&self,
context: CallContext,
confirmation: DeployConfirmation
) -> Result<(), ExecutionError>
impl<Mode: Clone> Clone for Supervisor<Mode> where
Mode: SupervisorMode,
[src]
Mode: SupervisorMode,
fn clone(&self) -> Supervisor<Mode>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<Mode: Default> Default for Supervisor<Mode> where
Mode: SupervisorMode,
[src]
Mode: SupervisorMode,
fn default() -> Supervisor<Mode>
[src]
impl<Mode: Debug> Debug for Supervisor<Mode> where
Mode: SupervisorMode,
[src]
Mode: SupervisorMode,
impl<Mode> ServiceFactory for Supervisor<Mode> where
Mode: SupervisorMode,
[src]
Mode: SupervisorMode,
fn artifact_id(&self) -> RustArtifactId
[src]
fn artifact_protobuf_spec(&self) -> ArtifactProtobufSpec
[src]
fn create_instance(&self) -> Box<dyn Service>
[src]
impl<Mode> ServiceDispatcher for Supervisor<Mode> where
Mode: SupervisorMode,
[src]
Mode: SupervisorMode,
fn call(
&self,
interface_name: &str,
method: MethodId,
ctx: CallContext,
payload: &[u8]
) -> Result<(), ExecutionError>
[src]
&self,
interface_name: &str,
method: MethodId,
ctx: CallContext,
payload: &[u8]
) -> Result<(), ExecutionError>
impl<Mode> Service for Supervisor<Mode> where
Mode: SupervisorMode,
[src]
Mode: SupervisorMode,
fn state_hash(&self, data: BlockchainData<&dyn Snapshot>) -> Vec<Hash>
[src]
fn before_commit(&self, context: CallContext)
[src]
fn after_commit(&self, context: AfterCommitContext)
[src]
Sends confirmation transaction for unconfirmed deployment requests.
fn wire_api(&self, builder: &mut ServiceApiBuilder)
[src]
fn initialize(
&self,
_context: CallContext,
_params: Vec<u8>
) -> Result<(), ExecutionError>
[src]
&self,
_context: CallContext,
_params: Vec<u8>
) -> Result<(), ExecutionError>
impl<Mode: SupervisorMode> DefaultInstance for Supervisor<Mode>
[src]
const INSTANCE_ID: u32
[src]
const INSTANCE_NAME: &'static str
[src]
fn default_instance(&self) -> InstanceInitParams
[src]
Auto Trait Implementations
impl<Mode> Send for Supervisor<Mode>
impl<Mode> Sync for Supervisor<Mode>
impl<Mode> Unpin for Supervisor<Mode> where
Mode: Unpin,
Mode: Unpin,
impl<Mode> UnwindSafe for Supervisor<Mode> where
Mode: UnwindSafe,
Mode: UnwindSafe,
impl<Mode> RefUnwindSafe for Supervisor<Mode> where
Mode: RefUnwindSafe,
Mode: RefUnwindSafe,
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> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
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,