pub struct WriterProxyState {
pub proxy: WriterProxy,
pub received_cache: HistoryCache,
pub delivered_up_to: SequenceNumber,
pub assembler: FragmentAssembler,
pub pending_acknack_since: Option<Duration>,
}Expand description
Per-writer state: the proxy + separate receive state.
Every remote writer has its own SN space (§8.3.5.4), so also
its own received_cache, delivered_up_to and
FragmentAssembler. This way two writers with colliding SNs
(e.g. both starting at 1) can be received in parallel without issue.
Fields§
§proxy: WriterProxyWriter-proxy protocol state.
received_cache: HistoryCacheReceive cache for this writer.
delivered_up_to: SequenceNumberHighest SN delivered to the app.
assembler: FragmentAssemblerFragment reassembly for this writer.
pending_acknack_since: Option<Duration>Time since which an ACKNACK/NACK_FRAG to this writer is
pending. None = nothing pending.
Trait Implementations§
Source§impl Clone for WriterProxyState
impl Clone for WriterProxyState
Source§fn clone(&self) -> WriterProxyState
fn clone(&self) -> WriterProxyState
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for WriterProxyState
impl RefUnwindSafe for WriterProxyState
impl Send for WriterProxyState
impl Sync for WriterProxyState
impl Unpin for WriterProxyState
impl UnsafeUnpin for WriterProxyState
impl UnwindSafe for WriterProxyState
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