pub struct PacketTemplateFieldPart {
pub offset: i32,
pub bit_pos: u8,
pub mask: u8,
pub is_signed: bool,
pub factor: i64,
}
Expand description
Contains information about one part of a packet field’s raw value.
Fields§
§offset: i32
The offset into the frame data payload.
bit_pos: u8
The bit position from which the part starts.
mask: u8
The bit mask that is applied to this part’s value.
is_signed: bool
Whether this part is signed (= sign-extended) or not (= zero-extended).
factor: i64
The factor this part is multiplied with.
Trait Implementations§
Source§impl Clone for PacketTemplateFieldPart
impl Clone for PacketTemplateFieldPart
Source§fn clone(&self) -> PacketTemplateFieldPart
fn clone(&self) -> PacketTemplateFieldPart
Returns a copy 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 PacketTemplateFieldPart
impl Debug for PacketTemplateFieldPart
Source§impl PartialEq for PacketTemplateFieldPart
impl PartialEq for PacketTemplateFieldPart
impl StructuralPartialEq for PacketTemplateFieldPart
Auto Trait Implementations§
impl Freeze for PacketTemplateFieldPart
impl RefUnwindSafe for PacketTemplateFieldPart
impl Send for PacketTemplateFieldPart
impl Sync for PacketTemplateFieldPart
impl Unpin for PacketTemplateFieldPart
impl UnwindSafe for PacketTemplateFieldPart
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