#[non_exhaustive]pub enum TransportState {
Idle,
Assembling,
Message(MessageResult),
}Expand description
SAME Transport Layer Status
SAME messages may be built from one, two, or three repetitions of (hopefully) identical retransmissions. Each burst is passed to the transport layer for processing.
-
When the transport layer receives its first burst, the state becomes
Assembling. -
The modem waits for some time after the last burst is received to ensure it has the best decode possible.
-
After this deadline passes, and a sufficient number of bursts are received, a
Messageis reported. If the decode failed, thisMessagemight be an error.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Idle
The assembler has not read enough bursts for a message
Assembling
The assembler is building a message
One or more bursts are stored in the history, but the assembler needs more before it can output a message.
Message(MessageResult)
A fully-assembled message or error is ready to report
Trait Implementations§
Source§impl AsRef<str> for TransportState
impl AsRef<str> for TransportState
Source§impl Clone for TransportState
impl Clone for TransportState
Source§fn clone(&self) -> TransportState
fn clone(&self) -> TransportState
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for TransportState
impl Debug for TransportState
Source§impl Display for TransportState
impl Display for TransportState
Source§impl From<TransportState> for SameEventType
impl From<TransportState> for SameEventType
Source§fn from(inp: TransportState) -> Self
fn from(inp: TransportState) -> Self
Source§impl Hash for TransportState
impl Hash for TransportState
Source§impl PartialEq for TransportState
impl PartialEq for TransportState
impl Eq for TransportState
impl StructuralPartialEq for TransportState
Auto Trait Implementations§
impl Freeze for TransportState
impl RefUnwindSafe for TransportState
impl Send for TransportState
impl Sync for TransportState
impl Unpin for TransportState
impl UnwindSafe for TransportState
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.