Struct mpeg2ts_reader::demultiplex::FilterChangeset [−][src]
pub struct FilterChangeset<F: PacketFilter> { /* fields omitted */ }
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
impl<F: PacketFilter> FilterChangeset<F>[src]
pub fn insert(&mut self, pid: Pid, filter: F)[src]
Queue the insertion of the given PacketFilter for the given Pid, after the Demultiplex
instance has finished handling the current packet.
pub fn remove(&mut self, pid: Pid)[src]
Queue the removal of the existing PacketFilter for the given Pid, after the Demultiplex
instance has finished handling the current packet.
pub fn is_empty(&self) -> bool[src]
Are there any changes queued in this changeset?
Trait Implementations
impl<F: Debug + PacketFilter> Debug for FilterChangeset<F>[src]
impl<F: PacketFilter> Default for FilterChangeset<F>[src]
fn default() -> FilterChangeset<F>[src]
impl<F: PacketFilter> IntoIterator for FilterChangeset<F>[src]
type Item = FilterChange<F>
The type of the elements being iterated over.
type IntoIter = IntoIter<FilterChange<F>>
Which kind of iterator are we turning this into?
fn into_iter(self) -> IntoIter<FilterChange<F>>[src]
Auto Trait Implementations
impl<F> RefUnwindSafe for FilterChangeset<F> where
F: RefUnwindSafe,
F: RefUnwindSafe,
impl<F> Send for FilterChangeset<F> where
F: Send,
F: Send,
impl<F> Sync for FilterChangeset<F> where
F: Sync,
F: Sync,
impl<F> Unpin for FilterChangeset<F> where
F: Unpin,
F: Unpin,
impl<F> UnwindSafe for FilterChangeset<F> where
F: UnwindSafe,
F: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,