Skip to main content

CommandDef

Trait CommandDef 

Source
pub trait CommandDef<'a>: Parse<'a, Error = Error> {
    const COMMAND_TYPE: u8;
    const NAME: &'static str;
}
Expand description

Implemented by every typed splice command; drives crate::commands::AnyCommand dispatch. COMMAND_TYPE is the splice_command_type byte (§9.6.1, Table 7) this type parses.

Required Associated Constants§

Source

const COMMAND_TYPE: u8

Wire splice_command_type (§9.6.1, Table 7).

Source

const NAME: &'static str

Diagnostic name, SCREAMING_SNAKE, suffix-free: SPLICE_INSERT, TIME_SIGNAL, BANDWIDTH_RESERVATION.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<'a> CommandDef<'a> for BandwidthReservation

Source§

const COMMAND_TYPE: u8 = COMMAND_TYPE

Source§

const NAME: &'static str = "BANDWIDTH_RESERVATION"

Source§

impl<'a> CommandDef<'a> for PrivateCommand<'a>

Source§

const COMMAND_TYPE: u8 = COMMAND_TYPE

Source§

const NAME: &'static str = "PRIVATE_COMMAND"

Source§

impl<'a> CommandDef<'a> for SpliceInsert

Source§

const COMMAND_TYPE: u8 = COMMAND_TYPE

Source§

const NAME: &'static str = "SPLICE_INSERT"

Source§

impl<'a> CommandDef<'a> for SpliceNull

Source§

const COMMAND_TYPE: u8 = COMMAND_TYPE

Source§

const NAME: &'static str = "SPLICE_NULL"

Source§

impl<'a> CommandDef<'a> for SpliceSchedule

Source§

const COMMAND_TYPE: u8 = COMMAND_TYPE

Source§

const NAME: &'static str = "SPLICE_SCHEDULE"

Source§

impl<'a> CommandDef<'a> for TimeSignal

Source§

const COMMAND_TYPE: u8 = COMMAND_TYPE

Source§

const NAME: &'static str = "TIME_SIGNAL"