openagent-weave · codec
Declared module signatures, types, configuration, and source documentation.
Source: openagent-sdk/adapters/weave/src/codec.rs. SHA-256: c1222db288f0ca8462a02dae8e4f495fba541a82674aeb6ad504e0ecb43d27e8.
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.
codec::CborCodec
CBOR codec for OpenAgent auth handshake messages.
#[derive(Debug, Clone)]
pub struct CborCodec {
}Source line: 28.
codec::CborCodec::new
Creates a new codec with the given maximum message size.
pub fn new(config: &WeaveAuthConfig) -> Self;Source line: 34.
codec::encode_frame
Encode a CBOR message with a 4-byte big-endian length prefix.
pub fn encode_frame<T: serde::Serialize>(value: &T, max_size: usize) -> Result<Vec<u8>, WeaveAuthError>;Source line: 50.
codec::decode_frame
Decode a length-prefixed CBOR message from a byte buffer.
pub fn decode_frame<T: serde::de::DeserializeOwned>(
data: &[u8],
max_size: usize,
) -> Result<T, WeaveAuthError>;Source line: 69.