[−][src]Trait exonum_middleware_service::MiddlewareInterface
Transactional interface of the utilities service.
Associated Types
type Output
Value output by the interface.
Required methods
fn checked_call(&self, context: Ctx, arg: CheckedCall) -> Self::Output
Performs a checked call to the service. The call is dispatched only if the version of the service matches the version requirement mentioned in the call.
Authorization
The inner call is authorized in the same way as the checked_call
.
fn batch(&self, context: Ctx, arg: Batch) -> Self::Output
Performs batch execution of several transactions. Transactions are executed in the order they are mentioned in the batch. If execution of the constituent transaction fails, the method returns an error, thus rolling back any changes performed by earlier transactions.
Authorization
All transactions are authorized in the same way as the batch
call itself.
Trait Implementations
impl<'a> Interface<'a> for dyn MiddlewareInterface<ExecutionContext<'a>, Output = Result<(), ExecutionError>>
[src]
const INTERFACE_NAME: &'static str
[src]
fn dispatch(
&self,
context: ExecutionContext<'a>,
method: MethodId,
payload: &[u8]
) -> Result<(), ExecutionError>
[src]
&self,
context: ExecutionContext<'a>,
method: MethodId,
payload: &[u8]
) -> Result<(), ExecutionError>
Implementors
impl<'_> MiddlewareInterface<ExecutionContext<'_>> for MiddlewareService
[src]
type Output = Result<(), ExecutionError>
fn checked_call(
&self,
context: ExecutionContext,
arg: CheckedCall
) -> Self::Output
[src]
&self,
context: ExecutionContext,
arg: CheckedCall
) -> Self::Output