Struct haproxy_api::Server[][src]

pub struct Server<'lua> {
    pub name: String,
    pub puid: String,
    // some fields omitted
}
Expand description

The “Server” class provides a way for manipulating servers and retrieving information.

Fields

name: Stringpuid: String

Implementations

Returns true if the server is currently draining sticky connections.

Dynamically changes the maximum connections of the server.

Returns an integer representing the server maximum connections.

Dynamically changes the weight of the server. See the management socket documentation for more information about the format of the string.

Returns an integer representing the server weight.

Dynamically changes the address of the server.

Returns a string describing the address of the server.

Returns a table containing the server statistics.

Shutdowns all the sessions attached to the server.

Drains sticky sessions.

Sets maintenance mode.

Sets normal mode.

Enables health checks.

Disables health checks.

Forces health-check up.

Forces health-check nolb mode.

Forces health-check down.

Enables agent check.

Disables agent check.

Forces agent check up.

Forces agent check down.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Performs the conversion.

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. Read more

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

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.