Struct haproxy_api::StickTable 
source · pub struct StickTable<'lua> { /* private fields */ }Expand description
The “StickTable” class can be used to access the HAProxy stick tables.
Implementations§
source§impl<'lua> StickTable<'lua>
 
impl<'lua> StickTable<'lua>
sourcepub fn lookup(&self, key: &str) -> Result<Table<'lua>>
 
pub fn lookup(&self, key: &str) -> Result<Table<'lua>>
Returns stick table entry for given key.
sourcepub fn dump(&self, filter: Option<&str>) -> Result<Table<'lua>>
 
pub fn dump(&self, filter: Option<&str>) -> Result<Table<'lua>>
Returns all entries in stick table.
An optional filter can be used to extract entries with specific data values.
Filter is a table with valid comparison operators as keys followed by data type name and value pairs.
Check out the HAProxy docs for “show table” for more details.
Trait Implementations§
source§impl<'lua> Clone for StickTable<'lua>
 
impl<'lua> Clone for StickTable<'lua>
source§fn clone(&self) -> StickTable<'lua>
 
fn clone(&self) -> StickTable<'lua>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from 
source. Read moreAuto Trait Implementations§
impl<'lua> !RefUnwindSafe for StickTable<'lua>
impl<'lua> !Send for StickTable<'lua>
impl<'lua> !Sync for StickTable<'lua>
impl<'lua> Unpin for StickTable<'lua>
impl<'lua> !UnwindSafe for StickTable<'lua>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
 
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
 
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<'lua, T> FromLuaMulti<'lua> for Twhere
    T: FromLua<'lua>,
 
impl<'lua, T> FromLuaMulti<'lua> for Twhere T: FromLua<'lua>,
source§fn from_lua_multi(values: MultiValue<'lua>, lua: &'lua Lua) -> Result<T, Error>
 
fn from_lua_multi(values: MultiValue<'lua>, lua: &'lua Lua) -> Result<T, Error>
Performs the conversion. Read more