alpha2-host 0.5.2

Native project-rendering sidecar and batch CLI for alpha2.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#[derive(Debug)]
pub struct GpuOutputRefusal {
    /// Reported as `gpuOutputPathUnavailable`.
    pub reason: String,
    /// The request pinned an encoder that only takes GPU frames, so no other path can serve it.
    pub required: bool,
}

impl GpuOutputRefusal {
    pub fn unavailable(reason: impl Into<String>) -> Self {
        Self {
            reason: reason.into(),
            required: false,
        }
    }
}