autd3_driver::link

Trait Link

source
pub trait Link: Send {
    // Required methods
    fn close(&mut self) -> impl Future<Output = Result<(), AUTDInternalError>>;
    fn send(
        &mut self,
        tx: &[TxMessage],
    ) -> impl Future<Output = Result<bool, AUTDInternalError>>;
    fn receive(
        &mut self,
        rx: &mut [RxMessage],
    ) -> impl Future<Output = Result<bool, AUTDInternalError>>;
    fn is_open(&self) -> bool;

    // Provided method
    fn update(
        &mut self,
        _geometry: &Geometry,
    ) -> impl Future<Output = Result<(), AUTDInternalError>> { ... }
}

Required Methods§

source

fn close(&mut self) -> impl Future<Output = Result<(), AUTDInternalError>>

source

fn send( &mut self, tx: &[TxMessage], ) -> impl Future<Output = Result<bool, AUTDInternalError>>

source

fn receive( &mut self, rx: &mut [RxMessage], ) -> impl Future<Output = Result<bool, AUTDInternalError>>

source

fn is_open(&self) -> bool

Provided Methods§

source

fn update( &mut self, _geometry: &Geometry, ) -> impl Future<Output = Result<(), AUTDInternalError>>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§