pub struct TokioEditor;Expand description
The real editor: resolve VISUAL → EDITOR from the process
environment and spawn it via tokio::process::Command with an
arg vector.
Implementations§
Source§impl TokioEditor
impl TokioEditor
Sourcepub fn resolve_command() -> Result<String, CoreError>
pub fn resolve_command() -> Result<String, CoreError>
Resolve the editor command string from the environment:
VISUAL first, then EDITOR; trimmed; an empty value counts
as unset. Absent both → the planner-locked refusal (no
platform fallback — open -t -W semantics vary; the CLI
documents setting EDITOR instead, 13-08).
Trait Implementations§
Source§impl Editor for TokioEditor
impl Editor for TokioEditor
Source§fn open<'life0, 'life1, 'async_trait>(
&'life0 self,
path: &'life1 Path,
) -> Pin<Box<dyn Future<Output = Result<(), CoreError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn open<'life0, 'life1, 'async_trait>(
&'life0 self,
path: &'life1 Path,
) -> Pin<Box<dyn Future<Output = Result<(), CoreError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Open
path in the editor and wait for the editor process to
exit (however it exits).Auto Trait Implementations§
impl Freeze for TokioEditor
impl RefUnwindSafe for TokioEditor
impl Send for TokioEditor
impl Sync for TokioEditor
impl Unpin for TokioEditor
impl UnsafeUnpin for TokioEditor
impl UnwindSafe for TokioEditor
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