pub struct ModelRpc { /* private fields */ }

Implementations§

source§

impl ModelRpc

source

pub async fn create_model( &self, params: CreateModelParams<'_, impl AsRef<[u8]>> ) -> Result<CreateModelResult, DecthingsRpcError<CreateModelError>>

source

pub async fn wait_for_model_to_be_created( &self, params: WaitForModelToBeCreatedParams<'_> ) -> Result<WaitForModelToBeCreatedResult, DecthingsRpcError<WaitForModelToBeCreatedError>>

source

pub async fn delete_model( &self, params: DeleteModelParams<'_> ) -> Result<DeleteModelResult, DecthingsRpcError<DeleteModelError>>

source

pub async fn snapshot_model( &self, params: SnapshotModelParams<'_> ) -> Result<SnapshotModelResult, DecthingsRpcError<SnapshotModelError>>

source

pub async fn update_snapshot( &self, params: UpdateSnapshotParams<'_> ) -> Result<UpdateSnapshotResult, DecthingsRpcError<UpdateSnapshotError>>

source

pub async fn delete_snapshot( &self, params: DeleteSnapshotParams<'_> ) -> Result<DeleteSnapshotResult, DecthingsRpcError<DeleteSnapshotError>>

source

pub async fn update_model( &self, params: UpdateModelParams<'_> ) -> Result<UpdateModelResult, DecthingsRpcError<UpdateModelError>>

source

pub async fn get_models( &self, params: GetModelsParams<'_, impl AsRef<str>> ) -> Result<GetModelsResult, DecthingsRpcError<GetModelsError>>

source

pub async fn set_filesystem_size( &self, params: SetFilesystemSizeParams<'_> ) -> Result<SetFilesystemSizeResult, DecthingsRpcError<SetFilesystemSizeError>>

source

pub async fn get_filesystem_usage( &self, params: GetFilesystemUsageParams<'_> ) -> Result<GetFilesystemUsageResult, DecthingsRpcError<GetFilesystemUsageError>>

source

pub async fn create_state( &self, params: CreateStateParams<'_> ) -> Result<CreateStateResult, DecthingsRpcError<CreateStateError>>

source

pub async fn upload_state( &self, params: UploadStateParams<'_, impl AsRef<str>, impl AsRef<[u8]>> ) -> Result<UploadStateResult, DecthingsRpcError<UploadStateError>>

source

pub async fn cancel_create_state( &self, params: CancelCreateStateParams<'_> ) -> Result<CancelCreateStateResult, DecthingsRpcError<CancelCreateStateError>>

source

pub async fn get_creating_states( &self, params: GetCreatingStatesParams<'_> ) -> Result<GetCreatingStatesResult, DecthingsRpcError<GetCreatingStatesError>>

source

pub async fn wait_for_state_to_be_created( &self, params: WaitForStateToBeCreatedParams<'_> ) -> Result<WaitForStateToBeCreatedResult, DecthingsRpcError<WaitForStateToBeCreatedError>>

source

pub async fn update_model_state( &self, params: UpdateModelStateParams<'_> ) -> Result<UpdateModelStateResult, DecthingsRpcError<UpdateModelStateError>>

source

pub async fn set_active_model_state( &self, params: SetActiveModelStateParams<'_> ) -> Result<SetActiveModelStateResult, DecthingsRpcError<SetActiveModelStateError>>

source

pub async fn delete_model_state( &self, params: DeleteModelStateParams<'_> ) -> Result<DeleteModelStateResult, DecthingsRpcError<DeleteModelStateError>>

source

pub async fn get_model_state( &self, params: GetModelStateParams<'_, impl AsRef<str>> ) -> Result<GetModelStateResult, DecthingsRpcError<GetModelStateError>>

source

pub async fn get_snapshot_state( &self, params: GetSnapshotStateParams<'_, impl AsRef<str>> ) -> Result<GetSnapshotStateResult, DecthingsRpcError<GetSnapshotStateError>>

source

pub async fn train( &self, params: TrainParams<'_> ) -> Result<TrainResult, DecthingsRpcError<TrainError>>

source

pub async fn get_training_status( &self, params: GetTrainingStatusParams<'_> ) -> Result<GetTrainingStatusResult, DecthingsRpcError<GetTrainingStatusError>>

source

pub async fn get_training_metrics( &self, params: GetTrainingMetricsParams<'_> ) -> Result<GetTrainingMetricsResult, DecthingsRpcError<GetTrainingMetricsError>>

source

pub async fn cancel_training_session( &self, params: CancelTrainingSessionParams<'_> ) -> Result<CancelTrainingSessionResult, DecthingsRpcError<CancelTrainingSessionError>>

source

pub async fn clear_previous_training_session( &self, params: ClearPreviousTrainingSessionParams<'_> ) -> Result<ClearPreviousTrainingSessionResult, DecthingsRpcError<ClearPreviousTrainingSessionError>>

source

pub async fn evaluate<'a>( &self, params: EvaluateParams<'a> ) -> Result<EvaluateResult, DecthingsRpcError<EvaluateError>>

source

pub async fn get_evaluations( &self, params: GetEvaluationsParams<'_> ) -> Result<GetEvaluationsResult, DecthingsRpcError<GetEvaluationsError>>

source

pub async fn get_finished_evaluation_result( &self, params: GetFinishedEvaluationResultParams<'_> ) -> Result<GetFinishedEvaluationResultResult, DecthingsRpcError<GetFinishedEvaluationResultError>>

source

pub async fn cancel_evaluation( &self, params: CancelEvaluationParams<'_> ) -> Result<CancelEvaluationResult, DecthingsRpcError<CancelEvaluationError>>

source

pub async fn set_used_persistent_launchers_for_evaluate( &self, params: SetUsedPersistentLaunchersForEvaluateParams<'_> ) -> Result<SetUsedPersistentLaunchersForEvaluateResult, DecthingsRpcError<SetUsedPersistentLaunchersForEvaluateError>>

source

pub async fn get_used_persistent_launchers_for_evaluate( &self, params: GetUsedPersistentLaunchersForEvaluateParams<'_> ) -> Result<GetUsedPersistentLaunchersForEvaluateResult, DecthingsRpcError<GetUsedPersistentLaunchersForEvaluateError>>

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> Same for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

source§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more