OpenAgentID documentation
Source referencesRust module referenceopenagent-weave

openagent-weave · config

Declared module signatures, types, configuration, and source documentation.

Source: openagent-sdk/adapters/weave/src/config.rs. SHA-256: fe5a6919e4eb79da3f988e096b7a6fb5544d2f0a8812ba26cf610afd9b7fbca5.

This source reference follows declared modules and preserves feature attributes. It includes public declarations and implementation methods in those modules. Private-module exports and trait resolution still require the compiler; not every declaration is a crate-root import. Function bodies and constant values are omitted. Source comments describe their implementation context and are not a production deployment claim.

config::WeaveAuthConfig

Configuration for the Weave OAAP protocol adapter.

#[derive(Debug, Clone)]
pub struct WeaveAuthConfig {
/// Maximum size of a single CBOR-encoded message frame, in bytes.

/// Prevents memory exhaustion from malicious peers.

/// Default: 64 KiB.

pub max_message_size: usize,
/// How long to wait for each handshake round trip before timing out.

/// Default: 30 seconds.

pub handshake_timeout: Duration,
/// How long an established session remains valid.

/// Default: 1 hour.

pub session_ttl: Duration,
/// Maximum number of concurrent pending handshakes.

/// Default: 128.

pub max_pending_handshakes: usize,
/// How long a challenge remains valid before the initiator must send PROVE.

/// Default: 60 seconds.

pub challenge_ttl: Duration
}

Source line: 8.

config::WeaveAuthConfig::new

Creates a new config with default values.

pub fn new() -> Self;

Source line: 45.

config::WeaveAuthConfig::with_max_message_size

Sets the maximum message size.

pub fn with_max_message_size(mut self, size: usize) -> Self;

Source line: 50.

config::WeaveAuthConfig::with_handshake_timeout

Sets the handshake timeout.

pub fn with_handshake_timeout(mut self, timeout: Duration) -> Self;

Source line: 56.

config::WeaveAuthConfig::with_session_ttl

Sets the session TTL.

pub fn with_session_ttl(mut self, ttl: Duration) -> Self;

Source line: 62.

config::WeaveAuthConfig::with_max_pending_handshakes

Sets the maximum number of concurrent pending handshakes.

pub fn with_max_pending_handshakes(mut self, max: usize) -> Self;

Source line: 68.

config::WeaveAuthConfig::with_challenge_ttl

Sets the challenge TTL.

pub fn with_challenge_ttl(mut self, ttl: Duration) -> Self;

Source line: 74.

On this page