message: age-plugin: Update README
diff: @@ -73,10 +73,10 @@ logic will work as long as it can detect the `--age-plugin=STATE_MACHINE` flag.
  ```rust
  use age_core::format::{FileKey, Stanza};
  use age_plugin::{
  - identity::{self, Callbacks, IdentityPluginV1},
  + identity::{self, IdentityPluginV1},
  print_new_identity,
  recipient::{self, RecipientPluginV1},
  - run_state_machine,
  + Callbacks, run_state_machine,
  };
  use gumdrop::Options;
  use std::collections::HashMap;
  @@ -85,17 +85,29 @@ use std::io;
  struct RecipientPlugin;
  impl RecipientPluginV1 for RecipientPlugin {
  - fn add_recipients<'a, I: Iterator<Item = &'a str>>(
  + fn add_recipient(
  &mut self,
  - recipients: I,
  - ) -> Result<(), Vec<recipient::Error>> {
  + index: usize,
  + plugin_name: &str,
  + bytes: &[u8],
  + ) -> Result<(), recipient::Error> {
  todo!()
  }
  - fn wrap_file_key(
  + fn add_identity(
  &mut self,
  - file_key: &FileKey,
  - ) -> Result<Vec<Stanza>, Vec<recipient::Error>> {
  + index: usize,
  + plugin_name: &str,
  + bytes: &[u8]
  + ) -> Result<(), recipient::Error> {
  + todo!()
  + }
  +
  + fn wrap_file_keys(
  + &mut self,
  + file_keys: Vec<FileKey>,
  + mut callbacks: impl Callbacks<recipient::Error>,
  + ) -> io::Result<Result<Vec<Vec<Stanza>>, Vec<recipient::Error>>> {
  todo!()
  }
  }
  @@ -103,17 +115,19 @@ impl RecipientPluginV1 for RecipientPlugin {
  struct IdentityPlugin;
  impl IdentityPluginV1 for IdentityPlugin {
  - fn add_identities<'a, I: Iterator<Item = &'a str>>(
  + fn add_identity(
  &mut self,
  - identities: I,
  - ) -> Result<(), Vec<identity::Error>> {
  + index: usize,
  + plugin_name: &str,
  + bytes: &[u8]
  + ) -> Result<(), identityw::Error> {
  todo!()
  }
  fn unwrap_file_keys(
  &mut self,
  files: Vec<Vec<Stanza>>,
  - mut callbacks: impl Callbacks,
  + mut callbacks: impl Callbacks<identity::Error>,
  ) -> io::Result<HashMap<usize, Result<FileKey, Vec<identity::Error>>>> {
  todo!()
  }
  