pub struct NullPacketFilter<Ctx: DemuxContext> { /* private fields */ }
Expand description
No-op implementation of PacketFilter
.
Sometimes a Transport Stream will contain packets that you know you want to ignore. This type can be used when you have to register a filter for such packets with the demultiplexer.
Trait Implementations§
Source§impl<Ctx: DemuxContext> Default for NullPacketFilter<Ctx>
impl<Ctx: DemuxContext> Default for NullPacketFilter<Ctx>
Source§fn default() -> NullPacketFilter<Ctx>
fn default() -> NullPacketFilter<Ctx>
Returns the “default value” for a type. Read more
Source§impl<Ctx: DemuxContext> PacketFilter for NullPacketFilter<Ctx>
impl<Ctx: DemuxContext> PacketFilter for NullPacketFilter<Ctx>
Auto Trait Implementations§
impl<Ctx> Freeze for NullPacketFilter<Ctx>
impl<Ctx> RefUnwindSafe for NullPacketFilter<Ctx>where
Ctx: RefUnwindSafe,
impl<Ctx> Send for NullPacketFilter<Ctx>where
Ctx: Send,
impl<Ctx> Sync for NullPacketFilter<Ctx>where
Ctx: Sync,
impl<Ctx> Unpin for NullPacketFilter<Ctx>where
Ctx: Unpin,
impl<Ctx> UnwindSafe for NullPacketFilter<Ctx>where
Ctx: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more