pub struct ConductorClient { /* private fields */ }Expand description
A client for communicating with the conductor service via RPC
Implementations§
Source§impl ConductorClient
impl ConductorClient
Sourcepub async fn leader(&self) -> Result<bool, ConductorError>
pub async fn leader(&self) -> Result<bool, ConductorError>
Check if the node is a leader of the conductor.
Sourcepub async fn conductor_active(&self) -> Result<bool, ConductorError>
pub async fn conductor_active(&self) -> Result<bool, ConductorError>
Check if the conductor is active.
Sourcepub async fn override_leader(&self) -> Result<(), ConductorError>
pub async fn override_leader(&self) -> Result<(), ConductorError>
Override the leader of the conductor.
Sourcepub async fn commit_unsafe_payload(
&self,
payload: &OpExecutionPayloadEnvelope,
) -> Result<(), ConductorError>
pub async fn commit_unsafe_payload( &self, payload: &OpExecutionPayloadEnvelope, ) -> Result<(), ConductorError>
Commit an unsafe payload to the conductor.
Trait Implementations§
Source§impl Clone for ConductorClient
impl Clone for ConductorClient
Source§fn clone(&self) -> ConductorClient
fn clone(&self) -> ConductorClient
Returns a duplicate 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 Freeze for ConductorClient
impl !RefUnwindSafe for ConductorClient
impl Send for ConductorClient
impl Sync for ConductorClient
impl Unpin for ConductorClient
impl !UnwindSafe for ConductorClient
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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