Make codec shape authority compile-time and fixed

This commit is contained in:
ms2k 2026-07-19 04:33:43 +09:00
commit 54cc167f81

View file

@ -56,6 +56,10 @@ pub enum AttachedRunscSignal {
Kill,
}
impl lazaret_core::records::SchemaType for AttachedRunscSignal {
const NAME: &'static str = "AttachedRunscSignal";
}
impl AttachedRunscSignal {
const fn signal(self) -> Signal {
match self {
@ -112,6 +116,10 @@ pub enum SupervisorEvent {
Refused(String),
}
impl lazaret_core::records::SchemaType for SupervisorEvent {
const NAME: &'static str = "SupervisorEvent";
}
#[derive(Clone, Debug, Deserialize, Eq, PartialEq, Serialize)]
enum CoordinatorMessage {
MountStateAnchor,
@ -138,6 +146,10 @@ enum CoordinatorMessage {
Stop,
}
impl lazaret_core::records::SchemaType for CoordinatorMessage {
const NAME: &'static str = "CoordinatorMessage";
}
pub struct CoordinatorChannel {
descriptor: OwnedFd,
}