pub struct DeltaSender { /* private fields */ }Expand description
Producer half handed to tools as ToolChannels::tx_delta. send never
blocks and never fails: full channels coalesce, closed channels drop —
both exactly counted.
Implementations§
Source§impl DeltaSender
impl DeltaSender
Sourcepub fn counters(&self) -> Arc<OutputCounters> ⓘ
pub fn counters(&self) -> Arc<OutputCounters> ⓘ
Shared counters handle (also visible from the receiver/forwarder).
Sourcepub fn spill_handle(&self) -> Option<SpillHandle>
pub fn spill_handle(&self) -> Option<SpillHandle>
Read handle onto this call’s spill artifact, when policy enabled one.
Sourcepub fn send(&self, chunk: String)
pub fn send(&self, chunk: String)
Non-blocking bounded send. Policy, in order:
- account production (and spill the FULL chunk when enabled — before any cap/coalesce/drop decision);
- cap the retained chunk at
DELTA_MAX_CHUNK_BYTES(UTF-8-safe); - if the overflow buffer is non-empty, coalesce there (preserves production order — channel items are always older than overflow content);
- else try the bounded channel; on Full coalesce, on Closed count a drop and return immediately (the producer is RELEASED, never blocked, once the consumer is gone).
Auto Trait Implementations§
impl Freeze for DeltaSender
impl RefUnwindSafe for DeltaSender
impl Send for DeltaSender
impl Sync for DeltaSender
impl Unpin for DeltaSender
impl UnsafeUnpin for DeltaSender
impl UnwindSafe for DeltaSender
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
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
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