#[non_exhaustive]pub enum SplitSource {
Sync(SplitExpression),
Async(Arc<dyn Fn(&Exchange) -> BoxValueFuture + Send + Sync>),
}Expand description
Fallible split source: a synchronous SplitExpression or a
language-backed asynchronous expression.
The async arm evaluates to a Value; fragments are derived with the
canonical split rules (string → non-empty line fragments, array → one
fragment per element). Evaluation errors propagate before any fragment
is materialized.
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.
Sync(SplitExpression)
Programmatic synchronous splitter.
Async(Arc<dyn Fn(&Exchange) -> BoxValueFuture + Send + Sync>)
Language-backed asynchronous expression.
Implementations§
Source§impl SplitSource
impl SplitSource
Trait Implementations§
Source§impl Clone for SplitSource
impl Clone for SplitSource
Auto Trait Implementations§
impl !RefUnwindSafe for SplitSource
impl !UnwindSafe for SplitSource
impl Freeze for SplitSource
impl Send for SplitSource
impl Sync for SplitSource
impl Unpin for SplitSource
impl UnsafeUnpin for SplitSource
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