Skip to main content

schedr_proto/
lib.rs

1//! Protobuf definitions and gRPC code for the schedr master <-> worker agent protocol.
2//!
3//! The messages are generated from `proto/schedr/protocol/v1/master.proto` into [`pb`]; this
4//! crate adds the protocol version check and the conversions to and from `schedr-model`.
5
6pub mod convert;
7pub mod version;
8
9#[cfg(test)]
10mod tests;
11
12/// The generated messages and the `Master` service (client and server).
13#[allow(
14    missing_docs,
15    clippy::all,
16    clippy::pedantic,
17    reason = "generated by tonic-prost-build from master.proto"
18)]
19pub mod pb {
20    tonic::include_proto!("schedr.protocol.v1");
21}
22
23pub use convert::{ConversionError, RejectReaction, reject_reaction};
24pub use version::{PROTOCOL_VERSION, VersionMismatch, check_worker_version};