Struct jormungandr::leadership::logs::internal::Logs
source · pub struct Logs {
entries: LruCache<LeadershipLogId, LeadershipLog>,
}
Fields§
§entries: LruCache<LeadershipLogId, LeadershipLog>
Implementations§
source§impl Logs
impl Logs
pub fn new(cap: usize) -> Self
pub fn insert(&mut self, log: LeadershipLog) -> LeadershipLogId
pub fn mark_wake(&mut self, leadership_log_id: &LeadershipLogId)
pub fn set_status( &mut self, leadership_log_id: &LeadershipLogId, status: LeadershipLogStatus )
pub fn mark_finished(&mut self, leadership_log_id: &LeadershipLogId)
pub fn logs(&self) -> impl Iterator<Item = &LeadershipLog>
Auto Trait Implementations§
impl RefUnwindSafe for Logs
impl Send for Logs
impl Sync for Logs
impl Unpin for Logs
impl UnwindSafe for Logs
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<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request