pub trait ProcMessageClient: Send + Sync {
// Required methods
fn joined<'life0, 'life1, 'async_trait>(
&'life0 self,
caps: &'life1 (impl 'async_trait + CanSend),
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn state<'life0, 'life1, 'async_trait>(
&'life0 self,
caps: &'life1 (impl 'async_trait + CanSend + CanOpenPort),
) -> Pin<Box<dyn Future<Output = Result<ProcState, Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn spawn<'life0, 'life1, 'async_trait>(
&'life0 self,
caps: &'life1 (impl 'async_trait + CanSend),
actor_type: String,
actor_name: String,
params_data: Data,
status_port: PortRef<Index>,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn spawn_proc<'life0, 'life1, 'async_trait>(
&'life0 self,
caps: &'life1 (impl 'async_trait + CanSend),
env: Environment,
world_id: WorldId,
proc_ids: Vec<ProcId>,
world_size: usize,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn update_supervision<'life0, 'life1, 'async_trait>(
&'life0 self,
caps: &'life1 (impl 'async_trait + CanSend),
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn stop<'life0, 'life1, 'async_trait>(
&'life0 self,
caps: &'life1 (impl 'async_trait + CanSend + CanOpenPort),
timeout: Duration,
) -> Pin<Box<dyn Future<Output = Result<ProcStopResult, Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn snapshot<'life0, 'life1, 'async_trait>(
&'life0 self,
caps: &'life1 (impl 'async_trait + CanSend + CanOpenPort),
) -> Pin<Box<dyn Future<Output = Result<ProcSnapshot, Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn local_addr<'life0, 'life1, 'async_trait>(
&'life0 self,
caps: &'life1 (impl 'async_trait + CanSend + CanOpenPort),
) -> Pin<Box<dyn Future<Output = Result<ChannelAddr, Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn py_spy_dump<'life0, 'life1, 'async_trait>(
&'life0 self,
caps: &'life1 (impl 'async_trait + CanSend + CanOpenPort),
config: PySpyConfig,
) -> Pin<Box<dyn Future<Output = Result<StackTrace, Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
}
Expand description
The custom client trait for this message type.
Required Methods§
Sourcefn joined<'life0, 'life1, 'async_trait>(
&'life0 self,
caps: &'life1 (impl 'async_trait + CanSend),
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn joined<'life0, 'life1, 'async_trait>(
&'life0 self,
caps: &'life1 (impl 'async_trait + CanSend),
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
The generated client method for this enum variant.
Sourcefn state<'life0, 'life1, 'async_trait>(
&'life0 self,
caps: &'life1 (impl 'async_trait + CanSend + CanOpenPort),
) -> Pin<Box<dyn Future<Output = Result<ProcState, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn state<'life0, 'life1, 'async_trait>(
&'life0 self,
caps: &'life1 (impl 'async_trait + CanSend + CanOpenPort),
) -> Pin<Box<dyn Future<Output = Result<ProcState, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
The generated client method for this enum variant.
Sourcefn spawn<'life0, 'life1, 'async_trait>(
&'life0 self,
caps: &'life1 (impl 'async_trait + CanSend),
actor_type: String,
actor_name: String,
params_data: Data,
status_port: PortRef<Index>,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn spawn<'life0, 'life1, 'async_trait>(
&'life0 self,
caps: &'life1 (impl 'async_trait + CanSend),
actor_type: String,
actor_name: String,
params_data: Data,
status_port: PortRef<Index>,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
The generated client method for this enum variant.
Sourcefn spawn_proc<'life0, 'life1, 'async_trait>(
&'life0 self,
caps: &'life1 (impl 'async_trait + CanSend),
env: Environment,
world_id: WorldId,
proc_ids: Vec<ProcId>,
world_size: usize,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn spawn_proc<'life0, 'life1, 'async_trait>(
&'life0 self,
caps: &'life1 (impl 'async_trait + CanSend),
env: Environment,
world_id: WorldId,
proc_ids: Vec<ProcId>,
world_size: usize,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
The generated client method for this enum variant.
Sourcefn update_supervision<'life0, 'life1, 'async_trait>(
&'life0 self,
caps: &'life1 (impl 'async_trait + CanSend),
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn update_supervision<'life0, 'life1, 'async_trait>(
&'life0 self,
caps: &'life1 (impl 'async_trait + CanSend),
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
The generated client method for this enum variant.
Sourcefn stop<'life0, 'life1, 'async_trait>(
&'life0 self,
caps: &'life1 (impl 'async_trait + CanSend + CanOpenPort),
timeout: Duration,
) -> Pin<Box<dyn Future<Output = Result<ProcStopResult, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn stop<'life0, 'life1, 'async_trait>(
&'life0 self,
caps: &'life1 (impl 'async_trait + CanSend + CanOpenPort),
timeout: Duration,
) -> Pin<Box<dyn Future<Output = Result<ProcStopResult, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
The generated client method for this enum variant.
Sourcefn snapshot<'life0, 'life1, 'async_trait>(
&'life0 self,
caps: &'life1 (impl 'async_trait + CanSend + CanOpenPort),
) -> Pin<Box<dyn Future<Output = Result<ProcSnapshot, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn snapshot<'life0, 'life1, 'async_trait>(
&'life0 self,
caps: &'life1 (impl 'async_trait + CanSend + CanOpenPort),
) -> Pin<Box<dyn Future<Output = Result<ProcSnapshot, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
The generated client method for this enum variant.
Sourcefn local_addr<'life0, 'life1, 'async_trait>(
&'life0 self,
caps: &'life1 (impl 'async_trait + CanSend + CanOpenPort),
) -> Pin<Box<dyn Future<Output = Result<ChannelAddr, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn local_addr<'life0, 'life1, 'async_trait>(
&'life0 self,
caps: &'life1 (impl 'async_trait + CanSend + CanOpenPort),
) -> Pin<Box<dyn Future<Output = Result<ChannelAddr, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
The generated client method for this enum variant.
Sourcefn py_spy_dump<'life0, 'life1, 'async_trait>(
&'life0 self,
caps: &'life1 (impl 'async_trait + CanSend + CanOpenPort),
config: PySpyConfig,
) -> Pin<Box<dyn Future<Output = Result<StackTrace, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn py_spy_dump<'life0, 'life1, 'async_trait>(
&'life0 self,
caps: &'life1 (impl 'async_trait + CanSend + CanOpenPort),
config: PySpyConfig,
) -> Pin<Box<dyn Future<Output = Result<StackTrace, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
The generated client method for this enum variant.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.