pub struct Config {
pub children: Vec<Config>,
pub listen: SocketAddr,
pub origin: String,
pub files: PathBuf,
pub stores: BTreeMap<String, PathBuf>,
pub timeout_ms: NonZeroU64,
pub max_connections: NonZeroUsize,
pub lys: Lys,
pub assistant: Option<Assistant>,
}Expand description
The whole of haematite door’s configuration file.
Fields§
§children: Vec<Config>Programs whose stdin pipes are owned by this door.
listen: SocketAddrA loopback address; TLS is the proxy’s in front of it.
origin: StringStudio’s origin, as the browser sends it.
files: PathBufThe absolute folder holding Studio’s built files.
stores: BTreeMap<String, PathBuf>Each store by name, with its socket’s absolute path.
timeout_ms: NonZeroU64The bound on each store connection’s steps, in milliseconds.
max_connections: NonZeroUsizeSixty-four bounds the threads serving browser and seat connections together.
lys: LysThe Lys app the door signs people in as.
assistant: Option<Assistant>The optional seat socket and its admission and replay bounds.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Config
impl<'de> Deserialize<'de> for Config
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>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnsafeUnpin for Config
impl UnwindSafe for Config
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
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> IntoMaybeUndefined<T> for T
impl<T> IntoMaybeUndefined<T> for T
Source§fn into_maybe_undefined(self) -> MaybeUndefined<T>
fn into_maybe_undefined(self) -> MaybeUndefined<T>
Converts this value into a three-state builder argument.
Source§impl<T> IntoOption<T> for T
impl<T> IntoOption<T> for T
Source§fn into_option(self) -> Option<T>
fn into_option(self) -> Option<T>
Converts this value into an optional builder argument.