openssh_sftp_client_lowlevel

Trait ToBuffer

Source
pub trait ToBuffer {
    // Required method
    fn get_buffer(&mut self) -> Buffer<'_>;
}
Expand description

Any type that can act as a buffer.

Required Methods§

Source

fn get_buffer(&mut self) -> Buffer<'_>

Returned the buffer.

Implementations on Foreign Types§

Source§

impl ToBuffer for Box<[u8]>

Source§

fn get_buffer(&mut self) -> Buffer<'_>

Source§

impl ToBuffer for Vec<u8>

Source§

fn get_buffer(&mut self) -> Buffer<'_>

Source§

impl ToBuffer for BytesMut

Source§

fn get_buffer(&mut self) -> Buffer<'_>

Source§

impl<const LEN: usize> ToBuffer for [u8; LEN]

Source§

fn get_buffer(&mut self) -> Buffer<'_>

Implementors§