Skip to main content

App

Struct App 

Source
pub struct App {
Show 25 fields pub all: bool, pub parent_route: DeviceRoute, pub mode: Mode, pub view: ViewConfig, pub nav: Nav, pub nav_items: Vec<NavPos>, pub discovered_routes: HashSet<DeviceRoute>, pub device_status: HashMap<DeviceRoute, DeviceStatus>, pub last: BTreeMap<StreamKey, (Sample, Instant)>, pub device_metadata: HashMap<DeviceRoute, DeviceFullMetadata>, pub window_aligned: Option<AlignedWindow>, pub footer_height: u16, pub rpc_registries: HashMap<DeviceRoute, RpcRegistry>, pub suggested_rpcs: VecDeque<String>, pub suggested_rpcs_len: usize, pub suggested_rpcs_ind: usize, pub input_state: TextState<'static>, pub current_completion: String, pub cmd_history: Vec<String>, pub history_ptr: usize, pub present_command: String, pub last_rpc_result: Option<(String, Color)>, pub last_rpc_command: String, pub blink_state: bool, pub last_blink: Instant,
}

Fields§

§all: bool§parent_route: DeviceRoute§mode: Mode§view: ViewConfig§nav: Nav§nav_items: Vec<NavPos>§discovered_routes: HashSet<DeviceRoute>§device_status: HashMap<DeviceRoute, DeviceStatus>§last: BTreeMap<StreamKey, (Sample, Instant)>§device_metadata: HashMap<DeviceRoute, DeviceFullMetadata>§window_aligned: Option<AlignedWindow>§footer_height: u16§rpc_registries: HashMap<DeviceRoute, RpcRegistry>§suggested_rpcs: VecDeque<String>§suggested_rpcs_len: usize§suggested_rpcs_ind: usize§input_state: TextState<'static>§current_completion: String§cmd_history: Vec<String>§history_ptr: usize§present_command: String§last_rpc_result: Option<(String, Color)>§last_rpc_command: String§blink_state: bool§last_blink: Instant

Implementations§

Source§

impl App

Source

pub fn new(all: bool, parent_route: &DeviceRoute) -> Self

Source

pub fn visible_routes(&self) -> Vec<DeviceRoute>

Source

pub fn rebuild_nav_items(&mut self)

Source

pub fn rpc_list_len(&self) -> u16

Source

pub fn current_pos(&self) -> Option<&NavPos>

Source

pub fn current_selection(&self) -> Option<ColumnKey>

Source

pub fn current_route(&self) -> DeviceRoute

Source

pub fn current_device_index(&self) -> usize

Source

pub fn device_count(&self) -> usize

Source

pub fn handle_sample( &mut self, sample: Sample, route: DeviceRoute, buffer: &mut Buffer, )

Source

pub fn update_plot_window(&mut self, buffer: &Buffer)

Source

pub fn get_plot_data(&self) -> Option<(Vec<(f64, f64)>, f64, f64)>

Source

pub fn get_spectral_density_data(&self) -> Option<(Vec<(f64, f64)>, f64)>

Source

pub fn get_focused_channel_info(&self) -> Option<(String, String)>

Auto Trait Implementations§

§

impl Freeze for App

§

impl RefUnwindSafe for App

§

impl Send for App

§

impl Sync for App

§

impl Unpin for App

§

impl UnsafeUnpin for App

§

impl UnwindSafe for App

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> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
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.