pub struct Visibility {
pub text: Option<Filter>,
pub uid: Option<u32>,
pub show_kernel_threads: bool,
pub show_userland_threads: bool,
pub show_containerised: bool,
}Expand description
The complete visibility predicate: command filter, owner, kernel threads.
Kept in one place so the table, the tree view and any future export all agree on what “visible” means.
Fields§
§text: Option<Filter>Command-line terms from F4.
uid: Option<u32>Only this uid, from u.
show_kernel_threads: boolWhether kernel threads are shown (from K / H).
show_userland_threads: boolWhether thread rows are shown (from H).
show_containerised: boolWhether processes inside a container are shown (htop’s O).
Linux-only in effect: Row::container is only ever set there, so on macOS
this is a no-op rather than a key that silently hides everything.
Implementations§
Trait Implementations§
Source§impl Clone for Visibility
impl Clone for Visibility
Source§impl Debug for Visibility
impl Debug for Visibility
Source§impl Default for Visibility
impl Default for Visibility
Source§fn default() -> Self
fn default() -> Self
Everything visible.
Written out rather than derived: derive(Default) sets every bool to
false, which for show_kernel_threads and show_containerised means
hidden. A default that quietly hides rows is a trap — the first
Visibility::default() would have made an empty-looking table.
Auto Trait Implementations§
impl Freeze for Visibility
impl RefUnwindSafe for Visibility
impl Send for Visibility
impl Sync for Visibility
impl Unpin for Visibility
impl UnsafeUnpin for Visibility
impl UnwindSafe for Visibility
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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 more