Skip to content

Commit e3809d7

Browse files
committed
Add Network module error handling and protocol types
1 parent 31122bc commit e3809d7

File tree

3 files changed

+13
-0
lines changed

3 files changed

+13
-0
lines changed

Modules/Network/src/Error.rs

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
pub type Result_type<T> = Result<T, Error_type>;
2+
3+
#[derive(Debug, Copy, Clone)]
4+
pub enum Error_type {}

Modules/Network/src/Protocol.rs

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
pub enum Protocol_type {
2+
TCP,
3+
UDP,
4+
ICMP,
5+
Local,
6+
}

Modules/Network/src/lib.rs

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
#![allow(non_snake_case)]
22
#![allow(non_camel_case_types)]
33
#![allow(non_upper_case_globals)]
4+
5+
mod Error;
6+
mod Protocol;

0 commit comments

Comments
 (0)