INNER CODE UNIT · Rust

EventSink

jub0t/Concat · src/crates/concat-api/src/lib.rs:70

pub type EventSink = Arc<dyn Fn(Event) + Send + Sync>;

/// The largest frame a preview or an export may ask for, a side: 8K. A
/// caller with the token is trusted to edit, not to ask the machine for
/// seventeen gigabytes of pixels (audit 2026-09-23, #4).
pub const MAX_SIDE: u32 = 8192;
/// The highest constant rate factor any codec here takes.
const MAX_CRF: u8 = 63;
/// The fastest frame rate an export may ask for.
const MAX_RATE: f64 = 240.0;

/// Who holds a project folder open on this machine.
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum Holder {
    /// The window, on screen.
    Window,
    /// The API, for a caller on a socket.
    Api,

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…