pub struct TeeManager { /* private fields */ }Expand description
Manages saving and retrieving uncompressed command outputs.
Implementations§
Source§impl TeeManager
impl TeeManager
Sourcepub fn new(mode: TeeMode, dir: PathBuf) -> Self
pub fn new(mode: TeeMode, dir: PathBuf) -> Self
Create a new TeeManager.
mode— when to save (Always,Failures,Never).dir— directory for saved files (created on first write).
Sourcepub fn with_default_dir(mode: TeeMode) -> Self
pub fn with_default_dir(mode: TeeMode) -> Self
Create a TeeManager with the default directory (~/.sqz/tee/).
Auto Trait Implementations§
impl Freeze for TeeManager
impl RefUnwindSafe for TeeManager
impl Send for TeeManager
impl Sync for TeeManager
impl Unpin for TeeManager
impl UnsafeUnpin for TeeManager
impl UnwindSafe for TeeManager
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