pub struct UnknownCallBuffer { /* private fields */ }Expand description
Buffers dispatches for calls not known yet.
Implementations§
Source§impl UnknownCallBuffer
impl UnknownCallBuffer
Sourcepub fn new(params: &Params, cfg: &E2eeConfig) -> UnknownCallBuffer
pub fn new(params: &Params, cfg: &E2eeConfig) -> UnknownCallBuffer
A buffer with the server’s window and the local bounds.
Sourcepub fn push(
&mut self,
now: Millis,
call_id: CallId,
msg: CallKeysMessage,
size: usize,
)
pub fn push( &mut self, now: Millis, call_id: CallId, msg: CallKeysMessage, size: usize, )
Buffers msg (size = its raw JSON length) for call_id.
Sourcepub fn take(&mut self, now: Millis, call_id: &CallId) -> Vec<CallKeysMessage>
pub fn take(&mut self, now: Millis, call_id: &CallId) -> Vec<CallKeysMessage>
Takes the buffered messages of call_id, in order (the session now exists).
Sourcepub fn dropped(&self) -> u64
pub fn dropped(&self) -> u64
Messages dropped (window, bounds, evicted calls): unknown_call_dropped.
Sourcepub fn next_expiry(&self) -> Option<Millis>
pub fn next_expiry(&self) -> Option<Millis>
When the oldest held message expires.
Trait Implementations§
Auto Trait Implementations§
impl Forget for UnknownCallBuffer
impl Freeze for UnknownCallBuffer
impl Move for UnknownCallBuffer
impl RefUnwindSafe for UnknownCallBuffer
impl Send for UnknownCallBuffer
impl Sync for UnknownCallBuffer
impl Unpin for UnknownCallBuffer
impl UnsafeUnpin for UnknownCallBuffer
impl UnwindSafe for UnknownCallBuffer
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§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