pub struct JavaPingConfigBuilder { /* private fields */ }Implementations§
Source§impl JavaPingConfigBuilder
impl JavaPingConfigBuilder
pub fn new() -> Self
pub fn from(config: &PingConfigBuilder) -> Self
pub fn set_protocol_version(self, protocol_version: i32) -> Self
pub fn set_hostname(self, hostname: Option<String>) -> Self
pub fn set_timeout(self, timeout: Duration) -> Self
pub fn deny_non_public_ips(self) -> Self
pub fn build(self) -> JavaPingConfig
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for JavaPingConfigBuilder
impl !UnwindSafe for JavaPingConfigBuilder
impl Freeze for JavaPingConfigBuilder
impl Send for JavaPingConfigBuilder
impl Sync for JavaPingConfigBuilder
impl Unpin for JavaPingConfigBuilder
impl UnsafeUnpin for JavaPingConfigBuilder
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> 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