pub struct SimdStreamProcessor { /* private fields */ }
Expand description
High-level SIMD streaming interface
Implementations§
Source§impl SimdStreamProcessor
impl SimdStreamProcessor
Sourcepub fn new(config: SimdConfig) -> Self
pub fn new(config: SimdConfig) -> Self
Create a new SIMD stream processor
Sourcepub fn process_to_json(
&mut self,
frames: &[StreamFrame],
) -> Result<Bytes, Error>
pub fn process_to_json( &mut self, frames: &[StreamFrame], ) -> Result<Bytes, Error>
Process frames to JSON format with SIMD acceleration
Sourcepub fn process_to_sse(&mut self, frames: &[StreamFrame]) -> Result<Bytes, Error>
pub fn process_to_sse(&mut self, frames: &[StreamFrame]) -> Result<Bytes, Error>
Process frames to Server-Sent Events format
Sourcepub fn process_to_ndjson(
&mut self,
frames: &[StreamFrame],
) -> Result<Bytes, Error>
pub fn process_to_ndjson( &mut self, frames: &[StreamFrame], ) -> Result<Bytes, Error>
Process frames to NDJSON with buffered approach
Sourcepub fn stats(&self) -> Option<&SerializationStats>
pub fn stats(&self) -> Option<&SerializationStats>
Get processing statistics if enabled
Auto Trait Implementations§
impl Freeze for SimdStreamProcessor
impl RefUnwindSafe for SimdStreamProcessor
impl Send for SimdStreamProcessor
impl Sync for SimdStreamProcessor
impl Unpin for SimdStreamProcessor
impl UnwindSafe for SimdStreamProcessor
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