pub struct T2TimestampPayload {
pub bw: Bandwidth,
pub seconds_since_2000: u64,
pub subseconds: u32,
pub utco: u16,
}Expand description
DVB-T2 timestamp payload (type 0x20) per ETSI TS 102 773 §5.2.7.
Layout (88 bits = 11 bytes):
- byte 0 [7:4]: rfu (4 bits) — must be 0
- byte 0 [3:0]: bw (4 bits) — Table 3
- bytes 1-5: seconds_since_2000 (40 bits)
- subseconds (27 bits): bytes 6-8 + byte 9 [7:5]
- utco (13 bits): byte 9 [4:0] + byte 10 — UTC offset in seconds
Fields§
§bw: BandwidthBandwidth (determines Tsub units).
seconds_since_2000: u64Seconds since 2000-01-01T00:00:00Z. 0 = relative timestamp. If all bits are 1 along with subseconds + utco, this is a Null timestamp.
subseconds: u32Subsecond count (27 bits).
utco: u16UTC offset in seconds (e.g. 34 for leap seconds as of 2016).
Trait Implementations§
Source§impl Clone for T2TimestampPayload
impl Clone for T2TimestampPayload
Source§fn clone(&self) -> T2TimestampPayload
fn clone(&self) -> T2TimestampPayload
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 T2TimestampPayload
impl Debug for T2TimestampPayload
Source§impl<'de> Deserialize<'de> for T2TimestampPayload
impl<'de> Deserialize<'de> for T2TimestampPayload
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for T2TimestampPayload
Source§impl<'a> Parse<'a> for T2TimestampPayload
impl<'a> Parse<'a> for T2TimestampPayload
Source§impl PartialEq for T2TimestampPayload
impl PartialEq for T2TimestampPayload
Source§fn eq(&self, other: &T2TimestampPayload) -> bool
fn eq(&self, other: &T2TimestampPayload) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for T2TimestampPayload
impl Serialize for T2TimestampPayload
Source§impl Serialize for T2TimestampPayload
impl Serialize for T2TimestampPayload
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 T2TimestampPayload
Auto Trait Implementations§
impl Freeze for T2TimestampPayload
impl RefUnwindSafe for T2TimestampPayload
impl Send for T2TimestampPayload
impl Sync for T2TimestampPayload
impl Unpin for T2TimestampPayload
impl UnsafeUnpin for T2TimestampPayload
impl UnwindSafe for T2TimestampPayload
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