pub struct ControlTimestamp {
pub fraction: u32,
pub seconds: u64,
}
Expand description
UTC time with the epoch of midnight (00:00:00) of 1970-01-01. The presentation is defined in the SCSMs.The NULL time stamp has all fields set to 0 (zero).The relation between a timestamp value, the synchronization of an internal time with an external time source (for example, UTC time), and other information related to time model are available as requirements in Clause 21. ControlTimestamp is a timestamp for future time point so it does not contain the time quality as the one contained in the normal Timestamp data type.
Fields§
§fraction: u32
Fractional of the current second when the value of time stamp has been determined. It shall be calculated as (SUM from i=0 to 31 of bi*2**-(i+1)).
seconds: u64
Second since epoch (1970-01-01T00:00:00Z)
Trait Implementations§
Source§impl Clone for ControlTimestamp
impl Clone for ControlTimestamp
Source§fn clone(&self) -> ControlTimestamp
fn clone(&self) -> ControlTimestamp
Returns a duplicate of the value. Read more
1.0.0 · 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 ControlTimestamp
impl Debug for ControlTimestamp
Source§impl Default for ControlTimestamp
impl Default for ControlTimestamp
Source§fn default() -> ControlTimestamp
fn default() -> ControlTimestamp
Returns the “default value” for a type. Read more
Source§impl Message for ControlTimestamp
impl Message for ControlTimestamp
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Encodes the message to a buffer. Read more
Source§fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Encodes the message with a length-delimiter to a buffer. Read more
Source§fn decode<B>(buf: B) -> Result<Self, DecodeError>
fn decode<B>(buf: B) -> Result<Self, DecodeError>
Decodes an instance of the message from a buffer. Read more
Source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
Decodes a length-delimited instance of the message from the buffer.
Source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
Decodes an instance of the message from a buffer, and merges it into
self
. Read moreSource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
Decodes a length-delimited instance of the message from buffer, and
merges it into
self
.Source§impl PartialEq for ControlTimestamp
impl PartialEq for ControlTimestamp
impl StructuralPartialEq for ControlTimestamp
Auto Trait Implementations§
impl Freeze for ControlTimestamp
impl RefUnwindSafe for ControlTimestamp
impl Send for ControlTimestamp
impl Sync for ControlTimestamp
impl Unpin for ControlTimestamp
impl UnwindSafe for ControlTimestamp
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