Struct jormungandr::leadership::Logs
source · pub struct Logs(Arc<RwLock<Logs>>);
Expand description
all leadership logs, allow for following up on the different entity of the blockchain
Tuple Fields§
§0: Arc<RwLock<Logs>>
Implementations§
source§impl Logs
impl Logs
sourcepub fn new(cap: usize) -> Self
pub fn new(cap: usize) -> Self
create a Leadership Logs. Logs will be removed once the Logs
passed
beyond a certain number of entries.
pub async fn insert( &self, log: LeadershipLog ) -> Result<LeadershipLogHandle, ()>
async fn mark_wake(&self, leadership_log_id: LeadershipLogId)
async fn set_status( &self, leadership_log_id: LeadershipLogId, status: LeadershipLogStatus )
async fn mark_finished(&self, leadership_log_id: LeadershipLogId)
pub async fn logs(&self) -> Vec<LeadershipLog>
Trait Implementations§
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