pub struct LogIdMap { /* private fields */ }
Expand description
Map to capture LogId
s, and combine all informations set
for a LogId
inside a LogIdEntry
.
Implementations
sourceimpl LogIdMap
impl LogIdMap
sourcepub fn get_last_finalized_id(&self) -> LogId
pub fn get_last_finalized_id(&self) -> LogId
Returns the last LogId
that was
entered in the map, and got marked as drainable
.
sourcepub fn get_entries(&self, id: LogId) -> Option<Vec<LogIdEntry>>
pub fn get_entries(&self, id: LogId) -> Option<Vec<LogIdEntry>>
sourcepub fn get_entries_unsafe(&self, id: LogId) -> Option<Vec<LogIdEntry>>
pub fn get_entries_unsafe(&self, id: LogId) -> Option<Vec<LogIdEntry>>
sourcepub fn drain_entries(&self, id: LogId) -> Option<Vec<LogIdEntry>>
pub fn drain_entries(&self, id: LogId) -> Option<Vec<LogIdEntry>>
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for LogIdMap
impl Send for LogIdMap
impl Sync for LogIdMap
impl Unpin for LogIdMap
impl UnwindSafe for LogIdMap
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more