Rename slot-clock -> slock_clock

This commit is contained in:
Paul Hauner
2018-12-30 13:02:44 +11:00
parent 0ba9b86e87
commit 31c78b7718
5 changed files with 190 additions and 75 deletions

View File

@@ -0,0 +1,11 @@
mod system_time_slot_clock;
mod testing_slot_clock;
pub use crate::system_time_slot_clock::{Error as SystemTimeSlotClockError, SystemTimeSlotClock};
pub use crate::testing_slot_clock::{Error as TestingSlotClockError, TestingSlotClock};
pub trait SlotClock {
type Error;
fn present_slot(&self) -> Result<Option<u64>, Self::Error>;
}