pub struct RecordingExecutor { /* private fields */ }Expand description
Test executor: records every URL it’s asked to open without spawning
anything. Use urls() to inspect what was captured.
Implementations§
Trait Implementations§
Source§impl Debug for RecordingExecutor
impl Debug for RecordingExecutor
Source§impl Default for RecordingExecutor
impl Default for RecordingExecutor
Source§fn default() -> RecordingExecutor
fn default() -> RecordingExecutor
Returns the “default value” for a type. Read more
Source§impl Executor for RecordingExecutor
impl Executor for RecordingExecutor
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 RecordingExecutor
impl RefUnwindSafe for RecordingExecutor
impl Send for RecordingExecutor
impl Sync for RecordingExecutor
impl Unpin for RecordingExecutor
impl UnsafeUnpin for RecordingExecutor
impl UnwindSafe for RecordingExecutor
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