Trait autd3_driver::datagram::DatagramS

source ·
pub trait DatagramS {
    type O1: Operation;
    type O2: Operation;

    // Required method
    fn operation_with_segment(
        self,
        segment: Segment,
        transition: bool
    ) -> (Self::O1, Self::O2);

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

Required Associated Types§

Required Methods§

source

fn operation_with_segment( self, segment: Segment, transition: bool ) -> (Self::O1, Self::O2)

Provided Methods§

Implementations on Foreign Types§

source§

impl DatagramS for Box<dyn Gain>

§

type O1 = GainOp<Box<dyn Gain>>

§

type O2 = NullOp

source§

fn operation_with_segment( self, segment: Segment, transition: bool ) -> (Self::O1, Self::O2)

Implementors§

source§

impl<G: Gain + 'static> DatagramS for Cache<G>
where GainOp<Self>: Operation,

§

type O1 = GainOp<Cache<G>>

§

type O2 = NullOp

source§

impl<G: Gain + 'static, F: Fn(&Device, &Transducer, Drive) -> Drive + 'static> DatagramS for Transform<G, F>
where GainOp<Self>: Operation,

§

type O1 = GainOp<Transform<G, F>>

§

type O2 = NullOp

source§

impl<K, F> DatagramS for Group<K, F>
where GainOp<Self>: Operation, K: Hash + Eq + Clone + Debug + 'static, F: Fn(&Device, &Transducer) -> Option<K> + 'static,

§

type O1 = GainOp<Group<K, F>>

§

type O2 = NullOp