Trait ssh_packet::IntoPacket

source ·
pub trait IntoPacket {
    // Required method
    fn into_packet(self) -> Result<Packet, Error>;
}
Expand description

Allow types implementing BinWrite to be easily converted to a Packet.

Required Methods§

source

fn into_packet(self) -> Result<Packet, Error>

Convert the current type to a Packet.

Implementations on Foreign Types§

source§

impl<T: for<'a> BinWrite<Args<'a> = ()> + WriteEndian> IntoPacket for &T

Implementors§