pub struct BedrockProtocol;Expand description
Bedrock Edition ping over UDP (RakNet Unconnected Ping/Pong).
Unit struct — zero-size, Copy, no heap allocation.
Trait Implementations§
Source§impl Clone for BedrockProtocol
impl Clone for BedrockProtocol
Source§fn clone(&self) -> BedrockProtocol
fn clone(&self) -> BedrockProtocol
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 BedrockProtocol
Source§impl Debug for BedrockProtocol
impl Debug for BedrockProtocol
Source§impl Default for BedrockProtocol
impl Default for BedrockProtocol
Source§fn default() -> BedrockProtocol
fn default() -> BedrockProtocol
Returns the “default value” for a type. Read more
Source§impl PingProtocol for BedrockProtocol
impl PingProtocol for BedrockProtocol
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 BedrockProtocol
impl RefUnwindSafe for BedrockProtocol
impl Send for BedrockProtocol
impl Sync for BedrockProtocol
impl Unpin for BedrockProtocol
impl UnsafeUnpin for BedrockProtocol
impl UnwindSafe for BedrockProtocol
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