Struct jormungandr::leadership::LeadershipLogHandle
source · pub struct LeadershipLogHandle {
internal_id: LeadershipLogId,
logs: Logs,
}
Expand description
leadership log handle. will allow to update the status of the log
without having to hold the Logs
Fields§
§internal_id: LeadershipLogId
§logs: Logs
Implementations§
source§impl LeadershipLogHandle
impl LeadershipLogHandle
sourcepub async fn mark_wake(&self)
pub async fn mark_wake(&self)
make a leadership event as triggered.
This should be called when the leadership event has started.
panic
on non-release build, this function will panic if the log was already marked as awaken.
pub async fn set_status(&self, status: LeadershipLogStatus)
sourcepub async fn mark_finished(&self)
pub async fn mark_finished(&self)
make a leadership event as finished.
This should be called when the leadership event has finished its scheduled action.
panic
on non-release build, this function will panic if the log was already marked as finished.
Trait Implementations§
source§impl Clone for LeadershipLogHandle
impl Clone for LeadershipLogHandle
source§fn clone(&self) -> LeadershipLogHandle
fn clone(&self) -> LeadershipLogHandle
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for LeadershipLogHandle
impl Send for LeadershipLogHandle
impl Sync for LeadershipLogHandle
impl Unpin for LeadershipLogHandle
impl !UnwindSafe for LeadershipLogHandle
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