pub struct EModel {
pub start_addr: u16,
pub end_addr: u16,
pub model_number: u16,
pub qtd: u16,
pub update: bool,
pub data: Vec<EDataTypes>,
}Fields§
§start_addr: u16§end_addr: u16§model_number: u16§qtd: u16§update: bool§data: Vec<EDataTypes>Trait Implementations§
Source§impl EmbrasulModels for EModel
impl EmbrasulModels for EModel
fn new(model_number: u16) -> EModel
fn update_data(&mut self, point: &str, value: &EDataTypes)
fn update_data_by_index(&mut self, index: usize, value: &EDataTypes)
fn get_data(&self, point: &str) -> EDataTypes
fn get_data_index(&self, point: &str) -> usize
fn get_f32(&self, point: &str) -> Option<f32>
fn get_f32_by_index(&self, idx: usize) -> Option<f32>
fn get_string(&self, point: &str) -> Option<String>
fn get_string_by_index(&self, idx: usize) -> Option<String>
fn get_u16(&self, point: &str) -> Option<u16>
fn get_u16_by_index(&self, idx: usize) -> Option<u16>
fn get_u32(&self, point: &str) -> Option<u32>
fn get_u32_by_index(&self, idx: usize) -> Option<u32>
fn get_u64(&self, point: &str) -> Option<u64>
fn get_u64_by_index(&self, idx: usize) -> Option<u64>
fn get_u128(&self, point: &str) -> Option<u128>
fn get_u128_by_index(&self, idx: usize) -> Option<u128>
fn get_i16(&self, point: &str) -> Option<i16>
fn get_i16_by_index(&self, idx: usize) -> Option<i16>
fn get_i32(&self, point: &str) -> Option<i32>
fn get_i32_by_index(&self, idx: usize) -> Option<i32>
fn get_i64(&self, point: &str) -> Option<i64>
fn get_i64_by_index(&self, idx: usize) -> Option<i64>
fn print(&self)
Auto Trait Implementations§
impl Freeze for EModel
impl RefUnwindSafe for EModel
impl Send for EModel
impl Sync for EModel
impl Unpin for EModel
impl UnwindSafe for EModel
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more