Skip to main content

reifydb_core/state/
mod.rs

1// SPDX-License-Identifier: Apache-2.0
2// Copyright (c) 2026 ReifyDB
3
4pub mod join;
5pub mod timer;
6pub mod typed;
7
8pub mod horizon {
9	use reifydb_value::value::datetime::DateTime;
10
11	#[derive(Debug, Clone, Copy, PartialEq, Eq)]
12	pub struct Cutoff(pub DateTime);
13
14	impl Cutoff {
15		pub fn instant(&self) -> DateTime {
16			self.0
17		}
18
19		pub fn raw(&self) -> u64 {
20			self.0.to_nanos()
21		}
22	}
23}