Trait sop::Save

source ·
pub trait Save {
    // Required method
    fn to_writer(
        &self,
        armored: bool,
        sink: &mut (dyn Write + Send + Sync)
    ) -> Result<()>;

    // Provided method
    fn to_vec(&self, armored: bool) -> Result<Vec<u8>> { ... }
}
Expand description

Saves objects like certs and keys.

Required Methods§

source

fn to_writer( &self, armored: bool, sink: &mut (dyn Write + Send + Sync) ) -> Result<()>

Saves objects like certs and keys, writing them to the given writer.

Provided Methods§

source

fn to_vec(&self, armored: bool) -> Result<Vec<u8>>

Saves objects like certs and keys, writing them to a vector.

Implementors§