pub struct ZeroAllocOrderUpdate<'a> { /* private fields */ }Expand description
Zero-allocation order update processing
Implementations§
Source§impl<'a> ZeroAllocOrderUpdate<'a>
impl<'a> ZeroAllocOrderUpdate<'a>
Sourcepub fn parse(message_bytes: &'a mut [u8]) -> Result<Self>
pub fn parse(message_bytes: &'a mut [u8]) -> Result<Self>
Parse an order update 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 client_order_id(&self) -> Option<&str>
pub fn client_order_id(&self) -> Option<&str>
Get the client order ID without allocation
Sourcepub fn quantity_str(&self) -> Option<&str>
pub fn quantity_str(&self) -> Option<&str>
Get the quantity as string without allocation
Sourcepub fn to_owned_values(&self) -> OrderUpdateOwned
pub fn to_owned_values(&self) -> OrderUpdateOwned
Convert to owned values only when necessary
Auto Trait Implementations§
impl<'a> Freeze for ZeroAllocOrderUpdate<'a>
impl<'a> RefUnwindSafe for ZeroAllocOrderUpdate<'a>
impl<'a> Send for ZeroAllocOrderUpdate<'a>
impl<'a> Sync for ZeroAllocOrderUpdate<'a>
impl<'a> Unpin for ZeroAllocOrderUpdate<'a>
impl<'a> UnwindSafe for ZeroAllocOrderUpdate<'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