Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Threema/libthreema/lib/src/bindings/uniffi/   (Social Medium ©)  Datei vom 26.9.2026 mit Größe 1 kB image not shown  

Quelle  https.rs   Sprache: Rust

 

//! HTTPS request/response structures.
use duplicate::duplicate_item;

use crate::{
    csp_e2e::identity::create::CreateIdentityResponse,
    https::{HttpsError, HttpsResponse},
    remote_secret::{monitor::RemoteSecretMonitorResponse, setup::RemoteSecretSetupResponse},
    work::properties::WorkPropertiesUpdateResponse,
};

/// Binding version of [`crate::https::HttpsResult`].
#[derive(uniffi::Enum)]
pub enum HttpsResult {
    /// Contains the HTTPS response.
    Response(HttpsResponse),

    /// Contains the HTTPS error.
    Error(HttpsError),
}

#[duplicate_item(
    response_type;
    [ CreateIdentityResponse];
    [ RemoteSecretSetupResponse ];
    [ RemoteSecretMonitorResponse ];
    [ WorkPropertiesUpdateResponse ];
)]
impl From<HttpsResult> for response_type {
    fn from(response: HttpsResult) -> Self {
        let result = match response {
            HttpsResult::Response(https_response) => Ok(https_response),
            HttpsResult::Error(https_error) => Err(https_error),
        };

        Self { result }
    }
}

Messung
CHZG
8810010096

¤ Dauer der Verarbeitung: 0.0 Sekunden  (vorverarbeitet am  2026-11-04) ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

PVS Prover

Isabelle Prover


Cephes Mathematical Library

Vienna Development Method

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.