Skip to main content

Message

Enum Message 

Source
#[non_exhaustive]
#[repr(u8)]
pub enum Message {
Show 76 variants ActiveSource { address: PhysicalAddress, }, ImageViewOn = 4, TextViewOn = 13, InactiveSource { address: PhysicalAddress, }, RequestActiveSource = 133, RoutingChange { original_address: PhysicalAddress, new_address: PhysicalAddress, }, RoutingInformation { address: PhysicalAddress, }, SetStreamPath { address: PhysicalAddress, }, Standby = 54, RecordOff = 11, RecordOn { source: RecordSource, }, RecordStatus { status: RecordStatusInfo, }, RecordTvScreen = 15, ClearAnalogueTimer { day_of_month: DayOfMonth, month_of_year: MonthOfYear, start_time: Time, duration: Duration, recording_sequence: RecordingSequence, service_id: AnalogueServiceId, }, ClearDigitalTimer { day_of_month: DayOfMonth, month_of_year: MonthOfYear, start_time: Time, duration: Duration, recording_sequence: RecordingSequence, service_id: DigitalServiceId, }, ClearExtTimer { day_of_month: DayOfMonth, month_of_year: MonthOfYear, start_time: Time, duration: Duration, recording_sequence: RecordingSequence, external_source: ExternalSource, }, SetAnalogueTimer { day_of_month: DayOfMonth, month_of_year: MonthOfYear, start_time: Time, duration: Duration, recording_sequence: RecordingSequence, service_id: AnalogueServiceId, }, SetDigitalTimer { day_of_month: DayOfMonth, month_of_year: MonthOfYear, start_time: Time, duration: Duration, recording_sequence: RecordingSequence, service_id: DigitalServiceId, }, SetExtTimer { day_of_month: DayOfMonth, month_of_year: MonthOfYear, start_time: Time, duration: Duration, recording_sequence: RecordingSequence, external_source: ExternalSource, }, SetTimerProgramTitle { title: BufferOperand, }, TimerClearedStatus { status: TimerClearedStatusData, }, TimerStatus { status: TimerStatusData, }, CecVersion { version: Version, }, GetCecVersion = 159, GivePhysicalAddr = 131, GetMenuLanguage = 145, ReportPhysicalAddr { physical_address: PhysicalAddress, device_type: PrimaryDeviceType, }, SetMenuLanguage { language: [u8; 3], }, DeckControl { mode: DeckControlMode, }, DeckStatus { info: DeckInfo, }, GiveDeckStatus { request: StatusRequest, }, Play { mode: PlayMode, }, GiveTunerDeviceStatus { request: StatusRequest, }, SelectAnalogueService { service_id: AnalogueServiceId, }, SelectDigitalService { service_id: DigitalServiceId, }, TunerDeviceStatus { info: TunerDeviceInfo, }, TunerStepDecrement = 6, TunerStepIncrement = 5, DeviceVendorId { vendor_id: VendorId, }, GiveDeviceVendorId = 140, VendorCommand { command: BufferOperand, }, VendorCommandWithId { vendor_id: VendorId, vendor_specific_data: BoundedBufferOperand<11, u8>, }, VendorRemoteButtonDown { rc_code: BufferOperand, }, VendorRemoteButtonUp = 139, SetOsdString { display_control: DisplayControl, osd_string: BoundedBufferOperand<13, u8>, }, GiveOsdName = 70, SetOsdName { name: BufferOperand, }, MenuRequest { request_type: MenuRequestType, }, MenuStatus { state: MenuState, }, UserControlPressed { ui_command: UiCommand, }, UserControlReleased = 69, GiveDevicePowerStatus = 143, ReportPowerStatus { status: PowerStatus, }, FeatureAbort { opcode: u8, abort_reason: AbortReason, }, Abort = 255, GiveAudioStatus = 113, GiveSystemAudioModeStatus = 125, ReportAudioStatus { status: AudioStatus, }, ReportShortAudioDescriptor { descriptors: BoundedBufferOperand<4, ShortAudioDescriptor>, }, RequestShortAudioDescriptor { descriptors: BoundedBufferOperand<4, AudioFormatIdAndCode>, }, SetSystemAudioMode { status: bool, }, SystemAudioModeRequest { physical_address: PhysicalAddress, }, SystemAudioModeStatus { status: bool, }, SetAudioRate { audio_rate: AudioRate, }, InitiateArc = 192, ReportArcInitiated = 193, ReportArcTerminated = 194, RequestArcInitiation = 195, RequestArcTermination = 196, TerminateArc = 197, CdcMessage { initiator: PhysicalAddress, message: Message, }, ReportFeatures { version: Version, device_types: AllDeviceTypes, rc_profile: RcProfile, device_features: DeviceFeatures, }, GiveFeatures = 165, RequestCurrentLatency { physical_address: PhysicalAddress, }, ReportCurrentLatency { physical_address: PhysicalAddress, video_latency: Delay, flags: LatencyFlags, audio_output_delay: Option<Delay>, }, SetAudioVolumeLevel { volume_level: AudioVolumeLevel, },
}

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.
§

ActiveSource

Fields

§

ImageViewOn = 4

§

TextViewOn = 13

§

InactiveSource

Fields

§

RequestActiveSource = 133

§

RoutingChange

Fields

§original_address: PhysicalAddress
§new_address: PhysicalAddress
§

RoutingInformation

Fields

§

SetStreamPath

Fields

§

Standby = 54

§

RecordOff = 11

§

RecordOn

Fields

§

RecordStatus

Fields

§

RecordTvScreen = 15

§

ClearAnalogueTimer

Fields

§day_of_month: DayOfMonth
§month_of_year: MonthOfYear
§start_time: Time
§duration: Duration
§recording_sequence: RecordingSequence
§

ClearDigitalTimer

Fields

§day_of_month: DayOfMonth
§month_of_year: MonthOfYear
§start_time: Time
§duration: Duration
§recording_sequence: RecordingSequence
§service_id: DigitalServiceId
§

ClearExtTimer

Fields

§day_of_month: DayOfMonth
§month_of_year: MonthOfYear
§start_time: Time
§duration: Duration
§recording_sequence: RecordingSequence
§external_source: ExternalSource
§

SetAnalogueTimer

Fields

§day_of_month: DayOfMonth
§month_of_year: MonthOfYear
§start_time: Time
§duration: Duration
§recording_sequence: RecordingSequence
§

SetDigitalTimer

Fields

§day_of_month: DayOfMonth
§month_of_year: MonthOfYear
§start_time: Time
§duration: Duration
§recording_sequence: RecordingSequence
§service_id: DigitalServiceId
§

SetExtTimer

Fields

§day_of_month: DayOfMonth
§month_of_year: MonthOfYear
§start_time: Time
§duration: Duration
§recording_sequence: RecordingSequence
§external_source: ExternalSource
§

SetTimerProgramTitle

Fields

§

TimerClearedStatus

§

TimerStatus

Fields

§

CecVersion

Fields

§version: Version
§

GetCecVersion = 159

§

GivePhysicalAddr = 131

§

GetMenuLanguage = 145

§

ReportPhysicalAddr

Fields

§physical_address: PhysicalAddress
§device_type: PrimaryDeviceType
§

SetMenuLanguage

Fields

§language: [u8; 3]
§

DeckControl

Fields

§

DeckStatus

Fields

§

GiveDeckStatus

Fields

§

Play

Fields

§

GiveTunerDeviceStatus

Fields

§

SelectAnalogueService

Fields

§

SelectDigitalService

Fields

§service_id: DigitalServiceId
§

TunerDeviceStatus

Fields

§

TunerStepDecrement = 6

§

TunerStepIncrement = 5

§

DeviceVendorId

Fields

§vendor_id: VendorId
§

GiveDeviceVendorId = 140

§

VendorCommand

Fields

§

VendorCommandWithId

Fields

§vendor_id: VendorId
§vendor_specific_data: BoundedBufferOperand<11, u8>
§

VendorRemoteButtonDown

Fields

§

VendorRemoteButtonUp = 139

§

SetOsdString

Fields

§display_control: DisplayControl
§osd_string: BoundedBufferOperand<13, u8>
§

GiveOsdName = 70

§

SetOsdName

Fields

§

MenuRequest

Fields

§request_type: MenuRequestType
§

MenuStatus

Fields

§

UserControlPressed

Fields

§ui_command: UiCommand
§

UserControlReleased = 69

§

GiveDevicePowerStatus = 143

§

ReportPowerStatus

Fields

§

FeatureAbort

Fields

§opcode: u8
§abort_reason: AbortReason
§

Abort = 255

§

GiveAudioStatus = 113

§

GiveSystemAudioModeStatus = 125

§

ReportAudioStatus

Fields

§

ReportShortAudioDescriptor

§

RequestShortAudioDescriptor

§

SetSystemAudioMode

Fields

§status: bool
§

SystemAudioModeRequest

Fields

§physical_address: PhysicalAddress
§

SystemAudioModeStatus

Fields

§status: bool
§

SetAudioRate

Fields

§audio_rate: AudioRate
§

InitiateArc = 192

§

ReportArcInitiated = 193

§

ReportArcTerminated = 194

§

RequestArcInitiation = 195

§

RequestArcTermination = 196

§

TerminateArc = 197

§

CdcMessage

Fields

§message: Message
§

ReportFeatures

Fields

§version: Version
§device_types: AllDeviceTypes
§rc_profile: RcProfile
§device_features: DeviceFeatures
§

GiveFeatures = 165

§

RequestCurrentLatency

Fields

§physical_address: PhysicalAddress
§

ReportCurrentLatency

Fields

§physical_address: PhysicalAddress
§video_latency: Delay
§audio_output_delay: Option<Delay>
§

SetAudioVolumeLevel

Fields

§volume_level: AudioVolumeLevel

Implementations§

Source§

impl Message

Source

pub fn try_from_bytes(bytes: &[u8]) -> Result<Message>

Source

pub fn to_bytes(&self) -> Vec<u8>

Source

pub fn len(&self) -> usize

Source

pub fn expected_len(opcode: Opcode) -> Range<usize>

Source§

impl Message

Source

pub fn opcode(&self) -> Opcode

Source

pub fn can_directly_address(&self) -> bool

Report whether or not this Message can be directly addressed to a specific logical address.

Source

pub fn can_broadcast(&self) -> bool

Report whether or not this Message can be broadcast to all logical addresses.

Source

pub fn addressing_type(&self) -> AddressingType

Get the AddressingType that reports whether this Message can be addressed directly to a specific logical address, broadcast to all logical addresses, or both.

Trait Implementations§

Source§

impl Clone for Message

Source§

fn clone(&self) -> Message

Returns a duplicate of the value. Read more
1.0.0 · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for Message

Source§

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

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

impl Hash for Message

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl PartialEq for Message

Source§

fn eq(&self, other: &Message) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Copy for Message

Source§

impl Eq for Message

Source§

impl StructuralPartialEq for Message

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> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
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 = Infallible

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

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

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.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more