pub struct Config { /* private fields */ }
Implementations§
Source§impl Config
impl Config
pub fn new() -> Result<Self>
pub fn global_path() -> &'static Path
pub fn local_path() -> &'static Path
pub fn path(&self, location: Option<Location>) -> &Path
pub fn root(&self, location: Option<Location>) -> &Path
pub fn cli(&self, location: Option<Location>) -> bool
pub fn host(&self, location: Option<Location>) -> &str
pub fn ssh_user(&self, location: Option<Location>) -> &str
pub fn scheme(&self, location: Option<Location>) -> Scheme
pub fn shell(&self, location: Option<Location>) -> Vec<&str>
pub fn set_root(&mut self, raw: &str, path: PathBuf, location: Option<Location>)
pub fn set_cli(&mut self, value: bool, location: Option<Location>)
pub fn set_host(&mut self, host: &str, location: Option<Location>)
pub fn set_ssh(&mut self, ssh: &str, location: Option<Location>)
pub fn set_scheme(&mut self, scheme: Scheme, location: Option<Location>)
pub fn set_shell(&mut self, shell: &str, location: Option<Location>)
pub fn add_include_tag(&mut self, tag: &str, location: Option<Location>) -> bool
pub fn remove_include_tag( &mut self, tag: &str, location: Option<Location>, ) -> bool
pub fn add_exclude_tag(&mut self, tag: &str, location: Option<Location>) -> bool
pub fn remove_exclude_tag( &mut self, tag: &str, location: Option<Location>, ) -> bool
pub fn write(&self, location: Option<Location>) -> Result<()>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
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