Struct intelli_shell::process::SaveCommandProcess
source · pub struct SaveCommandProcess<'s> { /* private fields */ }
Expand description
Process to save a new Command
If both command and description are provided upon initialization, this process will show no UI. If the description is missing, it will ask for it.
Implementations§
source§impl<'s> SaveCommandProcess<'s>
impl<'s> SaveCommandProcess<'s>
pub fn new( storage: &'s SqliteStorage, command: String, description: Option<String>, ctx: ExecutionContext ) -> Self
Trait Implementations§
source§impl<'s> Process for SaveCommandProcess<'s>
impl<'s> Process for SaveCommandProcess<'s>
source§fn min_height(&self) -> usize
fn min_height(&self) -> usize
Minimum height needed to render the process
source§fn render<B: Backend>(&mut self, frame: &mut Frame<'_, B>, area: Rect)
fn render<B: Backend>(&mut self, frame: &mut Frame<'_, B>, area: Rect)
Render
self
in the given area from the framesource§fn process_raw_event(&mut self, event: Event) -> Result<Option<ProcessOutput>>
fn process_raw_event(&mut self, event: Event) -> Result<Option<ProcessOutput>>
Auto Trait Implementations§
impl<'s> RefUnwindSafe for SaveCommandProcess<'s>
impl<'s> Send for SaveCommandProcess<'s>
impl<'s> Sync for SaveCommandProcess<'s>
impl<'s> Unpin for SaveCommandProcess<'s>
impl<'s> UnwindSafe for SaveCommandProcess<'s>
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