pub struct Config {
pub prefix: String,
pub writer: Mutex<Box<dyn Write + Sync + Send>>,
}Expand description
Configuration for shell execution and error logging.
ยงExamples
initialize with default values:
use sheller::Config;
let config = Config::default();initialize with custom values:
use sheller::Config;
let config = Config {
prefix: "๐ฆ $ ".to_string(),
..Default::default()
};
Fieldsยง
ยงprefix: Stringยงwriter: Mutex<Box<dyn Write + Sync + Send>>Trait Implementationsยง
Auto Trait Implementationsยง
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