der

Trait Writer

Source
pub trait Writer {
    // Required method
    fn write(&mut self, slice: &[u8]) -> Result<()>;

    // Provided method
    fn write_byte(&mut self, byte: u8) -> Result<()> { ... }
}
Expand description

Writer trait which outputs encoded DER.

Required Methods§

Source

fn write(&mut self, slice: &[u8]) -> Result<()>

Write the given DER-encoded bytes as output.

Provided Methods§

Source

fn write_byte(&mut self, byte: u8) -> Result<()>

Write a single byte.

Implementors§

Source§

impl Writer for PemWriter<'_>

Source§

impl<'a> Writer for SliceWriter<'a>