Struct scout::config::Configurator
source · pub struct Configurator { /* private fields */ }
Expand description
Configuration constructor
Implementations§
source§impl Configurator
impl Configurator
pub fn new() -> Self
sourcepub fn from_default_file(&mut self) -> &mut Self
pub fn from_default_file(&mut self) -> &mut Self
Read configuration from default $HOME/.config/scout.toml
file
sourcepub fn from_file<'a>(&'a mut self, file_path: &str) -> &'a mut Self
pub fn from_file<'a>(&'a mut self, file_path: &str) -> &'a mut Self
Read configuration from the given path
sourcepub fn from_toml<'a>(&'a mut self, contents: &str) -> &'a mut Self
pub fn from_toml<'a>(&'a mut self, contents: &str) -> &'a mut Self
Parse toml configuration
sourcepub fn from_ptty<'a>(&'a mut self, ptty: &File) -> &'a mut Self
pub fn from_ptty<'a>(&'a mut self, ptty: &File) -> &'a mut Self
Set screen configuration size from PTTY
sourcepub fn from_args<'a>(&'a mut self, args: &Args) -> &'a mut Self
pub fn from_args<'a>(&'a mut self, args: &Args) -> &'a mut Self
Set configuration options from command line args
Trait Implementations§
source§impl Debug for Configurator
impl Debug for Configurator
source§impl Default for Configurator
impl Default for Configurator
source§fn default() -> Configurator
fn default() -> Configurator
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for Configurator
impl Send for Configurator
impl Sync for Configurator
impl Unpin for Configurator
impl UnwindSafe for Configurator
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