#[derive(Clone, Copy, Debug, PartialEq, PartialOrd, Ord, Eq)]
pub struct RequestFromKernel {
cmd: KernelCommand,
}
impl RequestFromKernel {
pub fn new(cmd: KernelCommand) -> Self {
Self { cmd }
}
pub fn cmd(&self) -> KernelCommand {
self.cmd
}
}
#[derive(Clone, Copy, Debug, PartialEq, PartialOrd, Ord, Eq)]
pub enum KernelCommand {
EchoReq,
}
#[derive(Clone, Copy, Debug, PartialEq, PartialOrd, Ord, Eq)]
pub struct CompletionToKernel {
data: KernelCompletionData,
}
impl CompletionToKernel {
pub fn new(data: KernelCompletionData) -> Self {
Self { data }
}
pub fn data(&self) -> KernelCompletionData {
self.data
}
}
#[derive(Clone, Copy, Debug, PartialEq, PartialOrd, Ord, Eq)]
pub enum KernelCompletionData {
EchoResp,
}
#[derive(Clone, Copy, Debug, PartialEq, PartialOrd, Ord, Eq)]
pub struct RequestFromPager {
cmd: PagerRequest,
}
impl RequestFromPager {
pub fn new(cmd: PagerRequest) -> Self {
Self { cmd }
}
pub fn cmd(&self) -> PagerRequest {
self.cmd
}
}
#[derive(Clone, Copy, Debug, PartialEq, PartialOrd, Ord, Eq)]
pub enum PagerRequest {
EchoReq,
}
#[derive(Clone, Copy, Debug, PartialEq, PartialOrd, Ord, Eq)]
pub struct CompletionToPager {
data: PagerCompletionData,
}
impl CompletionToPager {
pub fn new(data: PagerCompletionData) -> Self {
Self { data }
}
pub fn data(&self) -> PagerCompletionData {
self.data
}
}
#[derive(Clone, Copy, Debug, PartialEq, PartialOrd, Ord, Eq)]
pub enum PagerCompletionData {
EchoResp,
}