pub trait BacktestAdminClient: Send + Sync {
// Required methods
fn add_profile<'life0, 'async_trait>(
&'life0 self,
request: AddProfileRequest,
) -> Pin<Box<dyn Future<Output = Result<AddProfileResponse, BacktestClientError>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: 'async_trait;
fn remove_profile<'life0, 'async_trait>(
&'life0 self,
request: RemoveProfileRequest,
) -> Pin<Box<dyn Future<Output = Result<RemoveProfileResponse, BacktestClientError>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: 'async_trait;
fn reload_profiles<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<ReloadProfilesResponse, BacktestClientError>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: 'async_trait;
}Expand description
Provider-neutral client port for runtime profile administration.
Required Methods§
fn add_profile<'life0, 'async_trait>(
&'life0 self,
request: AddProfileRequest,
) -> Pin<Box<dyn Future<Output = Result<AddProfileResponse, BacktestClientError>> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,
fn remove_profile<'life0, 'async_trait>(
&'life0 self,
request: RemoveProfileRequest,
) -> Pin<Box<dyn Future<Output = Result<RemoveProfileResponse, BacktestClientError>> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,
fn reload_profiles<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<ReloadProfilesResponse, BacktestClientError>> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".