Struct thrussh::CryptoBuf [] [src]

pub struct CryptoBuf {
    // some fields omitted
}

Methods

impl CryptoBuf
[src]

fn new() -> CryptoBuf

fn len(&self) -> usize

fn resize(&mut self, size: usize)

fn clear(&mut self)

fn push(&mut self, s: u8)

fn push_u32_be(&mut self, s: u32)

fn read_u32_be(&self, i: usize) -> u32

fn read<R: Read>(&mut self, n_bytes: usize, r: &mut R) -> Result<usizeError>

fn write_all_from<W: Write>(&self, offset: usize, w: &mut W) -> Result<usizeError>

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

fn as_slice<'a>(&'a self) -> &'a [u8]

fn as_mut_slice<'a>(&'a mut self) -> &'a mut [u8]

fn hexdump(&self)

impl CryptoBuf
[src]

fn extend_ssh_string(&mut self, s: &[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)

Trait Implementations

impl Debug for CryptoBuf
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Send for CryptoBuf
[src]

impl Index<usize> for CryptoBuf
[src]

type Output = u8

The returned type after indexing

fn index<'a>(&'a self, index: usize) -> &'a u8

The method for the indexing (Foo[Bar]) operation

impl Write for CryptoBuf
[src]

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

Write a buffer into this object, returning how many bytes were written. Read more

fn flush(&mut self) -> Result<()Error>

Flush this output stream, ensuring that all intermediately buffered contents reach their destination. Read more

fn write_all(&mut self, buf: &[u8]) -> Result<()Error>
1.0.0

Attempts to write an entire buffer into this write. Read more

fn write_fmt(&mut self, fmt: Arguments) -> Result<()Error>
1.0.0

Writes a formatted string into this writer, returning any error encountered. Read more

fn by_ref(&mut self) -> &mut Self
1.0.0

Creates a "by reference" adaptor for this instance of Write. Read more

impl Drop for CryptoBuf
[src]

fn drop(&mut self)

A method called when the value goes out of scope. Read more