wlan_common::buffer_reader

Trait IntoBufferReader

Source
pub trait IntoBufferReader<B> {
    // Required method
    fn into_buffer_reader(self) -> BufferReader<B>;
}
Expand description

Types that can be converted into a BufferReader over a ByteSlice.

Both BufferReader and ByteSlice types implement this trait and it can be used to accept both byte slices and readers.

Required Methods§

Implementors§

Source§

impl<B: SplitByteSlice> IntoBufferReader<B> for BufferReader<B>

Source§

impl<B: SplitByteSlice> IntoBufferReader<B> for B