CloudKitOps

Trait CloudKitOps 

Source
pub trait CloudKitOps: Send + Sync {
    // Required methods
    fn write_record(
        &self,
        key: &str,
        data: Vec<u8>,
    ) -> Result<(), CloudHomeError>;
    fn read_record(&self, key: &str) -> Result<Vec<u8>, CloudHomeError>;
    fn list_records(&self, prefix: &str) -> Result<Vec<String>, CloudHomeError>;
    fn delete_record(&self, key: &str) -> Result<(), CloudHomeError>;
    fn record_exists(&self, key: &str) -> Result<bool, CloudHomeError>;
    fn grant_access(&self, email: &str) -> Result<String, CloudHomeError>;
    fn revoke_access(&self, user_record_id: &str) -> Result<(), CloudHomeError>;
    fn accept_share(&self, share_url: &str) -> Result<(), CloudHomeError>;
}
Expand description

Synchronous interface for raw CloudKit record operations. Implemented in Swift via UniFFI callback interface. Methods block the calling thread while CloudKit async operations complete.

Required Methods§

Implementors§