1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#[cfg(feature = "lightweight")]
mod autd3;
mod driver;
#[cfg(feature = "lightweight")]
mod holo;

pub trait ToMessage {
    type Message: prost::Message;

    fn to_msg(&self, geometry: Option<&autd3_driver::geometry::Geometry>) -> Self::Message;
}

pub trait FromMessage<T: prost::Message>
where
    Self: Sized,
{
    fn from_msg(msg: &T) -> Option<Self>;
}

#[cfg(feature = "lightweight")]
pub use driver::to_transition_mode;