pub struct PayloadBuilder { /* private fields */ }
Expand description
Payload builder for service detection
Implementations§
Source§impl PayloadBuilder
impl PayloadBuilder
Sourcepub fn payload(self) -> PayloadInfo
pub fn payload(self) -> PayloadInfo
Return payload as PayloadInfo
Sourcepub fn generic_line() -> PayloadInfo
pub fn generic_line() -> PayloadInfo
Create a new PayloadInfo with a generic line
Sourcepub fn generic_line_tls() -> PayloadInfo
pub fn generic_line_tls() -> PayloadInfo
Create a new PayloadInfo with a generic line for TLS
Sourcepub fn hello() -> PayloadInfo
pub fn hello() -> PayloadInfo
Create a new PayloadInfo with a hello message
Sourcepub fn hello_tls() -> PayloadInfo
pub fn hello_tls() -> PayloadInfo
Create a new PayloadInfo with a hello message for TLS
Sourcepub fn http_head() -> PayloadInfo
pub fn http_head() -> PayloadInfo
Create a new PayloadInfo with a HTTP head request
Sourcepub fn https_head(hostname: String) -> PayloadInfo
pub fn https_head(hostname: String) -> PayloadInfo
Create a new PayloadInfo with a HTTPS head request
Sourcepub fn http_get(path: &str) -> PayloadInfo
pub fn http_get(path: &str) -> PayloadInfo
Create a new PayloadInfo with a HTTP get request
Sourcepub fn https_get(path: &str, hostname: &str) -> PayloadInfo
pub fn https_get(path: &str, hostname: &str) -> PayloadInfo
Create a new PayloadInfo with a HTTPS get request
Trait Implementations§
Source§impl Clone for PayloadBuilder
impl Clone for PayloadBuilder
Source§fn clone(&self) -> PayloadBuilder
fn clone(&self) -> PayloadBuilder
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for PayloadBuilder
impl RefUnwindSafe for PayloadBuilder
impl Send for PayloadBuilder
impl Sync for PayloadBuilder
impl Unpin for PayloadBuilder
impl UnwindSafe for PayloadBuilder
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<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