pub enum Message {
    StartOfMessage(MessageHeader),
    EndOfMessage,
}
Expand description

A fully-decoded SAME/EAS message

In the EAS, the “message” is actually the audio signal to be broadcast to the human listener: i.e., the “message” is the synthesized voice you hear on weather radio. The message is wrapped in audio pass-band digital data. The digital data demarcates the StartOfMessage and the EndOfMessage.

The StartOfMessage contains digital codes and timestamps which summarize the audio message to follow. Some messages are intended for either silent or audible tests. Others report actual emergencies; these either may or must interrupt normal broadcast programming.

The audio message immediately follows. The audio message may be up to two minutes long.

The EndOfMessage demarcates the end of the audio message.

Message implements Display and efficient conversion to &str.

More information on the SAME/EAS standard may be found in,

Variants

StartOfMessage(MessageHeader)

Indicates start of audio message

A StartOfMessage indicates that a SAME/EAS audio message immediately follows. The message header contains the event type, affected areas, time extents, and originator information.

For broadcast stations, the in-band audio which immediately follows the StartOfMessage may break station programming and be aired directly to listeners.

EndOfMessage

Indicates end of audio message

An EndOfMessage marks the conclusion of the SAME/EAS audio message. For broadcast stations, it is an indication that normal programming may resume.

Implementations

Convert to string representation

Count of parity errors

The number of bit errors which were corrected by the 2-of-3 parity correction algorithm. High parity error counts indicate a high bit error rate in the receiving system.

Parity errors are not tracked for the EndOfMessage variant.

Trait Implementations

Converts this type into a shared reference of the (usually inferred) input type.

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

Feeds this value into the given Hasher. Read more

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

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

Should always be Self

The inverse inclusion map: attempts to construct self from the equivalent element of its superset. Read more

Checks if self is actually part of its subset T (and can be converted to it).

Use with care! Same as self.to_subset but without any property checks. Always succeeds.

The inclusion map: converts self to the equivalent element of its superset.

The resulting type after obtaining ownership.

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

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

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.