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
//! P2P system error types
//!
//! This module defines the core error types used throughout the P2P system.
//! The error enum will be extended with more specific variants as the
//! implementation grows.
use Error;
/// P2P system error types
///
/// This enum will be extended with more specific error variants
/// as the implementation grows. Currently contains minimal errors
/// needed for Phase 3 trait implementations.
/// Convenience type alias for P2P operations that may fail.
///
/// This alias wraps `Result` with [`P2PError`] as the error type,
/// providing a consistent error handling pattern across the crate.
pub type P2PResult<T> = ;