pub struct SatSection<'a> {
pub satellite_table_id: u8,
pub table_count: u16,
pub version_number: u8,
pub current_next_indicator: bool,
pub section_number: u8,
pub last_section_number: u8,
pub body: &'a [u8],
}Expand description
Satellite Access Table section (EN 300 468 §5.2.11.1, Table 11a).
The typed fields cover the common section header; SatSection::body is the raw
body whose structure depends on SatSection::satellite_table_id.
Fields§
§satellite_table_id: u86-bit discriminant selecting the body structure (see SatTableId).
table_count: u1610-bit sub_table discriminator (e.g. the 10 MSBs of satellite_id).
version_number: u85-bit sub_table version number.
current_next_indicator: boolWhen true, this sub_table is currently applicable.
section_number: u8Section number within the sub_table.
last_section_number: u8Highest section number of the sub_table.
body: &'a [u8]Raw body bytes — interpret per SatSection::satellite_table_id; layout in docs/tables/sat.md.
Implementations§
Source§impl SatSection<'_>
impl SatSection<'_>
Sourcepub fn kind(&self) -> Option<SatTableId>
pub fn kind(&self) -> Option<SatTableId>
Typed view of SatSection::satellite_table_id, or None if reserved (5–63).
Trait Implementations§
Source§impl<'a> Clone for SatSection<'a>
impl<'a> Clone for SatSection<'a>
Source§fn clone(&self) -> SatSection<'a>
fn clone(&self) -> SatSection<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for SatSection<'a>
impl<'a> Debug for SatSection<'a>
impl<'a> Eq for SatSection<'a>
Source§impl<'a> From<SatSection<'a>> for AnyTableSection<'a>
impl<'a> From<SatSection<'a>> for AnyTableSection<'a>
Source§fn from(t: SatSection<'a>) -> Self
fn from(t: SatSection<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a> Parse<'a> for SatSection<'a>
impl<'a> Parse<'a> for SatSection<'a>
Source§impl<'a> PartialEq for SatSection<'a>
impl<'a> PartialEq for SatSection<'a>
Source§fn eq(&self, other: &SatSection<'a>) -> bool
fn eq(&self, other: &SatSection<'a>) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl<'a> Serialize for SatSection<'a>
impl<'a> Serialize for SatSection<'a>
Source§impl Serialize for SatSection<'_>
impl Serialize for SatSection<'_>
Source§type Error = Error
type Error = Error
The error type this implementer returns (usually the same as the
corresponding
Parse impl, but need not be).Source§fn serialized_len(&self) -> usize
fn serialized_len(&self) -> usize
Number of bytes
serialize_into will write.impl<'a> StructuralPartialEq for SatSection<'a>
Source§impl<'a> Table<'a> for SatSection<'a>
impl<'a> Table<'a> for SatSection<'a>
Source§impl<'a> TableDef<'a> for SatSection<'a>
impl<'a> TableDef<'a> for SatSection<'a>
Source§impl<'a> Yokeable<'a> for SatSection<'static>
impl<'a> Yokeable<'a> for SatSection<'static>
Source§type Output = SatSection<'a>
type Output = SatSection<'a>
This type MUST be
Self with the 'static replaced with 'a, i.e. Self<'a>Source§fn transform_owned(self) -> Self::Output
fn transform_owned(self) -> Self::Output
Auto Trait Implementations§
impl<'a> Freeze for SatSection<'a>
impl<'a> RefUnwindSafe for SatSection<'a>
impl<'a> Send for SatSection<'a>
impl<'a> Sync for SatSection<'a>
impl<'a> Unpin for SatSection<'a>
impl<'a> UnsafeUnpin for SatSection<'a>
impl<'a> UnwindSafe for SatSection<'a>
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