pub struct AppSpec {
pub name: AppName,
pub broadcast_capacity: usize,
pub gop_capacity: usize,
}Expand description
Plain-Rust application descriptor — a named namespace of streams with its own
fan-out capacity and GOP-replay policy. Build one fluently and register it via
EngineBuilder::application.
use arcly_stream::prelude::*;
let live = AppSpec::new("live")
.gop_cache(120) // ~4s at 30fps → instant-start replay
.broadcast_capacity(8192); // deeper buffer for very slow joiners
let engine = Engine::builder().application(live).build();
assert_eq!(engine.list_apps()[0].as_str(), "live");Fields§
§name: AppNameApplication name (e.g. "live").
broadcast_capacity: usizePer-stream broadcast channel capacity (frames buffered for slow joiners).
gop_capacity: usizeKeyframe-anchored GOP replay buffer size, in frames (0 disables it). Enables sub-second playback start for late joiners.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AppSpec
impl RefUnwindSafe for AppSpec
impl Send for AppSpec
impl Sync for AppSpec
impl Unpin for AppSpec
impl UnsafeUnpin for AppSpec
impl UnwindSafe for AppSpec
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