Skip to content

Commit

Permalink
Doc: Add doc to pub sub-mod
Browse files Browse the repository at this point in the history
  • Loading branch information
drmingdrmer committed Mar 12, 2024
1 parent b2cac9d commit 66ce3d3
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 2 deletions.
4 changes: 4 additions & 0 deletions openraft/src/async_runtime.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
//! `async` runtime interface.
//!
//! `async` runtime is an abstraction over different asynchronous runtimes, such as `tokio`,
//! `async-std`, etc.
use std::fmt::Debug;
use std::fmt::Display;
use std::future::Future;
Expand Down
2 changes: 2 additions & 0 deletions openraft/src/entry/mod.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//! The default log entry type that implements [`RaftEntry`].
use std::fmt;
use std::fmt::Debug;

Expand Down
2 changes: 2 additions & 0 deletions openraft/src/instant.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//! A trait for time instants.
use std::fmt::Debug;
use std::ops::Add;
use std::ops::AddAssign;
Expand Down
4 changes: 2 additions & 2 deletions openraft/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,11 @@ pub mod network;
pub mod raft;
pub mod storage;
pub mod testing;
pub mod timer;
pub mod type_config;

pub(crate) mod engine;
pub(crate) mod log_id_range;
pub(crate) mod timer;
pub(crate) mod type_config;
pub(crate) mod utime;

mod display_ext;
Expand Down
2 changes: 2 additions & 0 deletions openraft/src/testing/mod.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//! Testing utilities for OpenRaft.
mod store_builder;
mod suite;

Expand Down

0 comments on commit 66ce3d3

Please sign in to comment.