pub struct OpenCommandExecutor;Expand description
Production executor: shells out to /usr/bin/open -g <url>.
The -g flag opens the URL in the background so Things doesn’t yank
focus from whatever the user is doing.
Trait Implementations§
Source§impl Debug for OpenCommandExecutor
impl Debug for OpenCommandExecutor
Source§impl Default for OpenCommandExecutor
impl Default for OpenCommandExecutor
Source§fn default() -> OpenCommandExecutor
fn default() -> OpenCommandExecutor
Returns the “default value” for a type. Read more
Source§impl Executor for OpenCommandExecutor
impl Executor for OpenCommandExecutor
Source§fn open<'life0, 'life1, 'async_trait>(
&'life0 self,
url: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<(), ThingsError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn open<'life0, 'life1, 'async_trait>(
&'life0 self,
url: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<(), ThingsError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Hand a
things:// URL to the platform. Returns once /usr/bin/open
(or the test substitute) has been invoked — does NOT wait for the
Things app to actually process it. Post-write verification is the
verify module’s job.Auto Trait Implementations§
impl Freeze for OpenCommandExecutor
impl RefUnwindSafe for OpenCommandExecutor
impl Send for OpenCommandExecutor
impl Sync for OpenCommandExecutor
impl Unpin for OpenCommandExecutor
impl UnsafeUnpin for OpenCommandExecutor
impl UnwindSafe for OpenCommandExecutor
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