pub struct SimdJsonParser { /* private fields */ }Expand description
High-performance JSON parser with SIMD acceleration.
Implementations§
Source§impl SimdJsonParser
impl SimdJsonParser
Sourcepub fn parse_request(&self, input: &[u8]) -> Result<JSONRPCRequest>
pub fn parse_request(&self, input: &[u8]) -> Result<JSONRPCRequest>
Parse a JSON-RPC request from bytes.
Sourcepub fn parse_response(&self, input: &[u8]) -> Result<JSONRPCResponse>
pub fn parse_response(&self, input: &[u8]) -> Result<JSONRPCResponse>
Parse a JSON-RPC response from bytes.
Sourcepub fn parse_batch_requests(&self, input: &[u8]) -> Result<Vec<JSONRPCRequest>>
pub fn parse_batch_requests(&self, input: &[u8]) -> Result<Vec<JSONRPCRequest>>
Parse multiple JSON-RPC requests in parallel.
Sourcepub fn parse_batch_responses(
&self,
input: &[u8],
) -> Result<Vec<JSONRPCResponse>>
pub fn parse_batch_responses( &self, input: &[u8], ) -> Result<Vec<JSONRPCResponse>>
Parse multiple JSON-RPC responses in parallel.
Sourcepub fn get_metrics(&self) -> ParsingMetrics
pub fn get_metrics(&self) -> ParsingMetrics
Get current parsing metrics.
Sourcepub fn get_cpu_features(&self) -> CpuFeatures
pub fn get_cpu_features(&self) -> CpuFeatures
Get detected CPU features.
Trait Implementations§
Source§impl Debug for SimdJsonParser
impl Debug for SimdJsonParser
Auto Trait Implementations§
impl Freeze for SimdJsonParser
impl RefUnwindSafe for SimdJsonParser
impl Send for SimdJsonParser
impl Sync for SimdJsonParser
impl Unpin for SimdJsonParser
impl UnwindSafe for SimdJsonParser
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