Struct raft::Inflights [−][src]
A buffer of inflight messages.
Implementations
impl Inflights
[src][−]
pub fn new(cap: usize) -> Inflights
[src][−]
Creates a new buffer for inflight messages.
pub fn full(&self) -> bool
[src][−]
Returns true if the inflights is full.
pub fn cap(&self) -> usize
[src][−]
The buffer capacity.
pub fn add(&mut self, inflight: u64)
[src][−]
Adds an inflight into inflights
pub fn free_to(&mut self, to: u64)
[src][−]
Frees the inflights smaller or equal to the given to
flight.
pub fn free_first_one(&mut self)
[src][−]
Frees the first buffer entry.
pub fn reset(&mut self)
[src][−]
Frees all inflights.
Trait Implementations
impl Clone for Inflights
[src][+]
impl Debug for Inflights
[src][+]
impl PartialEq<Inflights> for Inflights
[src][+]
impl StructuralPartialEq for Inflights
[src]
Auto Trait Implementations
impl RefUnwindSafe for Inflights
impl Send for Inflights
impl Sync for Inflights
impl Unpin for Inflights
impl UnwindSafe for Inflights
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src][+]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> From<T> for T
[src][+]
impl<T, U> Into<U> for T where
U: From<T>,
[src][+]
U: From<T>,
impl<T> SendSyncUnwindSafe for T where
T: Send + Sync + UnwindSafe + ?Sized,
[src]
T: Send + Sync + UnwindSafe + ?Sized,
impl<T> ToOwned for T where
T: Clone,
[src][+]
T: Clone,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src][+]
U: Into<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
[src][+]
V: MultiLane<T>,