pub mod events;
pub mod frame;
pub mod request;
pub mod wire;
pub use events::{BusEvent, ProcessEventKind};
pub use frame::ServerFrame;
pub use request::{
ActionOutcome, ActionReply, DogSectionToml, DogSource, EnvValue, Envelope, ExitInfo, Hello,
HelloAck, HelloReply, Lamb, LineOutcome, LineReply, ProcessInfo, ProcessInfoBuilder, Reply,
Request, Response, RpcError, RpcErrorCode, SelectorSpec, SheepApplied, SheepConfigView,
SheepDrift, SheepRefusal, SignalOutcome, SignalReply, Smit, SmitError, sort_flock,
};
pub use shep_channel::{CHANNEL_VERSION, ChildMessage, ShepherdMessage};
pub use wire::{MAX_FRAME_BYTES, WireError, codec, decode_frame, encode_frame, reply_id};
#[deprecated(note = "use `shep_core::protocol` directly")]
pub mod channel {
pub use shep_channel::{CHANNEL_VERSION, ChildMessage, ShepherdMessage};
}
pub const PROTOCOL_VERSION: u32 = 7;
pub const MIN_SUPPORTED: u32 = 7;
#[cfg(test)]
mod tests {
use super::{MIN_SUPPORTED, PROTOCOL_VERSION};
#[test]
fn a_retyped_restarted_forced_the_protocol_version_up() {
assert_eq!(PROTOCOL_VERSION, 7);
}
#[test]
fn the_floor_never_outruns_the_ceiling() {
const { assert!(MIN_SUPPORTED <= PROTOCOL_VERSION) };
}
}