pub struct RecipientPlugin { /* private fields */ }Implementations§
Source§impl RecipientPlugin
impl RecipientPlugin
pub fn new( plugin_name: &str, parse_round: fn(&RecipientInfo, &str) -> u64, ) -> Self
pub fn plugin_name(&self) -> String
pub fn info(&self) -> Option<RecipientInfo>
pub fn parse_round(&self, round: &str) -> u64
Trait Implementations§
Source§impl RecipientPluginV1 for RecipientPlugin
impl RecipientPluginV1 for RecipientPlugin
Source§fn add_recipient(
&mut self,
index: usize,
plugin_name: &str,
bytes: &[u8],
) -> Result<(), Error>
fn add_recipient( &mut self, index: usize, plugin_name: &str, bytes: &[u8], ) -> Result<(), Error>
Stores a recipient that the user would like to encrypt age files to. Read more
Source§fn add_identity(
&mut self,
_index: usize,
_plugin_name: &str,
_bytes: &[u8],
) -> Result<(), Error>
fn add_identity( &mut self, _index: usize, _plugin_name: &str, _bytes: &[u8], ) -> Result<(), Error>
Stores an identity that the user would like to encrypt age files to. Read more
Auto Trait Implementations§
impl Freeze for RecipientPlugin
impl RefUnwindSafe for RecipientPlugin
impl Send for RecipientPlugin
impl Sync for RecipientPlugin
impl Unpin for RecipientPlugin
impl UnsafeUnpin for RecipientPlugin
impl UnwindSafe for RecipientPlugin
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more