Struct thrussh::cipher::CipherPair [] [src]

pub struct CipherPair {
    pub local_to_remote: Cipher,
    pub remote_to_local: Cipher,
}

Fields

local_to_remote: Cipher remote_to_local: Cipher

Trait Implementations

impl Debug for CipherPair
[src]

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

Formats the value using the given formatter.

impl CipherT for CipherPair
[src]

fn read<'a, R: BufRead>(&self, stream: &mut R, buffer: &'a mut SSHBuffer) -> Result<Option<&'a [u8]>, Error>

Replace the buffer's content with the next deciphered packet from stream.

fn write(&self, packet: &[u8], buffer: &mut SSHBuffer)

Extend the buffer with the encrypted packet.