pub struct SatSection {
pub satellite_table_id: u8,
pub private_indicator: bool,
pub table_count: u16,
pub version_number: u8,
pub current_next_indicator: bool,
pub section_number: u8,
pub last_section_number: u8,
pub body: SatBody,
}Expand description
Satellite Access Table section (EN 300 468 §5.2.11.1, Table 11a).
The body is typed as SatBody, selected by satellite_table_id.
All body fields are owned numeric values; the section does not borrow
from the input buffer.
Fields§
§satellite_table_id: u86-bit discriminant selecting the body structure (see SatTableId).
private_indicator: boolprivate_indicator — byte 1 bit 6 (Table 11a).
table_count: u1610-bit sub_table discriminator.
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: SatBodyTyped body — interpret per satellite_table_id.
Implementations§
Source§impl SatSection
impl SatSection
Sourcepub fn kind(&self) -> Option<SatTableId>
pub fn kind(&self) -> Option<SatTableId>
Typed view of satellite_table_id, or None if reserved (5–63).
Trait Implementations§
Source§impl Clone for SatSection
impl Clone for SatSection
Source§fn clone(&self) -> SatSection
fn clone(&self) -> SatSection
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 Debug for SatSection
impl Debug for SatSection
impl Eq for SatSection
Source§impl<'a> From<SatSection> for AnyTableSection<'a>
impl<'a> From<SatSection> for AnyTableSection<'a>
Source§fn from(t: SatSection) -> Self
fn from(t: SatSection) -> Self
Converts to this type from the input type.
Source§impl<'a> Parse<'a> for SatSection
impl<'a> Parse<'a> for SatSection
Source§impl PartialEq for SatSection
impl PartialEq for SatSection
Source§fn eq(&self, other: &SatSection) -> bool
fn eq(&self, other: &SatSection) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for SatSection
impl Serialize for SatSection
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 StructuralPartialEq for SatSection
Source§impl<'a> TableDef<'a> for SatSection
impl<'a> TableDef<'a> for SatSection
Auto Trait Implementations§
impl Freeze for SatSection
impl RefUnwindSafe for SatSection
impl Send for SatSection
impl Sync for SatSection
impl Unpin for SatSection
impl UnsafeUnpin for SatSection
impl UnwindSafe for SatSection
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