Struct haproxy_api::Fetches[][src]

pub struct Fetches<'lua>(_);

The “Fetches” class allows to call a lot of internal HAProxy sample fetches.

Implementations

impl<'lua> Fetches<'lua>[src]

pub fn get<A, R>(&self, name: &str, args: A) -> Result<R> where
    A: ToLuaMulti<'lua>,
    R: FromLua<'lua>, 
[src]

Executes an internal haproxy sample fetch.

pub fn get_str<A>(&self, name: &str, args: A) -> Result<String> where
    A: ToLuaMulti<'lua>, 
[src]

The same as get but always returns string.

Trait Implementations

impl<'lua> Clone for Fetches<'lua>[src]

impl<'lua> FromLua<'lua> for Fetches<'lua>[src]

Auto Trait Implementations

impl<'lua> !RefUnwindSafe for Fetches<'lua>

impl<'lua> !Send for Fetches<'lua>

impl<'lua> !Sync for Fetches<'lua>

impl<'lua> Unpin for Fetches<'lua>

impl<'lua> !UnwindSafe for Fetches<'lua>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<'lua, T> FromLuaMulti<'lua> for T where
    T: FromLua<'lua>, 
[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.