Struct interceptor::noop::NoOp[][src]

pub struct NoOp;
Expand description

NoOp is an Interceptor that does not modify any packets. It can embedded in other interceptors, so it’s possible to implement only a subset of the methods.

Trait Implementations

bind_rtcp_reader lets you modify any incoming RTCP packets. It is called once per sender/receiver, however this might change in the future. The returned method will be called once per packet batch.

bind_rtcp_writer lets you modify any outgoing RTCP packets. It is called once per PeerConnection. The returned method will be called once per packet batch.

bind_local_stream lets you modify any outgoing RTP packets. It is called once for per LocalStream. The returned method will be called once per rtp packet.

unbind_local_stream is called when the Stream is removed. It can be used to clean up any data related to that track.

bind_remote_stream lets you modify any incoming RTP packets. It is called once for per RemoteStream. The returned method will be called once per rtp packet.

unbind_remote_stream is called when the Stream is removed. It can be used to clean up any data related to that track.

close closes the Interceptor, cleaning up any data if necessary.

read a batch of rtcp packets

read 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.