pub struct StatusMessage {
pub code: u16,
pub subcode: i64,
pub error_name: String,
pub status_string: String,
}
Expand description
STATUS message containing device status information
§OpenIGTLink Specification
- Message type: “STATUS”
- Body size: Variable (30 bytes minimum + status_string length + 1)
- Encoding:
- Code: u16 (2 bytes, big-endian)
- Subcode: i64 (8 bytes, big-endian)
- Error name: 20 bytes (null-padded)
- Status string: variable length (null-terminated)
Fields§
§code: u16
Status code (0 = invalid, 1 = OK, others are device-specific)
subcode: i64
Sub-code for additional status information
error_name: String
Error name (max 20 characters)
status_string: String
Status message string
Implementations§
Trait Implementations§
Source§impl Clone for StatusMessage
impl Clone for StatusMessage
Source§fn clone(&self) -> StatusMessage
fn clone(&self) -> StatusMessage
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 StatusMessage
impl Debug for StatusMessage
Source§impl Message for StatusMessage
impl Message for StatusMessage
Source§impl PartialEq for StatusMessage
impl PartialEq for StatusMessage
impl StructuralPartialEq for StatusMessage
Auto Trait Implementations§
impl Freeze for StatusMessage
impl RefUnwindSafe for StatusMessage
impl Send for StatusMessage
impl Sync for StatusMessage
impl Unpin for StatusMessage
impl UnwindSafe for StatusMessage
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