INNER CODE UNIT · Rust

release_profile

ilya-zlobintsev/LACT · lact-client/src/lib.rs:212

    pub async fn release_profile(&self, cookie: u64) -> anyhow::Result<()> {
        self.make_request(Request::ReleaseProfile { cookie }).await
    }

    pub async fn evaluate_profile_rule(&self, rule: ProfileRule) -> anyhow::Result<bool> {
        self.make_request(Request::EvaluateProfileRule { rule })
            .await
    }

    pub async fn get_gpu_config(&self, id: &str) -> anyhow::Result<Option<GpuConfig>> {
        self.make_request(Request::GetGpuConfig { id }).await
    }

    pub async fn set_gpu_config(&self, id: &str, config: GpuConfig) -> anyhow::Result<u64> {
        self.make_request(Request::SetGpuConfig {
            id,
            config: Box::new(config),
        })

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…