pub struct Windows {
pub head_end: usize,
pub tail_start: usize,
pub dropped: Trimmed,
}Expand description
Which parts of the history a request keeps once it no longer fits: the first turn
(the ask, verbatim — it is the goal, and a summary of it is a guess), the last
protect_last_n turns (the live state), and nothing in between.
history[..head_end] and history[tail_start..] are sent; history[head_end..tail_start]
is what does not fit — dropped by trim_to_budget, compiled by the compaction pass.
Nothing is dropped when tail_start == head_end (including both zero, which is how “the
whole history fits” is spelled).
Fields§
§head_end: usize§tail_start: usize§dropped: TrimmedImplementations§
Trait Implementations§
impl Copy for Windows
impl Eq for Windows
impl StructuralPartialEq for Windows
Auto Trait Implementations§
impl Forget for Windows
impl Freeze for Windows
impl Move for Windows
impl RefUnwindSafe for Windows
impl Send for Windows
impl Sync for Windows
impl Unpin for Windows
impl UnsafeUnpin for Windows
impl UnwindSafe for Windows
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.