use crate::audio_bell::AudioBell;
use std::time::Instant;
pub struct BellState {
pub(crate) audio: Option<&'static AudioBell>,
pub(crate) last_count: u64, pub(crate) visual_flash: Option<Instant>, }
impl Default for BellState {
fn default() -> Self {
Self::new()
}
}
impl BellState {
pub(crate) fn new() -> Self {
Self {
audio: crate::audio_bell::shared(),
last_count: 0,
visual_flash: None,
}
}
}