pub struct ModelRpc { /* private fields */ }Implementations§
Source§impl ModelRpc
impl ModelRpc
pub async fn create_model( &self, params: CreateModelParams<'_, impl AsRef<[u8]>>, ) -> Result<CreateModelResult, DecthingsRpcError<CreateModelError>>
pub async fn wait_for_model_to_be_created( &self, params: WaitForModelToBeCreatedParams<'_>, ) -> Result<WaitForModelToBeCreatedResult, DecthingsRpcError<WaitForModelToBeCreatedError>>
pub async fn delete_model( &self, params: DeleteModelParams<'_>, ) -> Result<DeleteModelResult, DecthingsRpcError<DeleteModelError>>
pub async fn snapshot_model( &self, params: SnapshotModelParams<'_>, ) -> Result<SnapshotModelResult, DecthingsRpcError<SnapshotModelError>>
pub async fn update_snapshot( &self, params: UpdateSnapshotParams<'_>, ) -> Result<UpdateSnapshotResult, DecthingsRpcError<UpdateSnapshotError>>
pub async fn delete_snapshot( &self, params: DeleteSnapshotParams<'_>, ) -> Result<DeleteSnapshotResult, DecthingsRpcError<DeleteSnapshotError>>
pub async fn update_model( &self, params: UpdateModelParams<'_>, ) -> Result<UpdateModelResult, DecthingsRpcError<UpdateModelError>>
pub async fn get_models( &self, params: GetModelsParams<'_, impl AsRef<str>>, ) -> Result<GetModelsResult, DecthingsRpcError<GetModelsError>>
pub async fn set_filesystem_size( &self, params: SetFilesystemSizeParams<'_>, ) -> Result<SetFilesystemSizeResult, DecthingsRpcError<SetFilesystemSizeError>>
pub async fn get_filesystem_usage( &self, params: GetFilesystemUsageParams<'_>, ) -> Result<GetFilesystemUsageResult, DecthingsRpcError<GetFilesystemUsageError>>
pub async fn create_state( &self, params: CreateStateParams<'_>, ) -> Result<CreateStateResult, DecthingsRpcError<CreateStateError>>
pub async fn upload_state( &self, params: UploadStateParams<'_, impl AsRef<str>, impl AsRef<[u8]>>, ) -> Result<UploadStateResult, DecthingsRpcError<UploadStateError>>
pub async fn cancel_create_state( &self, params: CancelCreateStateParams<'_>, ) -> Result<CancelCreateStateResult, DecthingsRpcError<CancelCreateStateError>>
pub async fn get_creating_states( &self, params: GetCreatingStatesParams<'_>, ) -> Result<GetCreatingStatesResult, DecthingsRpcError<GetCreatingStatesError>>
pub async fn wait_for_state_to_be_created( &self, params: WaitForStateToBeCreatedParams<'_>, ) -> Result<WaitForStateToBeCreatedResult, DecthingsRpcError<WaitForStateToBeCreatedError>>
pub async fn update_model_state( &self, params: UpdateModelStateParams<'_>, ) -> Result<UpdateModelStateResult, DecthingsRpcError<UpdateModelStateError>>
pub async fn set_active_model_state( &self, params: SetActiveModelStateParams<'_>, ) -> Result<SetActiveModelStateResult, DecthingsRpcError<SetActiveModelStateError>>
pub async fn delete_model_state( &self, params: DeleteModelStateParams<'_>, ) -> Result<DeleteModelStateResult, DecthingsRpcError<DeleteModelStateError>>
pub async fn get_model_state( &self, params: GetModelStateParams<'_, impl AsRef<str>>, ) -> Result<GetModelStateResult, DecthingsRpcError<GetModelStateError>>
pub async fn get_snapshot_state( &self, params: GetSnapshotStateParams<'_, impl AsRef<str>>, ) -> Result<GetSnapshotStateResult, DecthingsRpcError<GetSnapshotStateError>>
pub async fn train( &self, params: TrainParams<'_>, ) -> Result<TrainResult, DecthingsRpcError<TrainError>>
pub async fn get_training_status( &self, params: GetTrainingStatusParams<'_>, ) -> Result<GetTrainingStatusResult, DecthingsRpcError<GetTrainingStatusError>>
pub async fn get_training_metrics( &self, params: GetTrainingMetricsParams<'_>, ) -> Result<GetTrainingMetricsResult, DecthingsRpcError<GetTrainingMetricsError>>
pub async fn cancel_training_session( &self, params: CancelTrainingSessionParams<'_>, ) -> Result<CancelTrainingSessionResult, DecthingsRpcError<CancelTrainingSessionError>>
pub async fn clear_previous_training_session( &self, params: ClearPreviousTrainingSessionParams<'_>, ) -> Result<ClearPreviousTrainingSessionResult, DecthingsRpcError<ClearPreviousTrainingSessionError>>
pub async fn evaluate<'a>( &self, params: EvaluateParams<'a>, ) -> Result<EvaluateResult, DecthingsRpcError<EvaluateError>>
pub async fn get_evaluations( &self, params: GetEvaluationsParams<'_>, ) -> Result<GetEvaluationsResult, DecthingsRpcError<GetEvaluationsError>>
pub async fn get_finished_evaluation_result( &self, params: GetFinishedEvaluationResultParams<'_>, ) -> Result<GetFinishedEvaluationResultResult, DecthingsRpcError<GetFinishedEvaluationResultError>>
pub async fn cancel_evaluation( &self, params: CancelEvaluationParams<'_>, ) -> Result<CancelEvaluationResult, DecthingsRpcError<CancelEvaluationError>>
pub async fn set_used_persistent_launchers_for_evaluate( &self, params: SetUsedPersistentLaunchersForEvaluateParams<'_>, ) -> Result<SetUsedPersistentLaunchersForEvaluateResult, DecthingsRpcError<SetUsedPersistentLaunchersForEvaluateError>>
pub async fn get_used_persistent_launchers_for_evaluate( &self, params: GetUsedPersistentLaunchersForEvaluateParams<'_>, ) -> Result<GetUsedPersistentLaunchersForEvaluateResult, DecthingsRpcError<GetUsedPersistentLaunchersForEvaluateError>>
Auto Trait Implementations§
impl Freeze for ModelRpc
impl !RefUnwindSafe for ModelRpc
impl Send for ModelRpc
impl Sync for ModelRpc
impl Unpin for ModelRpc
impl UnsafeUnpin for ModelRpc
impl !UnwindSafe for ModelRpc
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