Struct haproxy_api::Server

source ·
pub struct Server<'lua> {
    pub name: String,
    pub puid: String,
    /* private fields */
}
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

Returns the argument unchanged.

Performs the conversion. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
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.