mirror of
https://github.com/bitcoinresearchkit/brk.git
synced 2026-06-01 18:53:38 -07:00
16 lines
250 B
Rust
16 lines
250 B
Rust
#[derive(Debug, Clone, Copy)]
|
|
pub enum Mode {
|
|
Any,
|
|
PushOnly,
|
|
}
|
|
|
|
impl Mode {
|
|
pub fn is_any(&self) -> bool {
|
|
matches!(*self, Self::Any)
|
|
}
|
|
|
|
pub fn is_push_only(&self) -> bool {
|
|
matches!(*self, Self::PushOnly)
|
|
}
|
|
}
|