pub struct JavaModernProtocol;Expand description
Java Edition modern ping (1.7+).
Unit struct — zero-size, Copy, no heap allocation.
Trait Implementations§
Source§impl Clone for JavaModernProtocol
impl Clone for JavaModernProtocol
Source§fn clone(&self) -> JavaModernProtocol
fn clone(&self) -> JavaModernProtocol
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 moreimpl Copy for JavaModernProtocol
Source§impl Debug for JavaModernProtocol
impl Debug for JavaModernProtocol
Source§impl Default for JavaModernProtocol
impl Default for JavaModernProtocol
Source§fn default() -> JavaModernProtocol
fn default() -> JavaModernProtocol
Returns the “default value” for a type. Read more
Source§impl PingProtocol for JavaModernProtocol
impl PingProtocol for JavaModernProtocol
Source§fn name(&self) -> &'static str
fn name(&self) -> &'static str
Short human-readable identifier, e.g.
"java-modern", "bedrock",
"query". Used as part of the response-cache key.Source§async fn ping(
&self,
target: &ResolvedTarget,
tout: Duration,
proxy: Option<&ProxyConfig>,
) -> Result<PingResult, McError>
async fn ping( &self, target: &ResolvedTarget, tout: Duration, proxy: Option<&ProxyConfig>, ) -> Result<PingResult, McError>
Execute the ping against an already-resolved target. Read more
Auto Trait Implementations§
impl Freeze for JavaModernProtocol
impl RefUnwindSafe for JavaModernProtocol
impl Send for JavaModernProtocol
impl Sync for JavaModernProtocol
impl Unpin for JavaModernProtocol
impl UnsafeUnpin for JavaModernProtocol
impl UnwindSafe for JavaModernProtocol
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> 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