pub struct MessagesConfig {
pub enabled: bool,
pub dir: Option<PathBuf>,
pub inbound: Option<InboundPolicy>,
pub pending_cap: usize,
pub max_body_bytes: usize,
pub keep: usize,
}Expand description
Messaging between this machine’s own mecha sessions.
Receiver-side policy, so it loads from the global file only, never a
project’s mecha.toml: a cloned repository must not be able to set
inbound = "accept" on someone’s session. Enforced structurally:
merge_file strips the section from project layers, loudly.
Fields§
§enabled: boolOff by default, like outbox routing: a mailbox is a policy decision.
dir: Option<PathBuf>Where messages live. Defaults to ~/.mecha/messages
(or $MECHA_MESSAGES_DIR).
inbound: Option<InboundPolicy>What a run does with inbound messages: accept folds them in at turn
boundaries, hold leaves them for mecha msg. Unset — the default —
resolves per surface: attended front-ends hold, unattended runs
accept. See crate::mailbox::InboundPolicy.
pending_cap: usizePending messages one recipient may hold before senders are refused.
max_body_bytes: usizeLargest message body, in bytes.
keep: usizeResolved (delivered/dismissed) messages kept per recipient before the oldest are pruned. Retention, so the per-turn claim scan stays bounded.
Trait Implementations§
Source§impl Clone for MessagesConfig
impl Clone for MessagesConfig
Source§fn clone(&self) -> MessagesConfig
fn clone(&self) -> MessagesConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more