pub struct Config {
pub server: String,
pub channel: String,
pub credential: Credential,
pub limits: Limits,
pub agent: Option<String>,
pub listen: ListenConfig,
}Expand description
Validated inputs for the ticket.
Fields§
§server: StringThe server address every connection dials.
channel: StringThe channel routed requests travel on.
credential: CredentialWhere the pass comes from: a fixed pass, or Lys asked with the agent’s key.
limits: LimitsThe limits validated before anything is opened.
agent: Option<String>This seat’s validated agent identity, used only for its own inbox.
listen: ListenConfigExact subjects and positive bounds for channel input.
Implementations§
Source§impl Config
impl Config
Sourcepub fn load(path: &Path) -> Result<Self, ConfigError>
pub fn load(path: &Path) -> Result<Self, ConfigError>
Reads and checks the configuration at path. A missing field is named
in the error (serde’s own words, “missing field frame_bytes”), a zero
limit by its name; the pass’s bytes never appear in any error.
§Errors
Returns a named read, schema, zero-limit or token refusal.
Sourcepub fn load_with(
path: Option<&Path>,
overrides: &Overrides,
) -> Result<Self, ConfigError>
pub fn load_with( path: Option<&Path>, overrides: &Overrides, ) -> Result<Self, ConfigError>
Reads the seat at path, or liminal seat init’s defaults when there
is none, with overrides written over it, then checks it exactly as
Self::load does.
§Errors
As Self::load, and a refused flag by its name.