pub struct OsascriptDriver;Expand description
Production driver: shells out to /usr/bin/osascript -e <script>.
Things-not-running: a tell application "Things3" block in the rendered
script transparently launches Things on first call, so no explicit “is
Things running” probe is needed here. The startup schema_probe already
covers DB-side health.
Trait Implementations§
Source§impl AppleScriptDriver for OsascriptDriver
impl AppleScriptDriver for OsascriptDriver
Source§fn run<'life0, 'life1, 'async_trait>(
&'life0 self,
script: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<String, ThingsError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn run<'life0, 'life1, 'async_trait>(
&'life0 self,
script: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<String, ThingsError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Run the given AppleScript source. Returns stdout on success; returns
ThingsError::AppleScriptFailed { stderr, exit } on non-zero exit.Source§impl Debug for OsascriptDriver
impl Debug for OsascriptDriver
Source§impl Default for OsascriptDriver
impl Default for OsascriptDriver
Source§fn default() -> OsascriptDriver
fn default() -> OsascriptDriver
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for OsascriptDriver
impl RefUnwindSafe for OsascriptDriver
impl Send for OsascriptDriver
impl Sync for OsascriptDriver
impl Unpin for OsascriptDriver
impl UnsafeUnpin for OsascriptDriver
impl UnwindSafe for OsascriptDriver
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