pub struct MsgHeader {
pub msg_id: u8,
pub b_tag: u8,
pub b_tag_inverse: u8,
}Expand description
Base 4-byte header common to all USBTMC bulk messages.
Fields§
§msg_id: u8Message type identifier.
b_tag: u8Transfer tag (1..=255).
b_tag_inverse: u8Bitwise NOT of b_tag.
Implementations§
Trait Implementations§
impl Copy for MsgHeader
impl Eq for MsgHeader
impl StructuralPartialEq for MsgHeader
Auto Trait Implementations§
impl Forget for MsgHeader
impl Freeze for MsgHeader
impl Move for MsgHeader
impl RefUnwindSafe for MsgHeader
impl Send for MsgHeader
impl Sync for MsgHeader
impl Unpin for MsgHeader
impl UnsafeUnpin for MsgHeader
impl UnwindSafe for MsgHeader
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