struct Ring {
frames: VecDeque<Frame>,
bytes: usize,
bound: Option<ReplayBounds>,
slack: ReplayBounds,
evicted: u64,
streams: HashMap<u64, u64>,
next_stream: u64,
}Expand description
The replay buffer’s frames, and how much it holds.
Fields§
§frames: VecDeque<Frame>§bytes: usizeWhat frames come to, in encoded bytes.
bound: Option<ReplayBounds>The most it holds, or None while a boot is numbering, when it holds
every frame. See Repos::listening.
slack: ReplayBoundsHow far past bound it holds frames an open stream has not sent.
evicted: u64The newest sequence number evicted, or 0 before the first eviction. A stream whose position is below it has lost a frame.
streams: HashMap<u64, u64>Each open stream’s position, by stream: the frames after it are the ones that stream has yet to send.
next_stream: u64The key the next stream is given in streams.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Ring
impl RefUnwindSafe for Ring
impl Send for Ring
impl Sync for Ring
impl Unpin for Ring
impl UnsafeUnpin for Ring
impl UnwindSafe for Ring
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more