1 2 3 4 5 6 7 8 9 10 11 12 13 14
pub(crate) enum Buffered {} pub(crate) enum Retained {} pub(crate) trait Mode { const RETAINED: bool; } impl Mode for Buffered { const RETAINED: bool = false; } impl Mode for Retained { const RETAINED: bool = true; }