[][src]Trait dsf_core::wire::builder::EncodeEncrypted

pub trait EncodeEncrypted {
    fn encode<B: MutableData>(
        &self,
        buf: B,
        secret_key: Option<&SecretKey>
    ) -> Result<usize, Error>; }

Internal trait to support encoding of optionally encrypted objects in a generic buffer

Required methods

fn encode<B: MutableData>(
    &self,
    buf: B,
    secret_key: Option<&SecretKey>
) -> Result<usize, Error>

Loading content...

Implementors

impl<C: AsRef<[Options]>, E: ImmutableData> EncodeEncrypted for OptionsList<C, E>[src]

fn encode<B: MutableData>(
    &self,
    buf: B,
    secret_key: Option<&SecretKey>
) -> Result<usize, Error>
[src]

Encode and optionally encrypt options

impl<T: ImmutableData> EncodeEncrypted for NewBody<T>[src]

fn encode<B: MutableData>(
    &self,
    buf: B,
    secret_key: Option<&SecretKey>
) -> Result<usize, Error>
[src]

Encode and optionally encrypt body

Loading content...