Struct haproxy_api::Txn[][src]

pub struct Txn<'lua> {
    pub c: Converters<'lua>,
    pub f: Fetches<'lua>,
    // some fields omitted
}
Expand description

The txn class contain all the functions relative to the http or tcp transaction.

Fields

c: Converters<'lua>f: Fetches<'lua>

Implementations

Returns an HTTP class object.

Sends a log on the default syslog server if it is configured and on the stderr if it is allowed.

Sends a log line with the default loglevel for the proxy associated with the transaction.

Returns data stored in the current transaction (with the set_priv()) function.

Stores any data in the current HAProxy transaction. This action replaces the old stored data.

Returns data stored in the variable name.

Store variable name in an HAProxy converting the type.

Unsets the variable name.

Changes the log level of the current request. The level must be an integer between 0 and 7.

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.