pub struct ServiceTarget {
pub host: HostTarget,
pub port: u16,
pub protocol: Protocol,
pub banner: Option<String>,
pub tls: bool,
}Expand description
A network service discovered on a host — port, protocol, optional banner.
Fields§
§host: HostTargetThe host this service runs on.
port: u16TCP/UDP port number.
protocol: ProtocolTransport protocol.
Raw banner grabbed from the service (first ~1 KB).
tls: boolWhether the service speaks TLS.
Implementations§
Trait Implementations§
Source§impl Clone for ServiceTarget
impl Clone for ServiceTarget
Source§fn clone(&self) -> ServiceTarget
fn clone(&self) -> ServiceTarget
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 ServiceTarget
impl Debug for ServiceTarget
Source§impl<'de> Deserialize<'de> for ServiceTarget
impl<'de> Deserialize<'de> for ServiceTarget
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 ServiceTarget
impl RefUnwindSafe for ServiceTarget
impl Send for ServiceTarget
impl Sync for ServiceTarget
impl Unpin for ServiceTarget
impl UnsafeUnpin for ServiceTarget
impl UnwindSafe for ServiceTarget
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