pub struct SerialReceiveBlock {
pub data: BlockData,
pub stale_check: StaleTracker,
/* private fields */
}Expand description
Parses incoming serial data by configuring the start / end delimiters and the number of bytes to read.
The is_valid signal will continue to emit true as long as new
data is received before the specified expiration period elapses.
The block caches data until a new message is received and parsed.
Fields§
§data: BlockData§stale_check: StaleTrackerTrait Implementations§
Source§impl Default for SerialReceiveBlock
impl Default for SerialReceiveBlock
Source§impl IsValid for SerialReceiveBlock
impl IsValid for SerialReceiveBlock
fn is_valid(&self, app_time_s: f64) -> OldBlockData
Source§impl ProcessBlock for SerialReceiveBlock
impl ProcessBlock for SerialReceiveBlock
Auto Trait Implementations§
impl Freeze for SerialReceiveBlock
impl RefUnwindSafe for SerialReceiveBlock
impl Send for SerialReceiveBlock
impl Sync for SerialReceiveBlock
impl Unpin for SerialReceiveBlock
impl UnsafeUnpin for SerialReceiveBlock
impl UnwindSafe for SerialReceiveBlock
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
Mutably borrows from an owned value. Read more
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>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§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).Source§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.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.