hermes-runtime-components 0.1.0

Implementation of an IBC Relayer in Rust, as a library
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use core::time::Duration;

use cgp::prelude::*;

#[derive_component(TimeComponent, ProvideTime<Runtime>)]
pub trait HasTime: Async {
    type Time: Async;

    fn now(&self) -> Self::Time;

    fn duration_since(current_time: &Self::Time, other_time: &Self::Time) -> Duration;
}