Struct interceptor::mock::mock_stream::MockStream[][src]

pub struct MockStream { /* fields omitted */ }
Expand description

MockStream is a helper struct for testing interceptors.

Implementations

new creates a new MockStream

write_rtcp writes a batch of rtcp packet to the stream, using the interceptor

write_rtp writes an rtp packet to the stream, using the interceptor

receive_rtcp schedules a new rtcp batch, so it can be read be the stream

receive_rtp schedules a rtp packet, so it can be read be the stream

written_rtcp returns a channel containing the rtcp batches written, modified by the interceptor

written_rtp returns a channel containing rtp packets written, modified by the interceptor

read_rtcp returns a channel containing the rtcp batched read, modified by the interceptor

read_rtp returns a channel containing the rtp packets read, modified by the interceptor

cose closes the stream and the underlying interceptor

Trait Implementations

read a batch of rtcp packets

write a batch of rtcp packets

read a rtp packet

write a rtp packet

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.