pub struct ZeroAllocMarketData<'a> { /* private fields */ }Expand description
Zero-allocation market data processing
Implementations§
Source§impl<'a> ZeroAllocMarketData<'a>
impl<'a> ZeroAllocMarketData<'a>
Sourcepub fn parse(message_bytes: &'a mut [u8]) -> Result<Self>
pub fn parse(message_bytes: &'a mut [u8]) -> Result<Self>
Parse a market data message with zero allocations
Sourcepub fn message_type(&self) -> Option<&str>
pub fn message_type(&self) -> Option<&str>
Get the message type without allocation
Sourcepub fn event_time(&self) -> Option<u64>
pub fn event_time(&self) -> Option<u64>
Get the event time without allocation
Sourcepub fn bid_price_str(&self) -> Option<&str>
pub fn bid_price_str(&self) -> Option<&str>
Get bid price for ticker updates
Sourcepub fn ask_price_str(&self) -> Option<&str>
pub fn ask_price_str(&self) -> Option<&str>
Get ask price for ticker updates
Sourcepub fn last_price_str(&self) -> Option<&str>
pub fn last_price_str(&self) -> Option<&str>
Get last price for ticker updates
Sourcepub fn volume_str(&self) -> Option<&str>
pub fn volume_str(&self) -> Option<&str>
Get volume for ticker updates
Sourcepub fn is_snapshot(&self) -> bool
pub fn is_snapshot(&self) -> bool
Check if this is a snapshot or update
Auto Trait Implementations§
impl<'a> Freeze for ZeroAllocMarketData<'a>
impl<'a> RefUnwindSafe for ZeroAllocMarketData<'a>
impl<'a> Send for ZeroAllocMarketData<'a>
impl<'a> Sync for ZeroAllocMarketData<'a>
impl<'a> Unpin for ZeroAllocMarketData<'a>
impl<'a> UnwindSafe for ZeroAllocMarketData<'a>
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