pub struct Encryptor { /* private fields */ }Implementations§
Source§impl Encryptor
impl Encryptor
pub fn new() -> Result<Self, EncryptionError>
pub fn new_with_public_key( public_key: Option<&str>, ) -> Result<Self, EncryptionError>
pub fn encrypt_command(&self, payload: Value) -> Result<Value, KittyError>
Auto Trait Implementations§
impl Freeze for Encryptor
impl RefUnwindSafe for Encryptor
impl Send for Encryptor
impl Sync for Encryptor
impl Unpin for Encryptor
impl UnwindSafe for Encryptor
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