[][src]Trait exonum_time::TimeOracleInterface

pub trait TimeOracleInterface<Ctx> {
    type Output;
    fn report_time(&self, ctx: Ctx, arg: TxTime) -> Self::Output;
}

Time oracle service transaction.

Associated Types

type Output

Output of the methods in this interface.

Loading content...

Required methods

fn report_time(&self, ctx: Ctx, arg: TxTime) -> Self::Output

Receives a new time from one of validators.

Transaction sent not by a validator will be discarded.

Loading content...

Trait Implementations

impl<'a> Interface<'a> for dyn TimeOracleInterface<ExecutionContext<'a>, Output = Result<(), ExecutionError>>[src]

Implementors

impl<'_> TimeOracleInterface<ExecutionContext<'_>> for TimeService[src]

type Output = Result<(), ExecutionError>

impl<Ctx, T: GenericCall<Ctx>> TimeOracleInterface<Ctx> for T[src]

type Output = <T as GenericCall<Ctx>>::Output

Loading content...