this repo has no description
1use std::path::PathBuf;
2
3use thiserror::Error;
4
5#[derive(Debug, Error)]
6pub enum ConfigError {
7 #[error("website URL must use http or https, got `{0}`")]
8 UnsupportedWebsiteScheme(String),
9 #[error("invalid website URL `{0}`")]
10 InvalidWebsiteUrl(String),
11 #[error("`{field}` out of range: got {actual}, expected {min}..={max}")]
12 OutOfRange {
13 field: &'static str,
14 min: u64,
15 max: u64,
16 actual: u64,
17 },
18 #[error(transparent)]
19 Rtmp(#[from] crate::rtmp::RtmpError),
20}
21
22#[derive(Debug, Error)]
23pub enum RuntimeError {
24 #[error("shutdown requested")]
25 ShutdownRequested,
26 #[error("timed out waiting for screencast frames")]
27 ScreencastTimeout,
28 #[error(
29 "missing sidecar binary `{name}` at `{path}`. Provide an explicit override path or place sidecars at this location. For local development, fetch sidecars with `./scripts/fetch-sidecars.sh` (macOS/Linux) or `./scripts/fetch-sidecars.ps1` (Windows). Supported packaged targets: macOS arm64, Linux x86_64, Windows x86_64"
30 )]
31 MissingSidecar { name: &'static str, path: PathBuf },
32}