Skip to main content

InputSwitcherConfig

Struct InputSwitcherConfig 

Source
pub struct InputSwitcherConfig {
Show 21 fields pub fast_switch: bool, pub delayed_switch: bool, pub terminate: bool, pub reuse_port: bool, pub first_input: i64, pub primary_input: i64, pub cycle_count: i64, pub buffered_packets: i64, pub max_input_packets: i64, pub max_output_packets: i64, pub sock_buffer: i64, pub remote_server_port: i64, pub receive_timeout: i64, pub event_command: String, pub event_udp_address: String, pub event_udp_port: i64, pub event_local_address: String, pub event_ttl: i64, pub application_name: String, pub inputs: Vec<SwitcherInput>, pub output: Option<SwitcherOutput>,
}
Expand description

Typed configuration for one InputSwitcher start.

Fields§

§fast_switch: bool

Select fast switching.

§delayed_switch: bool

Delay switching until the next safe packet boundary.

§terminate: bool

Terminate when all inputs terminate.

§reuse_port: bool

Reuse the remote-control port.

§first_input: i64

Initial input index.

§primary_input: i64

Primary input index, or -1 when unset.

§cycle_count: i64

Number of input cycles.

§buffered_packets: i64

Buffered packets.

§max_input_packets: i64

Maximum packets per input operation.

§max_output_packets: i64

Maximum packets per output operation.

§sock_buffer: i64

Socket buffer size in bytes.

§remote_server_port: i64

Remote-control server port.

§receive_timeout: i64

Receive timeout in milliseconds.

§event_command: String

External switch-event command.

§event_udp_address: String

Remote event UDP address.

§event_udp_port: i64

Remote event UDP port.

§event_local_address: String

Local event UDP address.

§event_ttl: i64

Event UDP TTL.

§application_name: String

Application name passed to TSDuck’s plugin parser.

§inputs: Vec<SwitcherInput>

Typed input plugins.

§output: Option<SwitcherOutput>

Optional typed output plugin.

Trait Implementations§

Source§

impl Clone for InputSwitcherConfig

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 InputSwitcherConfig

Source§

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

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

impl Default for InputSwitcherConfig

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.