pub trait Encodable: Sized {
    type Error: Error + Send + Sync + 'static;

    // Required methods
    fn read(reader: &mut Cursor<'_>) -> Result<Self, Self::Error>;
    fn write<E: Encoding>(&self, buf: &mut E);
}

Required Associated Types§

source

type Error: Error + Send + Sync + 'static

Required Methods§

source

fn read(reader: &mut Cursor<'_>) -> Result<Self, Self::Error>

Read from the SSH format.

source

fn write<E: Encoding>(&self, buf: &mut E)

Write to the SSH format.

Object Safety§

This trait is not object safe.

Implementors§