pub struct Proxy<'lua> {
    pub name: String,
    pub uuid: String,
    pub stktable: Option<StickTable<'lua>>,
    /* private fields */
}
Expand description

The “Proxy” class provides a way for manipulating proxy and retrieving information like statistics.

Fields

name: Stringuuid: Stringstktable: Option<StickTable<'lua>>

Implementations

Pauses the proxy. See the management socket documentation for more information.

Resumes the proxy. See the management socket documentation for more information.

Stops the proxy. See the management socket documentation for more information.

Kills the session attached to a backup server. See the management socket documentation for more information.

Returns a enum describing the capabilities of the proxy.

Returns a enum describing the mode of the current proxy.

Returns a table containing the proxy statistics. The statistics returned are not the same if the proxy is frontend or a backend.

Returns a map with the attached servers. The map is indexed by server name.

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.