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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
use crateSignedEnvelope;
pub const DEFAULT_PAYLOAD_CAPACITY: usize = 1024;
/// Core transport trait for OMNI-MESH message transport.
///
/// This trait defines the interface that all transport implementations must provide.
/// Transports handle the low-level details of sending and receiving signed envelopes
/// over various network protocols (TCP, QUIC, etc.).
///
/// # Thread Safety
/// All implementations must be `Send + Sync` to support multi-threaded usage.
/// Implementations should handle concurrent access appropriately.
///
/// # Error Handling
/// All methods return `Result` types to handle network failures gracefully.
/// Implementations should provide meaningful error messages for debugging.
///
/// # Performance
/// The `receive()` method should be non-blocking and return immediately if no
/// envelope is available. The `send()` method may block for network I/O.