pub struct DetectedService {
pub name: String,
pub version: Option<String>,
pub running: bool,
pub ports: Vec<u16>,
}Expand description
A detected service running on the machine.
Fields§
§name: StringService name (e.g. “vllm”, “nginx”, “postgres”).
version: Option<String>Version string if detectable.
running: boolWhether the service process is running.
ports: Vec<u16>Ports the service is listening on.
Trait Implementations§
Source§impl Clone for DetectedService
impl Clone for DetectedService
Source§fn clone(&self) -> DetectedService
fn clone(&self) -> DetectedService
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DetectedService
impl Debug for DetectedService
Source§impl<'de> Deserialize<'de> for DetectedService
impl<'de> Deserialize<'de> for DetectedService
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for DetectedService
impl RefUnwindSafe for DetectedService
impl Send for DetectedService
impl Sync for DetectedService
impl Unpin for DetectedService
impl UnsafeUnpin for DetectedService
impl UnwindSafe for DetectedService
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