pub struct SatusDaemon { /* private fields */ }
Expand description
The daemon that gets git status
Idealy have one long running Daemon that is long running, so gitstatusd can take advantage of incremental stuff
Implementations§
Source§impl SatusDaemon
impl SatusDaemon
Sourcepub fn new<C: AsRef<OsStr> + Default, P: AsRef<Path>>(
bin_path: C,
run_dir: P,
) -> Result<SatusDaemon>
pub fn new<C: AsRef<OsStr> + Default, P: AsRef<Path>>( bin_path: C, run_dir: P, ) -> Result<SatusDaemon>
Create a new status demon.
bin_path
: The path to thegitstatusd
binary.run_dir
: The directory to run the binary in.
Sourcepub fn request(&mut self, r: StatusRequest) -> Result<GitStatus>
pub fn request(&mut self, r: StatusRequest) -> Result<GitStatus>
Get the git status
Auto Trait Implementations§
impl Freeze for SatusDaemon
impl RefUnwindSafe for SatusDaemon
impl Send for SatusDaemon
impl Sync for SatusDaemon
impl Unpin for SatusDaemon
impl UnwindSafe for SatusDaemon
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