Skip to main content

DemoData

Struct DemoData 

Source
pub struct DemoData {
    pub manual_delay: bool,
    pub delay: u16,
    idx: usize,
    data_offset: u8,
    antenna_state: [AntennaState; 4],
    angle_ds: Vec<f64>,
    antenna_ds: Vec<f64>,
    real_ds: Vec<Vec<i32>>,
    imag_ds: Vec<Vec<i32>>,
    enable_ds: Vec<f64>,
    time_ds: Vec<f64>,
    pub state: State,
}
Expand description

A struct to contain demo data info.

Fields§

§manual_delay: bool§delay: u16§idx: usize§data_offset: u8§antenna_state: [AntennaState; 4]§angle_ds: Vec<f64>§antenna_ds: Vec<f64>§real_ds: Vec<Vec<i32>>§imag_ds: Vec<Vec<i32>>§enable_ds: Vec<f64>§time_ds: Vec<f64>§state: State

Implementations§

Source§

impl DemoData

Source

pub fn new() -> DemoData

Initialize DemoData

Source

pub fn update_state(&mut self, conf: SettingData)

This would be used to demonstrate changing settings if the archiver were correctly forwarding them. ToDo: have the archiver forward settings

Trait Implementations§

Source§

impl ComplexDataSource for DemoData

Pull data out of the data loaded into memory from the demo data file. Prepair it for send.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.