pub struct InspectorModal {Show 29 fields
pub fields: Vec<InspectField>,
pub filter: String,
pub finding: bool,
pub visible: Vec<usize>,
pub list_offset: usize,
pub list_page: usize,
pub order: Order,
pub filled_only: bool,
pub focus: Focus,
pub view: Option<View>,
pub wrap: Wrap,
pub reader: Reader,
pub pane: Option<(PaneKey, Pane)>,
pub value_find: Option<ValueFind>,
pub page: usize,
pub shown_row: Option<(u64, usize)>,
pub read: Option<FieldRead>,
pub follow: Option<String>,
pub compare: bool,
pub pinned: Option<InspectRow>,
pub compare_both: bool,
pub drill: Option<Drill>,
pub json_wait: Option<JsonWait>,
pub json_token: u64,
pub not_json: Option<(u64, usize, String)>,
pub pretty: Option<Pretty>,
pub pretty_token: u64,
pub unpack: Option<Unpack>,
pub unpack_token: u64,
/* private fields */
}Fields§
§fields: Vec<InspectField>§filter: StringThe find text over the fields’ names, then their values.
finding: boolThe find line has the keys.
visible: Vec<usize>The fields listed, in the order listed: the find text, the nulls toggle and
the order applied. Kept by Self::set_visible.
list_offset: usizeThe first field listed when the list scrolls.
list_page: usizeFields the list showed last frame: a page for PgUp/PgDn.
order: Order§filled_only: boolOnly fields with a value, or with Compare on, only those that differ.
focus: Focus§view: Option<View>The view chosen with e, for the field it was chosen on.
wrap: Wrap§reader: ReaderWhere the value pane is in its value.
pane: Option<(PaneKey, Pane)>§value_find: Option<ValueFind>§page: usizeLines the value pane showed last frame: a page for PgUp/PgDn.
shown_row: Option<(u64, usize)>The row the pane was last drawn for; a new one starts at its top.
read: Option<FieldRead>§follow: Option<String>After Enter read a field, the rows moved to are read too while the focus stays on that field.
compare: boolThe list has a column for another row: the pinned one, or the next.
pinned: Option<InspectRow>The row m pinned for Compare.
compare_both: boolCompare shows the row before as well as the next: the last frame was wide enough for three.
drill: Option<Drill>The levels opened under the focused field, when Enter drilled into it.
json_wait: Option<JsonWait>Text being parsed as JSON off this thread, to open as a level.
json_token: u64The last JsonWait::token handed out.
not_json: Option<(u64, usize, String)>Text that looked like JSON and did not parse, by frame, row and path: Enter there shows it as text, not a second try that fails the same way.
pretty: Option<Pretty>Long JSON text indented off this thread for the JSON view.
pretty_token: u64§unpack: Option<Unpack>Compressed bytes decompressed off this thread for the Text view.
unpack_token: u64Implementations§
Source§impl InspectorModal
impl InspectorModal
pub fn new() -> Self
Sourcepub fn open(&mut self, fields: Vec<InspectField>, current: Option<&str>)
pub fn open(&mut self, fields: Vec<InspectField>, current: Option<&str>)
Open over the table’s selected row, focused on current, the table’s column
cursor; without one, the last field focused while it still exists.
pub fn close(&mut self)
Sourcepub fn next_pane_id(&mut self) -> u64
pub fn next_pane_id(&mut self) -> u64
A new id for a pane just built: the reader starts at its top.
Sourcepub fn unpacked(&self, place: &(u64, usize, String)) -> Unpacked
pub fn unpacked(&self, place: &(u64, usize, String)) -> Unpacked
Where text decompressed from the bytes at place stands.
Sourcepub fn known_not_json(&self, frame: u64, row: usize, path: &str) -> bool
pub fn known_not_json(&self, frame: u64, row: usize, path: &str) -> bool
Whether the text at path of row row of frame frame was found not to be JSON.
Sourcepub fn focused(&self) -> Option<&InspectField>
pub fn focused(&self) -> Option<&InspectField>
The focused field: the one selected while it is listed, else the first listed. None when nothing is listed.
Sourcepub fn focused_position(&self) -> usize
pub fn focused_position(&self) -> usize
Where the focused field is among those listed.
Sourcepub fn set_visible(&mut self, visible: Vec<usize>)
pub fn set_visible(&mut self, visible: Vec<usize>)
The fields listed. A focused field no longer listed gives the focus to the first that is.
Sourcepub fn move_field(&mut self, step: ListMove)
pub fn move_field(&mut self, step: ListMove)
Move the focus by step: through the items of a level drilled into, or
through the fields, ↑↓ wrapping round and a page scrolling the list as far.
Sourcepub fn choose_view(&mut self, view: View)
pub fn choose_view(&mut self, view: View)
Choose the view e moves to.
Sourcepub fn drill_in(&mut self, frame: u64, row: usize, label: String, node: Node)
pub fn drill_in(&mut self, frame: u64, row: usize, label: String, node: Node)
Open node as a level under the one shown, or under the row’s field.
Sourcepub fn drill_out(&mut self) -> bool
pub fn drill_out(&mut self) -> bool
Step up one level; false at the row, where there is no level to leave.
Sourcepub fn wait_for_json(
&mut self,
frame: u64,
row: usize,
label: String,
path: String,
) -> u64
pub fn wait_for_json( &mut self, frame: u64, row: usize, label: String, path: String, ) -> u64
A ticket for text about to be parsed as JSON off this thread.
Sourcepub fn find_key(&mut self, c: char, mods: KeyModifiers)
pub fn find_key(&mut self, c: char, mods: KeyModifiers)
A typed key while finding: narrows the fields. Ctrl+W drops a word and Ctrl+U the whole text; any other chord types nothing.
pub fn find_backspace(&mut self)
pub fn clear_find(&mut self)
Sourcepub fn row_shown(&mut self, frame: u64, row: usize)
pub fn row_shown(&mut self, frame: u64, row: usize)
The table moved to another row: what was read, opened or indented for the last row is let go.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for InspectorModal
impl !RefUnwindSafe for InspectorModal
impl !UnwindSafe for InspectorModal
impl Send for InspectorModal
impl Sync for InspectorModal
impl Unpin for InspectorModal
impl UnsafeUnpin for InspectorModal
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
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> ⓘ
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> ⓘ
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 moreSource§impl<D> OwoColorize for D
impl<D> OwoColorize for D
Source§fn fg<C>(&self) -> FgColorDisplay<'_, C, Self>where
C: Color,
fn fg<C>(&self) -> FgColorDisplay<'_, C, Self>where
C: Color,
Source§fn bg<C>(&self) -> BgColorDisplay<'_, C, Self>where
C: Color,
fn bg<C>(&self) -> BgColorDisplay<'_, C, Self>where
C: Color,
Source§fn black(&self) -> FgColorDisplay<'_, Black, Self>
fn black(&self) -> FgColorDisplay<'_, Black, Self>
Source§fn on_black(&self) -> BgColorDisplay<'_, Black, Self>
fn on_black(&self) -> BgColorDisplay<'_, Black, Self>
Source§fn red(&self) -> FgColorDisplay<'_, Red, Self>
fn red(&self) -> FgColorDisplay<'_, Red, Self>
Source§fn on_red(&self) -> BgColorDisplay<'_, Red, Self>
fn on_red(&self) -> BgColorDisplay<'_, Red, Self>
Source§fn green(&self) -> FgColorDisplay<'_, Green, Self>
fn green(&self) -> FgColorDisplay<'_, Green, Self>
Source§fn on_green(&self) -> BgColorDisplay<'_, Green, Self>
fn on_green(&self) -> BgColorDisplay<'_, Green, Self>
Source§fn yellow(&self) -> FgColorDisplay<'_, Yellow, Self>
fn yellow(&self) -> FgColorDisplay<'_, Yellow, Self>
Source§fn on_yellow(&self) -> BgColorDisplay<'_, Yellow, Self>
fn on_yellow(&self) -> BgColorDisplay<'_, Yellow, Self>
Source§fn blue(&self) -> FgColorDisplay<'_, Blue, Self>
fn blue(&self) -> FgColorDisplay<'_, Blue, Self>
Source§fn on_blue(&self) -> BgColorDisplay<'_, Blue, Self>
fn on_blue(&self) -> BgColorDisplay<'_, Blue, Self>
Source§fn magenta(&self) -> FgColorDisplay<'_, Magenta, Self>
fn magenta(&self) -> FgColorDisplay<'_, Magenta, Self>
Source§fn on_magenta(&self) -> BgColorDisplay<'_, Magenta, Self>
fn on_magenta(&self) -> BgColorDisplay<'_, Magenta, Self>
Source§fn purple(&self) -> FgColorDisplay<'_, Magenta, Self>
fn purple(&self) -> FgColorDisplay<'_, Magenta, Self>
Source§fn on_purple(&self) -> BgColorDisplay<'_, Magenta, Self>
fn on_purple(&self) -> BgColorDisplay<'_, Magenta, Self>
Source§fn cyan(&self) -> FgColorDisplay<'_, Cyan, Self>
fn cyan(&self) -> FgColorDisplay<'_, Cyan, Self>
Source§fn on_cyan(&self) -> BgColorDisplay<'_, Cyan, Self>
fn on_cyan(&self) -> BgColorDisplay<'_, Cyan, Self>
Source§fn white(&self) -> FgColorDisplay<'_, White, Self>
fn white(&self) -> FgColorDisplay<'_, White, Self>
Source§fn on_white(&self) -> BgColorDisplay<'_, White, Self>
fn on_white(&self) -> BgColorDisplay<'_, White, Self>
Source§fn default_color(&self) -> FgColorDisplay<'_, Default, Self>
fn default_color(&self) -> FgColorDisplay<'_, Default, Self>
Source§fn on_default_color(&self) -> BgColorDisplay<'_, Default, Self>
fn on_default_color(&self) -> BgColorDisplay<'_, Default, Self>
Source§fn bright_black(&self) -> FgColorDisplay<'_, BrightBlack, Self>
fn bright_black(&self) -> FgColorDisplay<'_, BrightBlack, Self>
Source§fn on_bright_black(&self) -> BgColorDisplay<'_, BrightBlack, Self>
fn on_bright_black(&self) -> BgColorDisplay<'_, BrightBlack, Self>
Source§fn bright_red(&self) -> FgColorDisplay<'_, BrightRed, Self>
fn bright_red(&self) -> FgColorDisplay<'_, BrightRed, Self>
Source§fn on_bright_red(&self) -> BgColorDisplay<'_, BrightRed, Self>
fn on_bright_red(&self) -> BgColorDisplay<'_, BrightRed, Self>
Source§fn bright_green(&self) -> FgColorDisplay<'_, BrightGreen, Self>
fn bright_green(&self) -> FgColorDisplay<'_, BrightGreen, Self>
Source§fn on_bright_green(&self) -> BgColorDisplay<'_, BrightGreen, Self>
fn on_bright_green(&self) -> BgColorDisplay<'_, BrightGreen, Self>
Source§fn bright_yellow(&self) -> FgColorDisplay<'_, BrightYellow, Self>
fn bright_yellow(&self) -> FgColorDisplay<'_, BrightYellow, Self>
Source§fn on_bright_yellow(&self) -> BgColorDisplay<'_, BrightYellow, Self>
fn on_bright_yellow(&self) -> BgColorDisplay<'_, BrightYellow, Self>
Source§fn bright_blue(&self) -> FgColorDisplay<'_, BrightBlue, Self>
fn bright_blue(&self) -> FgColorDisplay<'_, BrightBlue, Self>
Source§fn on_bright_blue(&self) -> BgColorDisplay<'_, BrightBlue, Self>
fn on_bright_blue(&self) -> BgColorDisplay<'_, BrightBlue, Self>
Source§fn bright_magenta(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
fn bright_magenta(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
Source§fn on_bright_magenta(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
fn on_bright_magenta(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
Source§fn bright_purple(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
fn bright_purple(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
Source§fn on_bright_purple(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
fn on_bright_purple(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
Source§fn bright_cyan(&self) -> FgColorDisplay<'_, BrightCyan, Self>
fn bright_cyan(&self) -> FgColorDisplay<'_, BrightCyan, Self>
Source§fn on_bright_cyan(&self) -> BgColorDisplay<'_, BrightCyan, Self>
fn on_bright_cyan(&self) -> BgColorDisplay<'_, BrightCyan, Self>
Source§fn bright_white(&self) -> FgColorDisplay<'_, BrightWhite, Self>
fn bright_white(&self) -> FgColorDisplay<'_, BrightWhite, Self>
Source§fn on_bright_white(&self) -> BgColorDisplay<'_, BrightWhite, Self>
fn on_bright_white(&self) -> BgColorDisplay<'_, BrightWhite, Self>
Source§fn bold(&self) -> BoldDisplay<'_, Self>
fn bold(&self) -> BoldDisplay<'_, Self>
Source§fn dimmed(&self) -> DimDisplay<'_, Self>
fn dimmed(&self) -> DimDisplay<'_, Self>
Source§fn italic(&self) -> ItalicDisplay<'_, Self>
fn italic(&self) -> ItalicDisplay<'_, Self>
Source§fn underline(&self) -> UnderlineDisplay<'_, Self>
fn underline(&self) -> UnderlineDisplay<'_, Self>
Source§fn blink(&self) -> BlinkDisplay<'_, Self>
fn blink(&self) -> BlinkDisplay<'_, Self>
Source§fn blink_fast(&self) -> BlinkFastDisplay<'_, Self>
fn blink_fast(&self) -> BlinkFastDisplay<'_, Self>
Source§fn reversed(&self) -> ReversedDisplay<'_, Self>
fn reversed(&self) -> ReversedDisplay<'_, Self>
Source§fn strikethrough(&self) -> StrikeThroughDisplay<'_, Self>
fn strikethrough(&self) -> StrikeThroughDisplay<'_, Self>
Source§fn color<Color>(&self, color: Color) -> FgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
fn color<Color>(&self, color: Color) -> FgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
OwoColorize::fg or
a color-specific method, such as OwoColorize::green, Read moreSource§fn on_color<Color>(&self, color: Color) -> BgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
fn on_color<Color>(&self, color: Color) -> BgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
OwoColorize::bg or
a color-specific method, such as OwoColorize::on_yellow, Read more