pub struct GpbDecoder { /* private fields */ }Expand description
High-performance Protocol Buffers decoder for FIX messages.
Implementations§
Source§impl GpbDecoder
impl GpbDecoder
Sourcepub fn with_config(config: DecodeConfig) -> Self
pub fn with_config(config: DecodeConfig) -> Self
Create decoder with custom configuration.
Sourcepub fn decode(&self, data: &[u8]) -> Result<FixMessage, GpbError>
pub fn decode(&self, data: &[u8]) -> Result<FixMessage, GpbError>
Decode a Protocol Buffers message to FIX format.
Sourcepub fn decode_batch(&self, data: &[u8]) -> Result<Vec<FixMessage>, GpbError>
pub fn decode_batch(&self, data: &[u8]) -> Result<Vec<FixMessage>, GpbError>
Decode a batch of messages.
Trait Implementations§
Source§impl Debug for GpbDecoder
impl Debug for GpbDecoder
Auto Trait Implementations§
impl Freeze for GpbDecoder
impl RefUnwindSafe for GpbDecoder
impl Send for GpbDecoder
impl Sync for GpbDecoder
impl Unpin for GpbDecoder
impl UnwindSafe for GpbDecoder
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