pub struct ChildOptions {
pub principal: String,
pub key: Option<PathBuf>,
pub agent: String,
pub timeout: Duration,
pub max_calls: usize,
pub buffer: usize,
pub env: Vec<String>,
pub backoff: Backoff,
}Expand description
How the service reaches its children.
Fields§
§principal: StringThe hop’s principal (spec/12) on stdio, where no upgrade proves one:
the service naming itself, service:<its namespace>. Over a
WebSocket with a key the principal is that key’s.
key: Option<PathBuf>A key file (synapse’s ~/.plexus/keys/<name>.key: a 32-byte Ed25519
seed, base64, mode 0600): a WebSocket child is dialed with its proof
(spec/00). Read at each dial and never kept, logged or passed on.
agent: StringThe proof’s agent id (spec/00): 1–64 of [A-Za-z0-9._-].
timeout: DurationA child’s answer to _info, its schema, and every call’s open.
max_calls: usizeCalls open on one child at once; past it, too_many_calls.
buffer: usizeItems held for one call whose caller has not read them; past it the child’s reader waits (lossless; the child’s other calls wait too).
env: Vec<String>Variables passed from the service’s environment to a stdio child,
beyond PATH, HOME, LANG and PLEXUS_CHILD_NAME.
backoff: BackoffRestarting (or redialing) a child that died.
Implementations§
Source§impl ChildOptions
impl ChildOptions
Sourcepub fn for_service(service: &str) -> Self
pub fn for_service(service: &str) -> Self
The defaults for the service named service: its hop principal
service:<service>, its proof’s agent id service.