pub struct EnvelopeDeltaEncoder { /* private fields */ }Expand description
Compacts a harness adapter’s outgoing provider envelopes, one stream’s turns at a time.
Hold one per session. It remembers a single base envelope per (stream, agent); see
[RecordedBase] for why that is both sufficient and bounded.
Implementations§
Source§impl EnvelopeDeltaEncoder
impl EnvelopeDeltaEncoder
Sourcepub fn compact(&mut self, event: &mut ActivityEvent) -> Compaction
pub fn compact(&mut self, event: &mut ActivityEvent) -> Compaction
Rewrites event’s raw value in place when it is a compactible provider envelope frame.
The returned Compaction says what happened; the event is modified only in the
Compaction::Compacted case.
Trait Implementations§
Source§impl Debug for EnvelopeDeltaEncoder
impl Debug for EnvelopeDeltaEncoder
Source§impl Default for EnvelopeDeltaEncoder
impl Default for EnvelopeDeltaEncoder
Source§fn default() -> EnvelopeDeltaEncoder
fn default() -> EnvelopeDeltaEncoder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for EnvelopeDeltaEncoder
impl RefUnwindSafe for EnvelopeDeltaEncoder
impl Send for EnvelopeDeltaEncoder
impl Sync for EnvelopeDeltaEncoder
impl Unpin for EnvelopeDeltaEncoder
impl UnsafeUnpin for EnvelopeDeltaEncoder
impl UnwindSafe for EnvelopeDeltaEncoder
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