crates/edge/proto/src/lib.rs 930 B 28 lines Raw
1 //! inf3r-proto — the six nouns, the frame, the codec.2 //!3 //! This crate is a leaf. It depends on nothing in the tree. Both the core and a4 //! plugin link it, so it holds only what both sides must agree on: the frame,5 //! the nouns, the CBOR bodies, and the credit arithmetic.6 //!7 //! The normative text is `.f0rge/wiki/docs/protocol.md`. The machine grammar is8 //! `spec/protocol.cddl`.9 10 pub mod body;11 pub mod cbor;12 pub mod client;13 pub mod credit;14 pub mod fd;15 pub mod frame;16 pub mod job;17 pub mod mirror;18 pub mod session;19 20 pub use cbor::Value;21 pub use client::{Item, Job as ClientJob, Peer};22 pub use credit::{Credit, CreditError, credit_limited};23 pub use fd::{MAX_FDS, recv_frame, send_frame};24 pub use frame::{25     Error, Frame, FrameError, HEADER_LEN, Header, Kind, MAX_PAYLOAD, read_frame, write_frame,26 };27 pub use job::{Answer, Emit, Job, JobError, JobState};28 pub use session::{OutOfOrder, Phase, Role, Session, is_session};