Struct kx::Config [−][src]
pub struct Config<'a> { /* fields omitted */ }
Implementations
impl<'a> Config<'a>
[src]
impl<'a> Config<'a>
[src]pub fn load(contents: Vec<&'a str>) -> Config<'_>
[src]
pub fn get_config(&self) -> String
[src]
pub fn list_contexts(&self) -> String
[src]
pub fn check_context(&self, context: &str) -> bool
[src]
pub fn get_current_context(&self) -> Result<&str, &'static str>
[src]
pub fn set_current_context(
&'a self,
new_context: &'a str
) -> Result<(), &'static str>
[src]
&'a self,
new_context: &'a str
) -> Result<(), &'static str>