pub struct ServeOpts {
pub host: String,
pub port: u16,
pub password: Option<String>,
pub fake: bool,
pub interval: Option<Duration>,
pub external_cameras: Vec<ExternalCamera>,
}Expand description
Options for serve.
Fields§
§host: StringBind host (default 127.0.0.1). A non-loopback host serves over the
network; without a password, control is open — a warning is printed.
port: u16§password: Option<String>Optional password gating write (control) requests. None = control is
open. Reads are always unauthenticated.
fake: boolServe deterministic fake data instead of talking to a printer.
interval: Option<Duration>§external_cameras: Vec<ExternalCamera>External IP cameras to seed at launch (each a single-JPEG-per-GET URL with
a label). The server proxies them via /api/camera/{id}/snapshot so a
browser that can’t reach the LAN cam (e.g. over Tailscale) still gets a live
view; the dashboard can add/remove more at runtime.
Auto Trait Implementations§
impl Freeze for ServeOpts
impl RefUnwindSafe for ServeOpts
impl Send for ServeOpts
impl Sync for ServeOpts
impl Unpin for ServeOpts
impl UnsafeUnpin for ServeOpts
impl UnwindSafe for ServeOpts
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more