pub struct Window {
pub outstanding: usize,
pub window: usize,
pub admitted: Vec<String>,
pub unread: Vec<String>,
pub pace: Pace,
pub next: Option<i64>,
}Expand description
One sender’s window to one recipient at a moment (window_for).
Fields§
§outstanding: usizeThe sender’s tells and asks to the recipient that the lines hold, neither acknowledged nor expired (one the window did not admit too).
window: usizeHow many may be outstanding at once: under Pace::Window, a message is sent while
outstanding < window.
admitted: Vec<String>The ids of the sender’s tells and asks to the recipient within the window, oldest first.
unread: Vec<String>The ids of the outstanding ones, oldest first.
pace: Pace§next: Option<i64>Under Pace::Floor and Pace::Rate: the stamp from which V1_RATE_MS admits the next message,
that long after the sender’s last one (None: it admits one now, nothing having been sent).
Implementations§
Trait Implementations§
impl Eq for Window
impl StructuralPartialEq for Window
Auto Trait Implementations§
impl Freeze for Window
impl RefUnwindSafe for Window
impl Send for Window
impl Sync for Window
impl Unpin for Window
impl UnsafeUnpin for Window
impl UnwindSafe for Window
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.