pub struct BinaryMessageProcessor { /* private fields */ }Expand description
Optimized binary message processor for exchanges
Uses SmallVec to avoid heap allocations for typical message sizes
Implementations§
Source§impl BinaryMessageProcessor
impl BinaryMessageProcessor
Sourcepub fn process_message(&mut self, data: Vec<u8>) -> Result<OwnedValue>
pub fn process_message(&mut self, data: Vec<u8>) -> Result<OwnedValue>
Process a binary message with zero heap allocation for small messages
This method reuses an internal SmallVec buffer, keeping small messages entirely on the stack.
Sourcepub fn process_slice(&mut self, data: &[u8]) -> Result<OwnedValue>
pub fn process_slice(&mut self, data: &[u8]) -> Result<OwnedValue>
Process a slice directly
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BinaryMessageProcessor
impl RefUnwindSafe for BinaryMessageProcessor
impl Send for BinaryMessageProcessor
impl Sync for BinaryMessageProcessor
impl Unpin for BinaryMessageProcessor
impl UnwindSafe for BinaryMessageProcessor
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