use serde::{Deserialize, Serialize};
#[derive(Debug, Clone, Copy, PartialEq, Eq, Default, Serialize, Deserialize)]
#[cfg_attr(feature = "wasm", derive(tsify_next::Tsify))]
#[cfg_attr(feature = "wasm", tsify(into_wasm_abi, from_wasm_abi))]
pub enum OverlaySyncMode {
#[default]
Local,
Shared,
}
impl OverlaySyncMode {
#[must_use]
pub const fn is_local(&self) -> bool {
matches!(self, Self::Local)
}
#[must_use]
pub const fn is_shared(&self) -> bool {
matches!(self, Self::Shared)
}
}
#[cfg(test)]
#[path = "overlay_tests.rs"]
mod tests;