Trait ssh_encoding::Writer

source ·
pub trait Writer: Sized {
    // Required method
    fn write(&mut self, bytes: &[u8]) -> Result<()>;
}
Expand description

Writer trait which encodes the SSH binary format to various output encodings.

Required Methods§

source

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

Write the given bytes to the writer.

Implementations on Foreign Types§

source§

impl Writer for Vec<u8>

Available on crate feature alloc only.
source§

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

source§

impl Writer for Sha256

Available on crate feature sha2 only.
source§

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

source§

impl Writer for Sha512

Available on crate feature sha2 only.
source§

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

source§

impl Writer for Encoder<'_, '_>

Available on crate feature pem only.
source§

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

Implementors§

source§

impl Writer for Base64Writer<'_>

Available on crate feature base64 only.