pub struct InMemoryStorage { /* private fields */ }Implementations§
Source§impl InMemoryStorage
impl InMemoryStorage
pub fn new() -> InMemoryStorage
Trait Implementations§
Source§impl Default for InMemoryStorage
impl Default for InMemoryStorage
Source§fn default() -> InMemoryStorage
fn default() -> InMemoryStorage
Returns the “default value” for a type. Read more
Source§impl MessagesStorage for InMemoryStorage
impl MessagesStorage for InMemoryStorage
fn fetch_range( &mut self, _range: RangeInclusive<SeqNum>, ) -> impl Iterator<Item = &[u8]>
fn store(&mut self, seq_num: SeqNum, data: &[u8])
fn next_sender_msg_seq_num(&self) -> SeqNum
fn next_target_msg_seq_num(&self) -> SeqNum
fn set_next_sender_msg_seq_num(&mut self, seq_num: SeqNum)
fn set_next_target_msg_seq_num(&mut self, seq_num: SeqNum)
fn incr_next_sender_msg_seq_num(&mut self)
fn incr_next_target_msg_seq_num(&mut self)
fn reset(&mut self)
Auto Trait Implementations§
impl Freeze for InMemoryStorage
impl RefUnwindSafe for InMemoryStorage
impl Send for InMemoryStorage
impl Sync for InMemoryStorage
impl Unpin for InMemoryStorage
impl UnwindSafe for InMemoryStorage
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