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.
Trait Implementations§
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
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.