Struct haproxy_api::Proxy [−][src]
pub struct Proxy<'lua> {
pub name: String,
pub uuid: String,
pub stktable: Option<StickTable<'lua>>,
// some fields omitted
}Expand description
The “Proxy” class provides a way for manipulating proxy and retrieving information like statistics.
Fields
name: Stringuuid: Stringstktable: Option<StickTable<'lua>>Implementations
impl<'lua> Proxy<'lua>[src]
impl<'lua> Proxy<'lua>[src]pub fn pause(&self) -> Result<()>[src]
pub fn pause(&self) -> Result<()>[src]Pauses the proxy. See the management socket documentation for more information.
pub fn resume(&self) -> Result<()>[src]
pub fn resume(&self) -> Result<()>[src]Resumes the proxy. See the management socket documentation for more information.
pub fn stop(&self) -> Result<()>[src]
pub fn stop(&self) -> Result<()>[src]Stops the proxy. See the management socket documentation for more information.
pub fn shut_bcksess(&self) -> Result<()>[src]
pub fn shut_bcksess(&self) -> Result<()>[src]Kills the session attached to a backup server. See the management socket documentation for more information.
pub fn get_cap(&self) -> Result<ProxyCapability>[src]
pub fn get_cap(&self) -> Result<ProxyCapability>[src]Returns a enum describing the capabilities of the proxy.
pub fn get_mode(&self) -> Result<ProxyMode>[src]
pub fn get_mode(&self) -> Result<ProxyMode>[src]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
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<'lua, T> FromLuaMulti<'lua> for T where
T: FromLua<'lua>, [src]
impl<'lua, T> FromLuaMulti<'lua> for T where
T: FromLua<'lua>, [src]pub fn from_lua_multi(
values: MultiValue<'lua>,
lua: &'lua Lua
) -> Result<T, Error>[src]
pub fn from_lua_multi(
values: MultiValue<'lua>,
lua: &'lua Lua
) -> Result<T, Error>[src]Performs the conversion. Read more
impl<T> ToOwned for T where
T: Clone, [src]
impl<T> ToOwned for T where
T: Clone, [src]type Owned = T
type Owned = TThe resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn to_owned(&self) -> T[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)[src]
pub fn clone_into(&self, target: &mut T)[src]🔬 This is a nightly-only experimental API. (toowned_clone_into)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more