[][src]Trait autd::prelude::Link

pub trait Link: Send {
    fn open(&mut self) -> Result<(), Box<dyn Error + 'static>>;
fn close(&mut self) -> Result<(), Box<dyn Error + 'static>>;
fn send(&mut self, data: Vec<u8>) -> Result<(), Box<dyn Error + 'static>>;
fn read(
        &mut self,
        buffer_len: u32
    ) -> Result<Vec<u8>, Box<dyn Error + 'static>>;
fn is_open(&self) -> bool;
fn calibrate(&mut self) -> Result<bool, Box<dyn Error + 'static>>; }

Link is a interface to the AUTD device.

Required methods

fn open(&mut self) -> Result<(), Box<dyn Error + 'static>>

fn close(&mut self) -> Result<(), Box<dyn Error + 'static>>

fn send(&mut self, data: Vec<u8>) -> Result<(), Box<dyn Error + 'static>>

fn read(&mut self, buffer_len: u32) -> Result<Vec<u8>, Box<dyn Error + 'static>>

fn is_open(&self) -> bool

fn calibrate(&mut self) -> Result<bool, Box<dyn Error + 'static>>

Loading content...

Implementors

Loading content...