pub struct NetworkChange {
pub network_change_id: u8,
pub network_change_version: u8,
pub start_time_of_change: u64,
pub change_duration: u32,
pub receiver_category: u8,
pub change_type: ChangeType,
pub message_id: u8,
pub invariant_ts: Option<InvariantTs>,
}Expand description
A change entry in the network_change_notify inner loop.
Fields§
§network_change_id: u8network_change_id(8).
network_change_version: u8network_change_version(8).
start_time_of_change: u64start_time_of_change(40) — raw 40-bit value (MJD date + UTC BCD time), big-endian.
change_duration: u32change_duration(24) — raw 24-bit BCD value, big-endian.
receiver_category: u8receiver_category(3).
change_type: ChangeTypechange_type(4) — ChangeType.
message_id: u8message_id(8).
invariant_ts: Option<InvariantTs>invariant_ts (tsid, onid), present iff invariant_ts_present==1.
Implementations§
Source§impl NetworkChange
impl NetworkChange
Sourcepub fn start_time_of_change_utc(&self) -> Option<DateTime<Utc>>
Available on crate feature chrono only.
pub fn start_time_of_change_utc(&self) -> Option<DateTime<Utc>>
chrono only.Decode start_time_of_change (40-bit MJD+BCD UTC) to a
chrono::DateTime<chrono::Utc>. None if the date/time fields
are out of range. Reuses the same helper as EIT/TOT/TDT.
Sourcepub fn change_duration_secs(&self) -> Option<u32>
Available on crate feature chrono only.
pub fn change_duration_secs(&self) -> Option<u32>
chrono only.Decode change_duration (24-bit BCD HHMMSS) to seconds.
None if the BCD nibbles are out of range.
Trait Implementations§
Source§impl Clone for NetworkChange
impl Clone for NetworkChange
Source§fn clone(&self) -> NetworkChange
fn clone(&self) -> NetworkChange
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 NetworkChange
impl Debug for NetworkChange
impl Eq for NetworkChange
Source§impl PartialEq for NetworkChange
impl PartialEq for NetworkChange
Source§fn eq(&self, other: &NetworkChange) -> bool
fn eq(&self, other: &NetworkChange) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for NetworkChange
impl Serialize for NetworkChange
impl StructuralPartialEq for NetworkChange
Auto Trait Implementations§
impl Freeze for NetworkChange
impl RefUnwindSafe for NetworkChange
impl Send for NetworkChange
impl Sync for NetworkChange
impl Unpin for NetworkChange
impl UnsafeUnpin for NetworkChange
impl UnwindSafe for NetworkChange
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