Skip to main content

ProcessorConfig

Struct ProcessorConfig 

Source
pub struct ProcessorConfig {
Show 17 fields pub ignore_joint_termination: bool, pub buffer_size: i64, pub max_flushed_packets: i64, pub max_input_packets: i64, pub max_output_packets: i64, pub initial_input_packets: i64, pub add_input_stuffing: [i64; 2], pub add_start_stuffing: i64, pub add_stop_stuffing: i64, pub bitrate: i64, pub bitrate_adjust_interval: i64, pub receive_timeout: i64, pub log_plugin_index: bool, pub application_name: String, pub input: Option<ProcessorInput>, pub plugins: PluginChain, pub output: Option<ProcessorOutput>,
}
Expand description

Typed configuration for one TSProcessor start.

Fields§

§ignore_joint_termination: bool

Ignore joint-termination plugin options.

§buffer_size: i64

Global packet-buffer size in bytes.

§max_flushed_packets: i64

Maximum processed packets before flushing; zero selects TSDuck’s default.

§max_input_packets: i64

Maximum packets per input operation; zero selects TSDuck’s default.

§max_output_packets: i64

Maximum packets per output operation; zero is unlimited.

§initial_input_packets: i64

Packets read before processing begins; zero selects TSDuck’s default.

§add_input_stuffing: [i64; 2]

Input stuffing pair: null packets and interval.

§add_start_stuffing: i64

Null packets before the input stream.

§add_stop_stuffing: i64

Null packets after the input stream.

§bitrate: i64

Fixed input bitrate; zero leaves it unspecified.

§bitrate_adjust_interval: i64

Bitrate adjustment interval in milliseconds.

§receive_timeout: i64

Input receive timeout in milliseconds; zero selects TSDuck’s default.

§log_plugin_index: bool

Include plugin indices in log messages.

§application_name: String

Application name passed to TSDuck’s plugin parser.

§input: Option<ProcessorInput>

Optional typed input.

§plugins: PluginChain

Ordered processor plugins.

§output: Option<ProcessorOutput>

Optional typed output.

Trait Implementations§

Source§

impl Clone for ProcessorConfig

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for ProcessorConfig

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for ProcessorConfig

Source§

fn default() -> Self

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.