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§discovered_routes: HashSet<DeviceRoute>§device_status: HashMap<DeviceRoute, DeviceStatus>§last: BTreeMap<StreamKey, (Sample, Instant)>§device_metadata: HashMap<DeviceRoute, DeviceFullMetadata>§window_aligned: Option<AlignedWindow>§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: InstantImplementations§
Source§impl App
impl App
pub fn new(all: bool, parent_route: &DeviceRoute) -> Self
pub fn visible_routes(&self) -> Vec<DeviceRoute>
pub fn rpc_list_len(&self) -> u16
pub fn current_pos(&self) -> Option<&NavPos>
pub fn current_selection(&self) -> Option<ColumnKey>
pub fn current_route(&self) -> DeviceRoute
pub fn current_device_index(&self) -> usize
pub fn device_count(&self) -> usize
pub fn handle_sample( &mut self, sample: Sample, route: DeviceRoute, buffer: &mut Buffer, )
pub fn update_plot_window(&mut self, buffer: &Buffer)
pub fn get_plot_data(&self) -> Option<(Vec<(f64, f64)>, f64, f64)>
pub fn get_spectral_density_data(&self) -> Option<(Vec<(f64, f64)>, f64)>
pub fn get_focused_channel_info(&self) -> Option<(String, String)>
pub fn tick_blink(&mut self)
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> 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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
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 moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
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