Trait autd3_driver::link::Link
source · pub trait Link: Send {
// Required methods
fn close(&mut self) -> impl Future<Output = Result<(), AUTDInternalError>>;
fn send(
&mut self,
tx: &TxDatagram,
) -> impl Future<Output = Result<bool, AUTDInternalError>>;
fn receive(
&mut self,
rx: &mut [RxMessage],
) -> impl Future<Output = Result<bool, AUTDInternalError>>;
fn is_open(&self) -> bool;
fn timeout(&self) -> Duration;
// Provided methods
fn update(
&mut self,
_geometry: &Geometry,
) -> impl Future<Output = Result<(), AUTDInternalError>> { ... }
fn trace(
&mut self,
_: &TxDatagram,
_: &mut [RxMessage],
_: Option<Duration>,
) { ... }
}Required Methods§
fn close(&mut self) -> impl Future<Output = Result<(), AUTDInternalError>>
fn send( &mut self, tx: &TxDatagram, ) -> impl Future<Output = Result<bool, AUTDInternalError>>
fn receive( &mut self, rx: &mut [RxMessage], ) -> impl Future<Output = Result<bool, AUTDInternalError>>
fn is_open(&self) -> bool
fn timeout(&self) -> Duration
Provided Methods§
fn update( &mut self, _geometry: &Geometry, ) -> impl Future<Output = Result<(), AUTDInternalError>>
fn trace(&mut self, _: &TxDatagram, _: &mut [RxMessage], _: Option<Duration>)
Object Safety§
This trait is not object safe.