pub trait GroupWorkers: Send + Sync {
// Required methods
fn up<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
me: &'life1 str,
plan: &'life2 GroupPlan,
) -> Pin<Box<dyn Future<Output = Result<(), RemoteError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
fn down<'life0, 'life1, 'async_trait>(
&'life0 self,
group: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<(), RemoteError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
}Expand description
Starts and stops the processes of a cross-machine swap group (a Ray worker, an
rpc-server). The application provides it; this crate has no such adapters.
Required Methods§
Sourcefn up<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
me: &'life1 str,
plan: &'life2 GroupPlan,
) -> Pin<Box<dyn Future<Output = Result<(), RemoteError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn up<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
me: &'life1 str,
plan: &'life2 GroupPlan,
) -> Pin<Box<dyn Future<Output = Result<(), RemoteError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Join plan as me (the leader or a member), after the plan’s drop models unloaded.
fn down<'life0, 'life1, 'async_trait>(
&'life0 self,
group: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<(), RemoteError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".