pub enum FrameOut {
    NoCarrier,
    Searching,
    Reading,
    Ready(Result<Message, MessageDecodeErr>),
}
Expand description

SAME/EAS Receiver Status

The SAME receiver decodes data in three basic steps:

  1. Synchronization: the receiver estimates the bit and byte synchronization of the incoming signal.

  2. Burst decoding: SAME transmissions are repeated three times. Each “burst” is decoded individually.

  3. Message framing: three bursts are assembled into a single message, which receives some basic validity checks before being emitted to the client.

This enum reports changes in the framing state to the caller. Each state change is emitted individually.

Variants

NoCarrier

No signal detected

Searching

Searching for burst prefix

The framer has synchronized to the bit/byte boundaries and is searching for a message prefix like “ZCZC.”

Reading

Now reading a burst

A SAME burst has been detected and is now being decoded.

Ready(Result<Message, MessageDecodeErr>)

A message has been completely read

The current burst has ended, and the framer attempted to frame a complete message. It succeeded if the value is Ok.

The result contains either a fully-decoded Message that is ready for presentation to the user or an error decoding the same. Errors indicate only that decoding has failed for the moment, and future decodes may yield a useful message.

Implementations

True if the Framer wants data

Returns true if the framer is either searching for a burst prefix or reading burst data. When this value is true, the framer wants data. When this value is false, the framer needs to be restarted before it will do anything.

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 !=.

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.