INNER CODE UNIT · Rust

hold_profile

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

    pub async fn hold_profile(&self, name: String) -> anyhow::Result<u64> {
        self.make_request(Request::HoldProfile { name }).await
    }

    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> {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…