Skip to main content

Encryptable

Trait Encryptable 

Source
pub trait Encryptable: Sized {
    type Output;

    // Required method
    fn with_encryption(self, encrypt: bool) -> Self::Output;

    // Provided methods
    fn encrypted(self) -> Self::Output { ... }
    fn cleartext(self) -> Self::Output { ... }
}

Required Associated Types§

Required Methods§

Source

fn with_encryption(self, encrypt: bool) -> Self::Output

Provided Methods§

Source

fn encrypted(self) -> Self::Output

Source

fn cleartext(self) -> Self::Output

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 Encryptable for AccountMeta

Source§

impl Encryptable for Instruction

Instruction is never encrypted and only its parts are encrypted; and this Encryptable implementation is a shorthand for calling encrypted() and encrypted_from(0) on all its parts.

Source§

impl Encryptable for Pubkey

Implementors§