#[non_exhaustive]pub enum HostControlEvent {
Tune {
network_id: u16,
original_network_id: u16,
transport_stream_id: u16,
service_id: u16,
},
Replace {
replacement_ref: u8,
replaced_pid: u16,
replacement_pid: u16,
},
ClearReplace {
replacement_ref: u8,
},
AskRelease,
}Expand description
A host_control request the CAM makes of the host (ETSI EN 50221 §8.5.1,
Tables 27-30). The runtime surfaces the decoded request; the host performs
the retune / PID replacement itself (out of band) — there is no re-tune
logic in the stack.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Tune
tune() (Table 27): retune to the identified service.
Fields
Replace
replace() (Table 28): temporarily replace one component PID with
another from the same multiplex.
Fields
ClearReplace
clear_replace() (Table 29): undo all Replace operations sharing this
replacement_ref.
AskRelease
ask_release() (Table 30): the CAM asks the host to release any
replacements it holds (header-only request).
Trait Implementations§
Source§impl Clone for HostControlEvent
impl Clone for HostControlEvent
Source§fn clone(&self) -> HostControlEvent
fn clone(&self) -> HostControlEvent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for HostControlEvent
Source§impl Debug for HostControlEvent
impl Debug for HostControlEvent
impl Eq for HostControlEvent
Source§impl PartialEq for HostControlEvent
impl PartialEq for HostControlEvent
impl StructuralPartialEq for HostControlEvent
Auto Trait Implementations§
impl Freeze for HostControlEvent
impl RefUnwindSafe for HostControlEvent
impl Send for HostControlEvent
impl Sync for HostControlEvent
impl Unpin for HostControlEvent
impl UnsafeUnpin for HostControlEvent
impl UnwindSafe for HostControlEvent
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