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§
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 Methods§
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.