pub struct InMemorySeqStore { /* private fields */ }Expand description
In-memory FixSeqStore backed by atomics. Counters start at 1, matching
the FIX convention that the first message of a session carries
MsgSeqNum=1.
Implementations§
Trait Implementations§
Source§impl Debug for InMemorySeqStore
impl Debug for InMemorySeqStore
Source§impl Default for InMemorySeqStore
impl Default for InMemorySeqStore
Source§impl FixSeqStore for InMemorySeqStore
impl FixSeqStore for InMemorySeqStore
Source§fn next_out<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = u64> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn next_out<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = u64> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
The next outbound
MsgSeqNum, advancing the counter.Source§fn peek_out<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = u64> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn peek_out<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = u64> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Peek the next outbound
MsgSeqNum without advancing (for building a
resend range or diagnostics).Source§fn observed_in<'life0, 'async_trait>(
&'life0 self,
n: u64,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn observed_in<'life0, 'async_trait>(
&'life0 self,
n: u64,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Record that an inbound message with
MsgSeqNum == n was processed.Auto Trait Implementations§
impl !Freeze for InMemorySeqStore
impl RefUnwindSafe for InMemorySeqStore
impl Send for InMemorySeqStore
impl Sync for InMemorySeqStore
impl Unpin for InMemorySeqStore
impl UnsafeUnpin for InMemorySeqStore
impl UnwindSafe for InMemorySeqStore
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