pub enum CoordinatorClient {
Local(DynCoordinator),
}Expand description
a client wrapper that can either be a remote gRPC client or a local reference
Variants§
Local(DynCoordinator)
Implementations§
Source§impl CoordinatorClient
impl CoordinatorClient
Sourcepub fn from_mock(mock: Arc<MockCoordinator>) -> Self
pub fn from_mock(mock: Arc<MockCoordinator>) -> Self
Create a CoordinatorClient from a MockCoordinator for testing.
pub async fn reset(&self, flags: ResetRequest) -> Result<(), Status>
pub async fn load_library(&self, library: Library) -> Result<(), Status>
pub async fn unload(&self, _unload: UnloadLibrary) -> Result<(), Status>
pub async fn execute( &self, instruction: Instruction, ) -> Result<ExecuteResponse, Status>
pub async fn decode(&self, outcomes: Outcomes) -> Result<Readouts, Status>
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for CoordinatorClient
impl !UnwindSafe for CoordinatorClient
impl Forget for CoordinatorClient
impl Freeze for CoordinatorClient
impl Move for CoordinatorClient
impl Send for CoordinatorClient
impl Sync for CoordinatorClient
impl Unpin for CoordinatorClient
impl UnsafeUnpin for CoordinatorClient
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 moreSource§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