Skip to main content

Encrypt

Trait Encrypt 

Source
pub trait Encrypt: Sized {
    type Output;
    type Error;

    // Required method
    fn encrypt(self, validator: &Pubkey) -> Result<Self::Output, Self::Error>;
}

Required Associated Types§

Required Methods§

Source

fn encrypt(self, validator: &Pubkey) -> Result<Self::Output, Self::Error>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl Encrypt for Vec<PostDelegationInstruction>

Implementors§