pub struct AgentStreamSink { /* private fields */ }Expand description
In-memory sink used by tools that need to merge child stream records into the parent stream.
Implementations§
Source§impl AgentStreamSink
impl AgentStreamSink
Sourcepub fn push(&self, record: AgentStreamRecord)
pub fn push(&self, record: AgentStreamRecord)
Add one record to the sink.
Sourcepub fn extend(&self, records: impl IntoIterator<Item = AgentStreamRecord>)
pub fn extend(&self, records: impl IntoIterator<Item = AgentStreamRecord>)
Add several records to the sink.
Sourcepub fn drain(&self) -> Vec<AgentStreamRecord>
pub fn drain(&self) -> Vec<AgentStreamRecord>
Drain all currently buffered records.
Trait Implementations§
Source§impl Clone for AgentStreamSink
impl Clone for AgentStreamSink
Source§fn clone(&self) -> AgentStreamSink
fn clone(&self) -> AgentStreamSink
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 moreSource§impl Debug for AgentStreamSink
impl Debug for AgentStreamSink
Source§impl Default for AgentStreamSink
impl Default for AgentStreamSink
Source§fn default() -> AgentStreamSink
fn default() -> AgentStreamSink
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for AgentStreamSink
impl RefUnwindSafe for AgentStreamSink
impl Send for AgentStreamSink
impl Sync for AgentStreamSink
impl Unpin for AgentStreamSink
impl UnsafeUnpin for AgentStreamSink
impl UnwindSafe for AgentStreamSink
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