pub struct TransformOutput { /* private fields */ }Expand description
Buffered output from one packet transform invocation.
Implementations§
Source§impl TransformOutput
impl TransformOutput
Sourcepub fn records(&self) -> &[PacketRecord]
pub fn records(&self) -> &[PacketRecord]
Buffered records in emission order.
Sourcepub fn push(&mut self, record: PacketRecord) -> &mut Self
pub fn push(&mut self, record: PacketRecord) -> &mut Self
Append one output record.
Sourcepub fn emit(&mut self, record: PacketRecord) -> Result<()>
pub fn emit(&mut self, record: PacketRecord) -> Result<()>
Append one output record through a callback-compatible method.
Sourcepub fn into_records(self) -> Vec<PacketRecord>
pub fn into_records(self) -> Vec<PacketRecord>
Consume the output buffer and return records in emission order.
Trait Implementations§
Source§impl Clone for TransformOutput
impl Clone for TransformOutput
Source§fn clone(&self) -> TransformOutput
fn clone(&self) -> TransformOutput
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 TransformOutput
impl Debug for TransformOutput
Source§impl Default for TransformOutput
impl Default for TransformOutput
Source§fn default() -> TransformOutput
fn default() -> TransformOutput
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for TransformOutput
impl !UnwindSafe for TransformOutput
impl Freeze for TransformOutput
impl Send for TransformOutput
impl Sync for TransformOutput
impl Unpin for TransformOutput
impl UnsafeUnpin for TransformOutput
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