#[non_exhaustive]pub enum TransformResult {
Sample(Sample),
Samples(Vec<Sample>),
Skip,
Error(Error),
}Expand description
Result of applying a transform to a sample.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Sample(Sample)
The transformed sample.
Samples(Vec<Sample>)
Yield multiple samples from one input.
Skip
Skip this sample (e.g., filtered out).
Error(Error)
An error occurred during transformation.
Auto Trait Implementations§
impl !RefUnwindSafe for TransformResult
impl !UnwindSafe for TransformResult
impl Freeze for TransformResult
impl Send for TransformResult
impl Sync for TransformResult
impl Unpin for TransformResult
impl UnsafeUnpin for TransformResult
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