pub struct DaemonStatusState { /* private fields */ }Expand description
Serialized status coordinator shared by daemon clients.
Implementations§
Source§impl DaemonStatusState
impl DaemonStatusState
pub fn new(path: &Path, status: DaemonStatus) -> Self
pub async fn update_client_sessions( &self, client_sessions: u32, ) -> Result<(), Box<dyn Error>>
pub async fn update_mutation_lease_owner( &self, owner: Option<String>, ) -> Result<(), Box<dyn Error>>
pub async fn begin_workflow( &self, request_id: &str, owner_id: &str, ) -> Result<(), Box<dyn Error>>
pub async fn finish_workflow( &self, request_id: &str, owner_id: &str, ) -> Result<(), Box<dyn Error>>
pub async fn record_interrupted_workflows( &self, ) -> Result<usize, Box<dyn Error>>
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for DaemonStatusState
impl !RefUnwindSafe for DaemonStatusState
impl Send for DaemonStatusState
impl Sync for DaemonStatusState
impl Unpin for DaemonStatusState
impl UnsafeUnpin for DaemonStatusState
impl UnwindSafe for DaemonStatusState
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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