pub struct BackendDelta {
pub slot: BackendSlot,
pub change: BackendChange,
}Expand description
One accounting change the core decided and the embedder performs.
LIFECYCLE §9 invariant 14 is a balance, and this is the ledger it balances:
every BackendChange::StreamsStarted unit the mux emits is covered by
exactly one BackendChange::StreamsEnded unit against the same slot.
Because every write to Backend::active_requests and
Backend::active_connections on the mux path now goes through
Mux::apply_backend_deltas, reconciling the emitted stream to zero is a
direct test of the invariant rather than a proxy for it.
Fields§
§slot: BackendSlotThe registry entry to charge.
change: BackendChangeWhat to charge it.
Trait Implementations§
Source§impl Clone for BackendDelta
impl Clone for BackendDelta
impl Copy for BackendDelta
Source§impl Debug for BackendDelta
impl Debug for BackendDelta
impl Eq for BackendDelta
Source§impl PartialEq for BackendDelta
impl PartialEq for BackendDelta
impl StructuralPartialEq for BackendDelta
Auto Trait Implementations§
impl Freeze for BackendDelta
impl RefUnwindSafe for BackendDelta
impl Send for BackendDelta
impl Sync for BackendDelta
impl Unpin for BackendDelta
impl UnsafeUnpin for BackendDelta
impl UnwindSafe for BackendDelta
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§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
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.