[][src]Trait thrussh_keys::encoding::Encoding

pub trait Encoding {
    fn extend_ssh_string(&mut self, s: &[u8]);
fn extend_ssh_string_blank(&mut self, s: usize) -> &mut [u8];
fn extend_ssh_mpint(&mut self, s: &[u8]);
fn extend_list<A: Bytes, I: Iterator<Item = A>>(&mut self, list: I);
fn write_empty_list(&mut self); }

Encode in the SSH format.

Required methods

fn extend_ssh_string(&mut self, s: &[u8])

Push an SSH-encoded string to self.

fn extend_ssh_string_blank(&mut self, s: usize) -> &mut [u8]

Push an SSH-encoded blank string of length s to self.

fn extend_ssh_mpint(&mut self, s: &[u8])

Push an SSH-encoded multiple-precision integer.

fn extend_list<A: Bytes, I: Iterator<Item = A>>(&mut self, list: I)

Push an SSH-encoded list.

fn write_empty_list(&mut self)

Push an SSH-encoded empty list.

Loading content...

Implementations on Foreign Types

impl Encoding for Vec<u8>[src]

impl Encoding for CryptoVec[src]

Loading content...

Implementors

Loading content...