pub trait InterfaceTrait {
    // Required methods
    fn get_more_data(
        &mut self,
        _layer_list: Layers,
        data: &mut Data
    ) -> Result<(), Vec<TramexError>>;
    fn close(&mut self) -> Result<(), TramexError>;
}
Expand description

Interface trait

Required Methods§

source

fn get_more_data( &mut self, _layer_list: Layers, data: &mut Data ) -> Result<(), Vec<TramexError>>

Get more data

Errors

Return an error if the data is not received correctly

source

fn close(&mut self) -> Result<(), TramexError>

Try to close the interface

Errors

Return an error if its fail

Implementors§