[][src]Function feroxbuster::reporter::safe_file_write

pub fn safe_file_write<T>(
    value: &T,
    locked_file: Arc<RwLock<BufWriter<File>>>,
    convert_to_json: bool
) where
    T: FeroxSerialize

Given a string and a reference to a locked buffered file, write the contents and flush the buffer to disk.