pub struct EbpfPanelState {Show 13 fields
pub trace_events: VecDeque<CachedTraceEvent>,
pub scroll_offset: usize,
pub max_messages: usize,
pub auto_scroll: bool,
pub cursor_trace_index: usize,
pub show_cursor: bool,
pub display_mode: DisplayMode,
pub next_message_id: u64,
pub numeric_prefix: Option<String>,
pub g_pressed: bool,
pub view_mode: EbpfViewMode,
pub expanded_scroll: usize,
pub last_inner_height: usize,
}Expand description
eBPF panel state
Fields§
§trace_events: VecDeque<CachedTraceEvent>§scroll_offset: usize§max_messages: usize§auto_scroll: bool§cursor_trace_index: usize§show_cursor: bool§display_mode: DisplayMode§next_message_id: u64§numeric_prefix: Option<String>§g_pressed: bool§view_mode: EbpfViewMode§expanded_scroll: usize§last_inner_height: usizeImplementations§
Source§impl EbpfPanelState
impl EbpfPanelState
pub fn new() -> Self
pub fn new_with_max_messages(max_messages: usize) -> Self
pub fn add_trace_event(&mut self, trace_event: ParsedTraceEvent)
pub fn scroll_up(&mut self)
pub fn scroll_down(&mut self)
pub fn scroll_to_bottom(&mut self)
pub fn move_cursor_up(&mut self)
pub fn move_cursor_down(&mut self)
pub fn move_cursor_up_10(&mut self)
pub fn move_cursor_down_10(&mut self)
pub fn jump_to_first(&mut self)
pub fn jump_to_last(&mut self)
pub fn push_numeric_digit(&mut self, ch: char)
pub fn confirm_goto(&mut self)
pub fn jump_to_message_number(&mut self, message_number: u64)
pub fn exit_to_auto_refresh(&mut self)
pub fn handle_g_key(&mut self)
pub fn hide_cursor(&mut self)
pub fn open_expanded_current(&mut self)
pub fn close_expanded(&mut self)
pub fn is_expanded(&self) -> bool
pub fn expanded_index(&self) -> Option<usize>
pub fn set_expanded_scroll(&mut self, value: usize)
pub fn scroll_expanded_up(&mut self, lines: usize)
pub fn scroll_expanded_down(&mut self, lines: usize, max_lines: usize)
Trait Implementations§
Source§impl Debug for EbpfPanelState
impl Debug for EbpfPanelState
Auto Trait Implementations§
impl Freeze for EbpfPanelState
impl RefUnwindSafe for EbpfPanelState
impl Send for EbpfPanelState
impl Sync for EbpfPanelState
impl Unpin for EbpfPanelState
impl UnwindSafe for EbpfPanelState
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