process_input

Function process_input 

Source
pub fn process_input(
    buf: &mut Vec<u8>,
    data: Option<SecretString>,
) -> Result<usize>
Expand description

Opens an editor and returns the edited content.

ยงErrors

Returns an error if the temporary file cannot be created, if the editor command is empty or fails, or if reading/writing the temporary file fails.