[][src]Struct async_minecraft_ping::ConnectionConfig

pub struct ConnectionConfig { /* fields omitted */ }

Builder for a Minecraft ServerListPing connection.

Methods

impl ConnectionConfig[src]

pub fn build(address: String) -> Self[src]

Initiates the Minecraft server connection build process.

pub fn with_protocol_version(self, protocol_version: usize) -> Self[src]

Sets a specific protocol version for the connection to use. If not specified, the latest version will be used.

pub fn with_port(self, port: u16) -> Self[src]

Sets a specific port for the connection to use. If not specified, the default port of 25565 will be used.

pub async fn connect(self) -> Result<StatusConnection>[src]

Connects to the server and consumes the builder.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.