Struct mpeg2ts_reader::demultiplex::FilterChangeset
source · pub struct FilterChangeset<F: PacketFilter> { /* private fields */ }
Expand description
Owns a queue of FilterChange
objects representing pending updates
to the Pid handling of the Demultiplexer
.
These changes need to be queued since practically a PacketFilter
implementation cannot be
allowed to remove itself from the owning Demultiplex
instance while it is in the act of
filtering a packet.
The public interface allows items to be added to the queue, and the internal implementation of
Demultiplex
will later remove them.
Implementations§
source§impl<F: PacketFilter> FilterChangeset<F>
impl<F: PacketFilter> FilterChangeset<F>
sourcepub fn insert(&mut self, pid: Pid, filter: F)
pub fn insert(&mut self, pid: Pid, filter: F)
Queue the insertion of the given PacketFilter
for the given Pid, after the Demultiplex
instance has finished handling the current packet.
Trait Implementations§
source§impl<F: Debug + PacketFilter> Debug for FilterChangeset<F>
impl<F: Debug + PacketFilter> Debug for FilterChangeset<F>
source§impl<F: PacketFilter> Default for FilterChangeset<F>
impl<F: PacketFilter> Default for FilterChangeset<F>
source§fn default() -> FilterChangeset<F>
fn default() -> FilterChangeset<F>
Returns the “default value” for a type. Read more
source§impl<F: PacketFilter> IntoIterator for FilterChangeset<F>
impl<F: PacketFilter> IntoIterator for FilterChangeset<F>
§type Item = FilterChange<F>
type Item = FilterChange<F>
The type of the elements being iterated over.
§type IntoIter = IntoIter<FilterChange<F>>
type IntoIter = IntoIter<FilterChange<F>>
Which kind of iterator are we turning this into?
Auto Trait Implementations§
impl<F> RefUnwindSafe for FilterChangeset<F>where
F: RefUnwindSafe,
impl<F> Send for FilterChangeset<F>where
F: Send,
impl<F> Sync for FilterChangeset<F>where
F: Sync,
impl<F> Unpin for FilterChangeset<F>where
F: Unpin,
impl<F> UnwindSafe for FilterChangeset<F>where
F: 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