1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
//! Encoding and decoding context traits.
//!
//! These traits define the transport-specific encoding interface.
//! Actual facet-based serialization happens at a higher level (in codegen or rapace-codec).
use crate::;
/// Context for encoding values into frames.
///
/// Each transport provides its own implementation that knows how to
/// best represent data for that transport.
///
/// Note: Type-aware encoding (via facet) is handled by the RPC layer,
/// not directly by EncodeCtx. This trait handles raw byte encoding.
/// Context for decoding frames into values.
///
/// Note: Type-aware decoding (via facet) is handled by the RPC layer,
/// not directly by DecodeCtx. This trait handles raw byte access.