[][src]Struct libipt_sys::pt_packet_ptw

#[repr(C)]
pub struct pt_packet_ptw {
    pub payload: u64,
    pub plc: u8,
    pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1], u8>,
    pub __bindgen_padding_0: [u16; 3],
}

A PTW packet.

Fields

payload: u64

The raw payload.

plc: u8

The payload size as encoded in the packet.

_bitfield_1: __BindgenBitfieldUnit<[u8; 1], u8>__bindgen_padding_0: [u16; 3]

Methods

impl pt_packet_ptw[src]

pub fn ip(&self) -> u32[src]

pub fn set_ip(&mut self, val: u32)[src]

pub fn new_bitfield_1(ip: u32) -> __BindgenBitfieldUnit<[u8; 1], u8>[src]

Trait Implementations

impl Clone for pt_packet_ptw[src]

impl Copy for pt_packet_ptw[src]

impl Debug for pt_packet_ptw[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = !

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]