pub struct DefaultSystem;Expand description
A default implementation for system interactions
Trait Implementations§
Source§impl Clone for DefaultSystem
impl Clone for DefaultSystem
Source§fn clone(&self) -> DefaultSystem
fn clone(&self) -> DefaultSystem
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DefaultSystem
impl Debug for DefaultSystem
Source§impl System for DefaultSystem
impl System for DefaultSystem
Source§fn read_clipboard(&self) -> Result<String>
fn read_clipboard(&self) -> Result<String>
Read the current contents of the clipboard
Source§fn run_command_blocking<I, S>(
&self,
cmd: &str,
args: I,
cwd: &Path,
bufid: usize,
) -> Result<String>
fn run_command_blocking<I, S>( &self, cmd: &str, args: I, cwd: &Path, bufid: usize, ) -> Result<String>
Run an external command and collect its output.
impl Copy for DefaultSystem
Auto Trait Implementations§
impl Freeze for DefaultSystem
impl RefUnwindSafe for DefaultSystem
impl Send for DefaultSystem
impl Sync for DefaultSystem
impl Unpin for DefaultSystem
impl UnwindSafe for DefaultSystem
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