pub struct DropAllTransform { /* private fields */ }Expand description
Test and fixture transform that drops every input record.
Implementations§
Source§impl DropAllTransform
impl DropAllTransform
Sourcepub const fn dropped_count(&self) -> usize
pub const fn dropped_count(&self) -> usize
Number of input records dropped.
Trait Implementations§
Source§impl Clone for DropAllTransform
impl Clone for DropAllTransform
Source§fn clone(&self) -> DropAllTransform
fn clone(&self) -> DropAllTransform
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 DropAllTransform
impl Debug for DropAllTransform
Source§impl Default for DropAllTransform
impl Default for DropAllTransform
Source§fn default() -> DropAllTransform
fn default() -> DropAllTransform
Returns the “default value” for a type. Read more
Source§impl PacketTransform for DropAllTransform
impl PacketTransform for DropAllTransform
Source§fn name(&self) -> &'static str
fn name(&self) -> &'static str
Stable transform name used in diagnostics and transform traces.
Source§fn transform(
&mut self,
_record: PacketRecord,
_emit: &mut dyn FnMut(PacketRecord) -> Result<()>,
) -> Result<()>
fn transform( &mut self, _record: PacketRecord, _emit: &mut dyn FnMut(PacketRecord) -> Result<()>, ) -> Result<()>
Transform one input record and emit zero or more output records.
Source§fn transform_to_output(
&mut self,
record: PacketRecord,
) -> Result<TransformOutput>where
Self: Sized,
fn transform_to_output(
&mut self,
record: PacketRecord,
) -> Result<TransformOutput>where
Self: Sized,
Run the transform and collect emitted records into a small buffer.
Auto Trait Implementations§
impl Freeze for DropAllTransform
impl RefUnwindSafe for DropAllTransform
impl Send for DropAllTransform
impl Sync for DropAllTransform
impl Unpin for DropAllTransform
impl UnsafeUnpin for DropAllTransform
impl UnwindSafe for DropAllTransform
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