Stubbed UdpSocket struct, added Socket structs
This commit is contained in:
parent
e74f7f401b
commit
b30e4d0d34
7 changed files with 100 additions and 15 deletions
39
src/socket/mod.rs
Normal file
39
src/socket/mod.rs
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
pub trait Socket {}
|
||||
|
||||
pub type OwnedSockets = (
|
||||
Socket0,
|
||||
Socket1,
|
||||
Socket2,
|
||||
Socket3,
|
||||
Socket4,
|
||||
Socket5,
|
||||
Socket6,
|
||||
Socket7,
|
||||
);
|
||||
pub type Sockets<'a> = (
|
||||
&'a mut Socket0,
|
||||
&'a mut Socket1,
|
||||
&'a mut Socket2,
|
||||
&'a mut Socket3,
|
||||
&'a mut Socket4,
|
||||
&'a mut Socket5,
|
||||
&'a mut Socket6,
|
||||
&'a mut Socket7,
|
||||
);
|
||||
|
||||
pub struct Socket0 {}
|
||||
impl Socket for Socket0 {}
|
||||
pub struct Socket1 {}
|
||||
impl Socket for Socket1 {}
|
||||
pub struct Socket2 {}
|
||||
impl Socket for Socket2 {}
|
||||
pub struct Socket3 {}
|
||||
impl Socket for Socket3 {}
|
||||
pub struct Socket4 {}
|
||||
impl Socket for Socket4 {}
|
||||
pub struct Socket5 {}
|
||||
impl Socket for Socket5 {}
|
||||
pub struct Socket6 {}
|
||||
impl Socket for Socket6 {}
|
||||
pub struct Socket7 {}
|
||||
impl Socket for Socket7 {}
|
||||
Loading…
Add table
Add a link
Reference in a new issue