pub struct UseScan {
pub users: Vec<ProcessUser>,
pub unreadable: Vec<String>,
pub unavailable: Option<String>,
}Expand description
What:
The processes found using a target and the reasons the scan could not see everything.
Why:
A caller that cannot rely on a scan with no process table refuses when unavailable is set;
unreadable lists single processes the scan could not see into, which a caller may or may not tolerate.
In TS you’d write (pseudocode):
type UseScan = { users: ProcessUser[]; unreadable: string[]; unavailable?: string };Fields§
§users: Vec<ProcessUser>Processes using the target.
unreadable: Vec<String>Reasons some process of the scanning account could not be read.
Why the process table itself could not be listed, so that no process was scanned.
Trait Implementations§
impl Eq for UseScan
impl StructuralPartialEq for UseScan
Auto Trait Implementations§
impl Freeze for UseScan
impl RefUnwindSafe for UseScan
impl Send for UseScan
impl Sync for UseScan
impl Unpin for UseScan
impl UnsafeUnpin for UseScan
impl UnwindSafe for UseScan
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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