Skip to main content

reifydb_core/lifecycle/
progress.rs

1// SPDX-License-Identifier: Apache-2.0
2// Copyright (c) 2026 ReifyDB
3
4#[derive(Debug, Clone, Copy, PartialEq, Eq)]
5pub enum Progress {
6	Yielded,
7	Exhausted,
8}
9
10impl Progress {
11	pub fn is_yielded(self) -> bool {
12		matches!(self, Progress::Yielded)
13	}
14
15	pub fn is_exhausted(self) -> bool {
16		matches!(self, Progress::Exhausted)
17	}
18}