pub struct DevSession { /* private fields */ }Expand description
Development session managing WebSocket server, file watcher, and rebuild pipeline.
Components are owned in the correct order for proper drop semantics:
- Watcher (drops first, stops sending events)
- Pipeline (processes pending events, then stops)
- Server (drops last, closes connections)
Implementations§
Source§impl DevSession
impl DevSession
Sourcepub fn new(
engine_dir: PathBuf,
host: Arc<DevServerHost>,
ws_server: Arc<WsServer<Arc<DevServerHost>>>,
shutdown_rx: Receiver<bool>,
callbacks: RebuildCallbacks,
audio_handle: Option<AudioHandle>,
) -> Result<Self>
pub fn new( engine_dir: PathBuf, host: Arc<DevServerHost>, ws_server: Arc<WsServer<Arc<DevServerHost>>>, shutdown_rx: Receiver<bool>, callbacks: RebuildCallbacks, audio_handle: Option<AudioHandle>, ) -> Result<Self>
Create a new development session.
§Arguments
engine_dir- Path to the engine directoryhost- Parameter host (shared with IPC handler and pipeline)ws_server- WebSocket server (shared with pipeline)shutdown_rx- Shutdown signal receivercallbacks- CLI-specific callbacks for rebuild pipelineaudio_handle- Optional audio processing handle (audio feature only)
§Returns
A DevSession that manages the lifecycle of all components.
Auto Trait Implementations§
impl Freeze for DevSession
impl !RefUnwindSafe for DevSession
impl !Send for DevSession
impl !Sync for DevSession
impl Unpin for DevSession
impl !UnwindSafe for DevSession
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