Docs.rs
raft-0.6.0-alpha
raft 0.6.0-alpha
Docs.rs crate page
Apache-2.0
Links
Homepage
Documentation
Repository
crates.io
Source
Owners
mrhooray
Hoverbear
siddontang
BusyJay
Dependencies
fail ^0.3
normal
getset ^0.0.7
normal
hashbrown ^0.5
normal
log > 0.2
normal
protobuf ^2
normal
quick-error ^1.2.2
normal
raft-proto ^0.6.0-alpha
normal
rand ^0.7.0
normal
slog ^2.2
normal
slog-envlogger ^2.1.0
normal
slog-stdlog ^3.0.2
normal
criterion > 0.2.4
dev
regex ^1.1
dev
slog-async ^2.3.0
dev
slog-term ^2.4.0
dev
Versions
Go to latest stable release
Platform
i686-apple-darwin
i686-pc-windows-msvc
i686-unknown-linux-gnu
x86_64-apple-darwin
x86_64-pc-windows-msvc
x86_64-unknown-linux-gnu
Feature flags
Rust
About docs.rs
Privacy policy
Rust website
The Book
Standard Library API Reference
Rust by Example
The Cargo Guide
Clippy Documentation
☰
raft
[
−
]
[src]
Function
raft
::
majority
pub fn majority(total:
usize
) ->
usize
Get the majority number of given nodes count.