pub struct PageHeader {Show 14 fields
pub page: u8,
pub s1: u8,
pub s2: u8,
pub s3: u8,
pub s4: u8,
pub erase_page: bool,
pub newsflash: bool,
pub subtitle: bool,
pub suppress_header: bool,
pub update_indicator: bool,
pub interrupted_sequence: bool,
pub inhibit_display: bool,
pub magazine_serial: bool,
pub national_option: NationalOption,
}Available on crate feature
teletext only.Expand description
A decoded page header packet (Y = 0, ETSI EN 300 706 §9.3.1): page
address, sub-code, and all eleven control bits (Table 2).
Fields§
§page: u8Page number, Pt << 4 | Pu (§9.3.1.1; both nibbles 0x0-0xF).
s1: u8Page sub-code element S1 (§9.3.1.2, byte 8; 0x0-0xF).
s2: u8Page sub-code element S2 (byte 9 bits 2/4/6; 0x0-0x7).
s3: u8Page sub-code element S3 (byte 10; 0x0-0xF).
s4: u8Page sub-code element S4 (byte 11 bits 2/4; 0x0-0x3).
erase_page: boolC4 Erase Page.
newsflash: boolC5 Newsflash.
subtitle: boolC6 Subtitle.
suppress_header: boolC7 Suppress Header (row 0 not displayed).
update_indicator: boolC8 Update Indicator.
interrupted_sequence: boolC9 Interrupted Sequence.
inhibit_display: boolC10 Inhibit Display (rows 1-24 not displayed).
magazine_serial: boolC11 Magazine Serial (true = serial mode, false = parallel mode).
national_option: NationalOptionC12/C13/C14 National Option Character Subset.
Implementations§
Source§impl PageHeader
impl PageHeader
Trait Implementations§
Source§impl Clone for PageHeader
impl Clone for PageHeader
Source§fn clone(&self) -> PageHeader
fn clone(&self) -> PageHeader
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 moreimpl Copy for PageHeader
Source§impl Debug for PageHeader
impl Debug for PageHeader
impl Eq for PageHeader
Source§impl PartialEq for PageHeader
impl PartialEq for PageHeader
impl StructuralPartialEq for PageHeader
Auto Trait Implementations§
impl Freeze for PageHeader
impl RefUnwindSafe for PageHeader
impl Send for PageHeader
impl Sync for PageHeader
impl Unpin for PageHeader
impl UnsafeUnpin for PageHeader
impl UnwindSafe for PageHeader
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