pub struct EurekaLog {
pub events: Vec<EurekaEvent>,
pub next_id: u64,
}Expand description
Persistent eureka log.
Fields§
§events: Vec<EurekaEvent>§next_id: u64Implementations§
Source§impl EurekaLog
impl EurekaLog
Sourcepub fn load_or_init(output_dir: &Path) -> Self
pub fn load_or_init(output_dir: &Path) -> Self
Load from EUR1 file or return empty.
Sourcepub fn remap_indexes(&mut self, old_to_new: &[u32])
pub fn remap_indexes(&mut self, old_to_new: &[u32])
Remap event block indices after a rebuild changed the block layout.
old_to_new[old_idx] = new_idx; events whose block no longer exists
are dropped.
Auto Trait Implementations§
impl Freeze for EurekaLog
impl RefUnwindSafe for EurekaLog
impl Send for EurekaLog
impl Sync for EurekaLog
impl Unpin for EurekaLog
impl UnsafeUnpin for EurekaLog
impl UnwindSafe for EurekaLog
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
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more