pub struct Sat<'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; Sat::body is the raw
body whose structure depends on Sat::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 Sat::satellite_table_id; layout in docs/tables/sat.md.
Implementations§
Source§impl Sat<'_>
impl Sat<'_>
Sourcepub fn kind(&self) -> Option<SatTableId>
pub fn kind(&self) -> Option<SatTableId>
Typed view of Sat::satellite_table_id, or None if reserved (5–63).
Trait Implementations§
impl<'a> Eq for Sat<'a>
Source§impl Serialize for Sat<'_>
impl Serialize for Sat<'_>
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 Sat<'a>
Auto Trait Implementations§
impl<'a> Freeze for Sat<'a>
impl<'a> RefUnwindSafe for Sat<'a>
impl<'a> Send for Sat<'a>
impl<'a> Sync for Sat<'a>
impl<'a> Unpin for Sat<'a>
impl<'a> UnsafeUnpin for Sat<'a>
impl<'a> UnwindSafe for Sat<'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