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

pub trait Encoding {
    fn extend_ssh_string(&mut self, s: &[u8]);
fn extend_ssh_string_blank(&mut self, s: usize) -> &mut [u8]

Notable traits for &'_ mut [u8]

impl<'_> Write for &'_ mut [u8]impl<'_> Read for &'_ [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); }
Expand description

Encode in the SSH format.

Required methods

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

Push an SSH-encoded string to self.

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

Notable traits for &'_ mut [u8]

impl<'_> Write for &'_ mut [u8]impl<'_> Read for &'_ [u8]
[src]

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

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

Push an SSH-encoded multiple-precision integer.

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

Push an SSH-encoded list.

fn write_empty_list(&mut self)[src]

Push an SSH-encoded empty list.

Implementations on Foreign Types

impl Encoding for Vec<u8>[src]

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

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

Notable traits for &'_ mut [u8]

impl<'_> Write for &'_ mut [u8]impl<'_> Read for &'_ [u8]
[src]

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

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

fn write_empty_list(&mut self)[src]

impl Encoding for CryptoVec[src]

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

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

Notable traits for &'_ mut [u8]

impl<'_> Write for &'_ mut [u8]impl<'_> Read for &'_ [u8]
[src]

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

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

fn write_empty_list(&mut self)[src]

Implementors