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:
-
Synchronization: the receiver estimates the bit and byte synchronization of the incoming signal.
-
Burst decoding: SAME transmissions are repeated three times. Each “burst” is decoded individually.
-
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
Trait Implementations
impl Eq for FrameOut
impl StructuralEq for FrameOut
impl StructuralPartialEq for FrameOut
Auto Trait Implementations
impl RefUnwindSafe for FrameOut
impl Send for FrameOut
impl Sync for FrameOut
impl Unpin for FrameOut
impl UnwindSafe for FrameOut
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct self from the equivalent element of its
superset. Read more
fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if self is actually part of its subset T (and can be converted to it).
fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as self.to_subset but without any property checks. Always succeeds.
fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts self to the equivalent element of its superset.