mirror of
https://github.com/Noratrieb/haesli.git
synced 2026-01-16 20:55:03 +01:00
codegen
This commit is contained in:
parent
e5fa49a05a
commit
d5fd9abdf7
10 changed files with 640 additions and 7 deletions
24
amqp_transport/src/classes/connection.rs
Normal file
24
amqp_transport/src/classes/connection.rs
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
type Octet = u8;
|
||||
type PeerProperties = ();
|
||||
type LongStr = String;
|
||||
|
||||
pub enum Connection {
|
||||
Start {
|
||||
version_major: Option<u8>,
|
||||
version_minor: Option<u8>,
|
||||
server_properties: PeerProperties,
|
||||
mechanisms: LongStr,
|
||||
locales: LongStr,
|
||||
},
|
||||
StartOk,
|
||||
Secure,
|
||||
SecureOk,
|
||||
Tune,
|
||||
TuneOk,
|
||||
Open,
|
||||
OpenOk,
|
||||
Close,
|
||||
CloseOk,
|
||||
Blocked,
|
||||
Unblocked,
|
||||
}
|
||||
7
amqp_transport/src/classes/mod.rs
Normal file
7
amqp_transport/src/classes/mod.rs
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
mod connection;
|
||||
|
||||
use crate::classes::connection::Connection;
|
||||
|
||||
pub enum Class {
|
||||
Connection(Connection),
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue