Struct lepton_mux::DevNull [−][src]
Methods
impl<AllocU8: Allocator<u8>> DevNull<AllocU8>
[src]
impl<AllocU8: Allocator<u8>> DevNull<AllocU8>
Trait Implementations
impl<AllocU8: Allocator<u8>> Default for DevNull<AllocU8>
[src]
impl<AllocU8: Allocator<u8>> Default for DevNull<AllocU8>
impl<AllocU8: Allocator<u8>> StreamMuxer<AllocU8> for DevNull<AllocU8>
[src]
impl<AllocU8: Allocator<u8>> StreamMuxer<AllocU8> for DevNull<AllocU8>
fn write_buffer(
&mut self,
stream_id: StreamID,
_alloc_u8: &mut AllocU8
) -> WritableBytes
[src]
fn write_buffer(
&mut self,
stream_id: StreamID,
_alloc_u8: &mut AllocU8
) -> WritableBytes
Returns an array of n_stream
WritableByte
s. Each WritableByte is connected to the buffer of its corresponding stream. Read more
fn write(
&mut self,
_stream_id: StreamID,
data: &[u8],
_alloc_u8: &mut AllocU8
) -> usize
[src]
fn write(
&mut self,
_stream_id: StreamID,
data: &[u8],
_alloc_u8: &mut AllocU8
) -> usize
Writes data
to the specified stream.
fn can_serialize() -> bool
[src]
fn can_serialize() -> bool
fn serialize(&mut self, _output: &mut [u8]) -> usize
[src]
fn serialize(&mut self, _output: &mut [u8]) -> usize
Populate output
with content buffered by each stream in a "fair" manner.
fn flush(&mut self, _output: &mut [u8]) -> usize
[src]
fn flush(&mut self, _output: &mut [u8]) -> usize
fn wrote_eof(&self) -> bool
[src]
fn wrote_eof(&self) -> bool
fn free(&mut self, _alloc_u8: &mut AllocU8)
[src]
fn free(&mut self, _alloc_u8: &mut AllocU8)
fn n_stream(&self) -> usize
[src]
fn n_stream(&self) -> usize
impl<AllocU8: Allocator<u8>> StreamDemuxer<AllocU8> for DevNull<AllocU8>
[src]
impl<AllocU8: Allocator<u8>> StreamDemuxer<AllocU8> for DevNull<AllocU8>
fn deserialize(&mut self, data: &[u8], _alloc_u8: &mut AllocU8) -> usize
[src]
fn deserialize(&mut self, data: &[u8], _alloc_u8: &mut AllocU8) -> usize
Demultiplexes data
into streams.
fn read_buffer(&mut self, stream_id: StreamID) -> ReadableBytes
[src]
fn read_buffer(&mut self, stream_id: StreamID) -> ReadableBytes
Returns an array of n_stream
ReadableByte
s. Each ReadableByte is connected to the buffer of its corresponding stream. Read more
fn data_len(&self, _stream_id: StreamID) -> usize
[src]
fn data_len(&self, _stream_id: StreamID) -> usize
fn data(&self, _stream_id: StreamID) -> &[u8]
[src]
fn data(&self, _stream_id: StreamID) -> &[u8]
fn editable_data(
&mut self,
_stream_id: StreamID
) -> &mut AllocatedMemoryRange<u8, AllocU8>
[src]
fn editable_data(
&mut self,
_stream_id: StreamID
) -> &mut AllocatedMemoryRange<u8, AllocU8>
fn consume_data(&mut self, _stream_id: StreamID, count: usize)
[src]
fn consume_data(&mut self, _stream_id: StreamID, count: usize)
fn consumed_all_streams_until_eof(&self) -> bool
[src]
fn consumed_all_streams_until_eof(&self) -> bool
fn encountered_eof(&self) -> bool
[src]
fn encountered_eof(&self) -> bool
fn free(&mut self, _alloc_u8: &mut AllocU8)
[src]
fn free(&mut self, _alloc_u8: &mut AllocU8)
fn n_stream(&self) -> usize
[src]
fn n_stream(&self) -> usize