pub enum P2PError {
}
Expand description
Main error type for P2P Foundation
Variants§
Network(String)
Network-related error (connections, peers, protocols)
DHT(String)
DHT operation error (lookups, storage, routing)
Transport(String)
Transport layer error (QUIC, TCP, tunneling)
Security(String)
Security-related error (authentication, encryption, validation)
MCP(String)
MCP server error (tool calls, message routing)
Bootstrap(String)
Bootstrap cache error (peer discovery, cache management)
Config(String)
Configuration error (invalid settings, missing parameters)
Cryptography(String)
Cryptography error (key generation, encryption, signatures)
InvalidState(String)
Invalid state error (operations in wrong state)
InvalidInput(String)
Invalid input error (bad parameters, malformed data)
IO(Error)
IO error (file operations, network IO)
Serialization(Error)
Serialization error (JSON, protocol encoding/decoding)
Generic(Error)
Generic error (catch-all for other error types)
Trait Implementations§
Source§impl Error for P2PError
impl Error for P2PError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for P2PError
impl !RefUnwindSafe for P2PError
impl Send for P2PError
impl Sync for P2PError
impl Unpin for P2PError
impl !UnwindSafe for P2PError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more