pub struct MutationBatch {
pub span: Span,
pub mutations: SmallVec<[Mutation; 6]>,
pub slot_context: Option<SlotContext>,
}Expand description
Envelope type that carries mutations along with their originating span context.
This enables trace context propagation across the mpsc channel boundary from the Vixen parser to the Projector.
Fields§
§span: SpanThe span from which these mutations originated
mutations: SmallVec<[Mutation; 6]>The mutations to process
slot_context: Option<SlotContext>Slot context for ordering (optional for backward compatibility)
Implementations§
Source§impl MutationBatch
impl MutationBatch
pub fn new(mutations: SmallVec<[Mutation; 6]>) -> Self
pub fn with_span(span: Span, mutations: SmallVec<[Mutation; 6]>) -> Self
pub fn with_slot_context( mutations: SmallVec<[Mutation; 6]>, slot_context: SlotContext, ) -> Self
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MutationBatch
impl !RefUnwindSafe for MutationBatch
impl Send for MutationBatch
impl Sync for MutationBatch
impl Unpin for MutationBatch
impl !UnwindSafe for MutationBatch
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