Skip to main content

Module utils

Module utils 

Source
Expand description

Shared utilities.

The framework-agnostic helpers (FourCharCode, ffi_string_*, panic-safe wrappers) now live in apple_cf::utils and are re-exported here for backward compatibility.

completion.rs is intentionally NOT re-exported from apple_cf: it is an API-compatible local replacement whose SyncCompletion::wait is bounded, so a ScreenCaptureKit callback that never fires can’t hang the caller. See the module docs for the timeout policy.

error.rs is intentionally NOT migrated — it carries SCStream-specific error variants that don’t belong in the framework-agnostic foundation.

Modules§

completion
Completion handles for Swift bridge callbacks.
error
Error types for ScreenCaptureKit
ffi_string
FFI string helpers that free bridge-owned strings. FFI string utilities — back-compat shim over doom_fish_utils::ffi_string.
four_char_code
Minimal FourCharCode implementation for pixel formats and color conversions
panic_safe
Panic-safety helpers for the C ABI boundary.

Structs§

FourCharCode
FourCharCode represents a 4-character code (used in Core Video/Media)