ssh_encoding

Trait 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.

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 Writer for Vec<u8>

Available on crate feature alloc 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<()>

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<()>

Implementors§

Source§

impl Writer for Base64Writer<'_>

Available on crate feature base64 only.