diff options
author | hozan23 <hozan23@proton.me> | 2023-11-12 11:26:38 +0300 |
---|---|---|
committer | hozan23 <hozan23@proton.me> | 2023-11-12 11:26:38 +0300 |
commit | 5d91ead06c62fd7c3cd846659b935012616ce5ae (patch) | |
tree | fc6413ba9e486f786a44c82740ae3230c0384afe /p2p/src/net/mod.rs | |
parent | 24364ab8b4acf48f19d72c1b6d06c20478635eaf (diff) |
p2p: remove net directory
Diffstat (limited to 'p2p/src/net/mod.rs')
-rw-r--r-- | p2p/src/net/mod.rs | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/p2p/src/net/mod.rs b/p2p/src/net/mod.rs deleted file mode 100644 index 9cdc748..0000000 --- a/p2p/src/net/mod.rs +++ /dev/null @@ -1,27 +0,0 @@ -mod connection_queue; -mod connector; -mod listener; -mod slots; - -pub use connection_queue::ConnQueue; -pub use connector::Connector; -pub use listener::Listener; -pub use slots::ConnectionSlots; - -use std::fmt; - -/// Defines the direction of a network connection. -#[derive(Clone, Debug)] -pub enum ConnDirection { - Inbound, - Outbound, -} - -impl fmt::Display for ConnDirection { - fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { - match self { - ConnDirection::Inbound => write!(f, "Inbound"), - ConnDirection::Outbound => write!(f, "Outbound"), - } - } -} |