Struct rcon::Connection[][src]

pub struct Connection<T> { /* fields omitted */ }

Implementations

This is supported on crate feature rt-async-std only.

Connect to an rcon server using the async-std runtime.

By default this enables Minecraft quirks. If you need to customize this behaviour, use a Builder.

This is supported on crate feature rt-tokio only.

Connect to an rcon server using the Tokio runtime.

By default this enables Minecraft quirks. If you need to customize this behaviour, use a Builder.

Create a connectiion builder. Allows configuring the rcon connection.

This is supported on crate features rt-tokio or rt-async-std only.

Perform a handshake on an existing connection to an rcon server.

This is a lower-level method mostly useful when integrating this crate with another runtime, or running rcon over a transport other than TCP. You generally will want to use one of the higher-level connect methods.

By default this enables Minecraft quirks. If you need to customize this behaviour, use a Builder.

This method requires one of the runtime features to be activated so that Minecraft quirks mode is able to asynchronously sleep. If you want to provide a custom sleep function, see Builder::sleep_fn.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.