Struct haproxy_api::Proxy
source · [−]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: String
uuid: String
stktable: Option<StickTable<'lua>>
Implementations
sourceimpl<'lua> Proxy<'lua>
impl<'lua> Proxy<'lua>
sourcepub fn pause(&self) -> Result<()>
pub fn pause(&self) -> Result<()>
Pauses the proxy. See the management socket documentation for more information.
sourcepub fn resume(&self) -> Result<()>
pub fn resume(&self) -> Result<()>
Resumes the proxy. See the management socket documentation for more information.
sourcepub fn stop(&self) -> Result<()>
pub fn stop(&self) -> Result<()>
Stops the proxy. See the management socket documentation for more information.
sourcepub fn shut_bcksess(&self) -> Result<()>
pub fn shut_bcksess(&self) -> Result<()>
Kills the session attached to a backup server. See the management socket documentation for more information.
sourcepub fn get_cap(&self) -> Result<ProxyCapability>
pub fn get_cap(&self) -> Result<ProxyCapability>
Returns a enum describing the capabilities of the proxy.
sourcepub fn get_mode(&self) -> Result<ProxyMode>
pub fn get_mode(&self) -> Result<ProxyMode>
Returns a enum describing the mode of the current proxy.
Trait Implementations
Auto Trait Implementations
impl<'lua> !RefUnwindSafe for Proxy<'lua>
impl<'lua> !Send for Proxy<'lua>
impl<'lua> !Sync for Proxy<'lua>
impl<'lua> Unpin for Proxy<'lua>
impl<'lua> !UnwindSafe for Proxy<'lua>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<'lua, T> FromLuaMulti<'lua> for T where
T: FromLua<'lua>,
impl<'lua, T> FromLuaMulti<'lua> for T where
T: FromLua<'lua>,
sourcefn 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