Struct lepton_mux::Mux[][src]

pub struct Mux<AllocU8: Allocator<u8>> { /* fields omitted */ }

Methods

impl<AllocU8: Allocator<u8>> Mux<AllocU8>
[src]

Pushes data from a source into the stream buffer specified by stream_id. This data may later be serialized through serialize or else consumed through data or consume.

Trait Implementations

impl<AllocU8: Allocator<u8>> Default for Mux<AllocU8>
[src]

Returns the "default value" for a type. Read more

impl<AllocU8: Allocator<u8>> StreamMuxer<AllocU8> for Mux<AllocU8>
[src]

Writes data to the specified stream.

Returns an array of n_stream WritableBytes. Each WritableByte is connected to the buffer of its corresponding stream. Read more

Populate output with content buffered by each stream in a "fair" manner.

impl<AllocU8: Allocator<u8>> StreamDemuxer<AllocU8> for Mux<AllocU8>
[src]

Demultiplexes data into streams.

Returns an array of n_stream ReadableBytes. Each ReadableByte is connected to the buffer of its corresponding stream. Read more

Auto Trait Implementations

impl<AllocU8> Send for Mux<AllocU8> where
    <AllocU8 as Allocator<u8>>::AllocatedMemory: Send

impl<AllocU8> Sync for Mux<AllocU8> where
    <AllocU8 as Allocator<u8>>::AllocatedMemory: Sync