pub trait Datagram<T: Transducer> {
    type O1: Operation<T>;
    type O2: Operation<T>;

    // Required method
    fn operation(self) -> Result<(Self::O1, Self::O2), AUTDInternalError>;

    // Provided method
    fn timeout(&self) -> Option<Duration> { ... }
}
Expand description

Datagram to be sent to devices

Required Associated Types§

Required Methods§

source

fn operation(self) -> Result<(Self::O1, Self::O2), AUTDInternalError>

Provided Methods§

Implementations on Foreign Types§

source§

impl<T: Transducer, D1, D2> Datagram<T> for (D1, D2)where D1: Datagram<T, O2 = NullOp>, D2: Datagram<T, O2 = NullOp>,

§

type O1 = <D1 as Datagram<T>>::O1

§

type O2 = <D2 as Datagram<T>>::O1

source§

fn operation(self) -> Result<(Self::O1, Self::O2), AUTDInternalError>

Implementors§