pub struct FrameSection {
pub bind: Option<SocketAddr>,
pub assets: PathBuf,
pub auth_token: String,
pub channel: Option<String>,
}Expand description
The [frame] section: everything the console HTTP server needs.
Fields§
§bind: Option<SocketAddr>Socket address the console HTTP server binds, e.g. 127.0.0.1:4173.
Optional (2026-07-22 portless ruling). When present it is LAW: the page
server binds exactly this address and a taken port is a loud failure
(never a silent move). When absent the host prefers 127.0.0.1:6010 and
walks forward to the next free port, printing the chosen URL loudly on
boot — see crate::page::PageServer::resolve. Either way the page’s
REAL bound address is what flows into the derived
[bus.websocket].allowed_origins and the boot log line, so the two can
never drift.
assets: PathBufDirectory containing the static console bundle (index.html at root).
auth_token: StringBearer token surfaced to the page verbatim as authToken. Required key
— the operator states it, the binary never invents it. An explicitly
empty value (auth_token = "") is legal and means an open server,
matching the console’s config contract.
channel: Option<String>Feed channel surfaced to the page as channel. Absent → the field is
omitted and the page applies the SDK’s default channel. When present it
must be non-empty (the console refuses an empty channel).
Trait Implementations§
Source§impl Debug for FrameSection
impl Debug for FrameSection
Source§impl<'de> Deserialize<'de> for FrameSection
impl<'de> Deserialize<'de> for FrameSection
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Auto Trait Implementations§
impl Freeze for FrameSection
impl RefUnwindSafe for FrameSection
impl Send for FrameSection
impl Sync for FrameSection
impl Unpin for FrameSection
impl UnsafeUnpin for FrameSection
impl UnwindSafe for FrameSection
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request