[−][src]Struct async_minecraft_ping::ConnectionConfig
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
impl RefUnwindSafe for ConnectionConfig
impl Send for ConnectionConfig
impl Sync for ConnectionConfig
impl Unpin for ConnectionConfig
impl UnwindSafe for ConnectionConfig
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,