pub trait Datagram {
    type O1: Operation;
    type O2: Operation;

    // 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<D1, D2> Datagram for (D1, D2)where D1: Datagram<O2 = NullOp>, D2: Datagram<O2 = NullOp>,

§

type O1 = <D1 as Datagram>::O1

§

type O2 = <D2 as Datagram>::O1

source§

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

Implementors§