Make codec shape authority compile-time and fixed
This commit is contained in:
parent
bfe21dfb3f
commit
54cc167f81
1 changed files with 322 additions and 52 deletions
|
|
@ -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,
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue