use arci::{Speaker, WaitFuture};
#[derive(Debug)]
pub struct PrintSpeaker {}
impl PrintSpeaker {
pub fn new() -> Self {
Self {}
}
}
impl Default for PrintSpeaker {
fn default() -> Self {
PrintSpeaker::new()
}
}
impl Speaker for PrintSpeaker {
fn speak(&self, message: &str) -> Result<WaitFuture, arci::Error> {
println!("PrintSpeaker: {message}");
Ok(WaitFuture::ready())
}
}