pub struct Header {
pub version: u16,
pub type_name: TypeName,
pub device_name: DeviceName,
pub timestamp: Timestamp,
pub body_size: u64,
pub crc: u64,
}
Expand description
OpenIGTLink message header (58 bytes fixed size)
§Header Structure (all numerical values in big-endian)
- Version: u16 (2 bytes)
- Type:
char[12]
(12 bytes, null-padded) - Device Name:
char[20]
(20 bytes, null-padded) - Timestamp: u64 (8 bytes) - high 32 bits: seconds, low 32 bits: fraction
- Body Size: u64 (8 bytes)
- CRC: u64 (8 bytes)
Fields§
§version: u16
Protocol version number (2 for version 2 and 3)
type_name: TypeName
Message type name
device_name: DeviceName
Unique device name
timestamp: Timestamp
High-precision timestamp (nanosecond resolution)
body_size: u64
Size of the body in bytes
crc: u64
64-bit CRC for body data
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Header
impl RefUnwindSafe for Header
impl Send for Header
impl Sync for Header
impl Unpin for Header
impl UnwindSafe for Header
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