rho-coding-agent 3.10.0

A fast Rust agent harness with a small footprint and opinionated defaults
Documentation
//! A build without the `browser` feature: the service's types exist, so
//! the code that carries them needs no `cfg`, but nothing can make one.

use super::ReadConfig;
use rho_sdk::SessionId;
use std::path::Path;
use std::sync::Arc;

pub(crate) enum Browsers {}

impl Browsers {
    /// No browser in this build.
    pub(crate) fn for_daemon(_rho_home: &Path, _read_config: ReadConfig) -> Option<Arc<Self>> {
        None
    }

    pub(crate) fn session(
        this: Option<&Arc<Self>>,
        _session: &SessionId,
    ) -> Option<SessionBrowser> {
        this.map(|browsers| match **browsers {})
    }

    pub(crate) async fn close(&self) {
        match *self {}
    }
}

#[derive(Clone)]
pub(crate) enum SessionBrowser {}

impl SessionBrowser {
    pub(crate) fn view(&self) -> tokio::sync::watch::Receiver<super::view::BrowserView> {
        match *self {}
    }
}