use std::time::Duration;
use autd3_driver::NullBody;
use crate::{datagram::*, error::AUTDInternalError, geometry::*};
#[derive(Default)]
pub struct Clear {}
impl Clear {
pub fn new() -> Self {
Self {}
}
}
impl<T: Transducer> Datagram<T> for Clear {
type H = autd3_driver::Clear;
type B = NullBody;
fn timeout(&self) -> Option<Duration> {
Some(Duration::from_millis(200))
}
fn operation(&mut self, _: &Geometry<T>) -> Result<(Self::H, Self::B), AUTDInternalError> {
Ok((Self::H::default(), Self::B::default()))
}
}