dope_sys/io/socket/route/
plan.rs1use std::mem;
2
3use crate::io::socket::route::{count::Count, selector::Selector};
4
5#[derive(Clone, Copy, Debug, Eq, PartialEq)]
7pub struct Plan {
8 count: Count,
9 selector: Selector,
10}
11
12impl Plan {
13 pub const fn new(count: Count, selector: Selector) -> Self {
14 Self { count, selector }
15 }
16
17 pub const fn count(self) -> Count {
18 self.count
19 }
20
21 pub const fn selector(self) -> Selector {
22 self.selector
23 }
24}
25
26const _: () = {
27 assert!(mem::size_of::<Plan>() == mem::size_of::<Count>() + mem::size_of::<Selector>());
28};