pub struct EventExplorerApp {Show 19 fields
pub actor_id: String,
pub events: Vec<ChainEvent>,
pub filtered_events: Vec<usize>,
pub list_state: ListState,
pub selected_event_index: Option<usize>,
pub should_quit: bool,
pub detail_mode: DetailMode,
pub show_help: bool,
pub detail_scroll_offset: usize,
pub active_filters: EventFilters,
pub search_query: String,
pub filter_input_mode: bool,
pub search_input_mode: bool,
pub page_size: usize,
pub current_page: usize,
pub live_mode: bool,
pub follow_mode: bool,
pub paused: bool,
pub event_cache: HashMap<String, ProcessedEventData>,
}Fields§
§actor_id: String§events: Vec<ChainEvent>§filtered_events: Vec<usize>§list_state: ListState§selected_event_index: Option<usize>§should_quit: bool§detail_mode: DetailMode§show_help: bool§detail_scroll_offset: usize§active_filters: EventFilters§search_query: String§filter_input_mode: bool§search_input_mode: bool§page_size: usize§current_page: usize§live_mode: bool§follow_mode: bool§paused: bool§event_cache: HashMap<String, ProcessedEventData>Implementations§
Source§impl EventExplorerApp
impl EventExplorerApp
pub fn new(actor_id: String, live_mode: bool, follow_mode: bool) -> Self
pub fn load_events(&mut self, events: Vec<ChainEvent>)
pub fn add_live_event(&mut self, event: ChainEvent)
pub fn apply_filters(&mut self)
pub fn event_matches_filters(&self, event: &ChainEvent) -> bool
pub fn get_selected_event(&self) -> Option<&ChainEvent>
pub fn select_next(&mut self)
pub fn select_previous(&mut self)
pub fn page_up(&mut self)
pub fn page_down(&mut self)
pub fn select_last_event(&mut self)
pub fn cycle_detail_mode(&mut self)
pub fn scroll_detail_up(&mut self)
pub fn scroll_detail_down(&mut self)
pub fn scroll_detail_page_up(&mut self, page_size: usize)
pub fn scroll_detail_page_down(&mut self, page_size: usize)
pub fn reset_detail_scroll(&mut self)
pub fn toggle_help(&mut self)
pub fn toggle_pause(&mut self)
pub fn toggle_follow(&mut self)
pub fn enter_search_mode(&mut self)
pub fn clear_search(&mut self)
pub fn enter_filter_mode(&mut self)
pub fn set_event_type_filter(&mut self, event_type: String)
pub fn set_search_query(&mut self, query: String)
pub fn quit(&mut self)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for EventExplorerApp
impl RefUnwindSafe for EventExplorerApp
impl Send for EventExplorerApp
impl Sync for EventExplorerApp
impl Unpin for EventExplorerApp
impl UnwindSafe for EventExplorerApp
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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