pub struct ControlPlaneCoordinator<C> { /* private fields */ }Expand description
Coordinates heartbeat results with the runtime operational mode.
Implementations§
Source§impl<C> ControlPlaneCoordinator<C>where
C: ControlPlaneProvider,
impl<C> ControlPlaneCoordinator<C>where
C: ControlPlaneProvider,
Sourcepub fn new(client: C, policy: HeartbeatPolicy) -> Self
pub fn new(client: C, policy: HeartbeatPolicy) -> Self
Creates a coordinator with an explicit offline policy.
Sourcepub async fn heartbeat_once(
&self,
request: HeartbeatRequest,
) -> ControlPlaneResult<RuntimeOperationalMode>
pub async fn heartbeat_once( &self, request: HeartbeatRequest, ) -> ControlPlaneResult<RuntimeOperationalMode>
Sends one heartbeat and returns the resulting operational mode.
Auto Trait Implementations§
impl<C> Freeze for ControlPlaneCoordinator<C>where
C: Freeze,
impl<C> RefUnwindSafe for ControlPlaneCoordinator<C>where
C: RefUnwindSafe,
impl<C> Send for ControlPlaneCoordinator<C>where
C: Send,
impl<C> Sync for ControlPlaneCoordinator<C>where
C: Sync,
impl<C> Unpin for ControlPlaneCoordinator<C>where
C: Unpin,
impl<C> UnsafeUnpin for ControlPlaneCoordinator<C>where
C: UnsafeUnpin,
impl<C> UnwindSafe for ControlPlaneCoordinator<C>where
C: UnwindSafe,
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