Struct ndisapi_rs::IntermediateBuffer
source · #[repr(C, packed)]pub struct IntermediateBuffer {
pub header: IntermediateBufferHeaderUnion,
pub device_flags: DirectionFlags,
pub length: u32,
pub flags: u32,
pub vlan_8021q: u32,
pub filter_id: u32,
pub reserved: [u32; 4],
pub buffer: Buffer,
}
Expand description
The IntermediateBuffer
structure represents an intermediate buffer that stores packet data along with some
additional information. This structure is used internally by the packet filter driver.
Rust equivalent for _INTERMEDIATE_BUFFER.
Fields
header
: AnIntermediateBufferHeaderUnion
which is a union ofHANDLE
andListEntry
.device_flags
: ADirectionFlags
value that indicates the direction of the packet (send or receive).length
: Au32
representing the length of the packet data.flags
: Au32
value containing various flags related to the packet.vlan_8021q
: Au32
value representing the VLAN tag (802.1Q) associated with the packet.filter_id
: Au32
value identifying the filter that processed the packet.reserved
: A reserved[u32; 4usize]
array for future use.buffer
: ABuffer
structure containing the actual packet data.
Fields§
§header: IntermediateBufferHeaderUnion
§device_flags: DirectionFlags
§length: u32
§flags: u32
§vlan_8021q: u32
§filter_id: u32
§reserved: [u32; 4]
§buffer: Buffer
Implementations§
source§impl IntermediateBuffer
impl IntermediateBuffer
IntermediateBuffer implementation
sourcepub fn get_device_flags(&self) -> DirectionFlags
pub fn get_device_flags(&self) -> DirectionFlags
Gets the DirectionFlags
value associated with the IntermediateBuffer
.
Returns
The DirectionFlags
value indicating the direction of the packet (send or receive).
sourcepub fn get_length(&self) -> u32
pub fn get_length(&self) -> u32
Gets the length of the packet data stored in the IntermediateBuffer
.
Returns
A u32
value representing the length of the packet data.
sourcepub fn set_length(&mut self, length: u32)
pub fn set_length(&mut self, length: u32)
Sets the length of the packet data stored in the IntermediateBuffer
.
Arguments
length
: Au32
value representing the new length of the packet data.
Trait Implementations§
source§impl Clone for IntermediateBuffer
impl Clone for IntermediateBuffer
source§fn clone(&self) -> IntermediateBuffer
fn clone(&self) -> IntermediateBuffer
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 Default for IntermediateBuffer
impl Default for IntermediateBuffer
source§fn default() -> IntermediateBuffer
fn default() -> IntermediateBuffer
Returns the “default value” for a type. Read more
impl Copy for IntermediateBuffer
Auto Trait Implementations§
impl RefUnwindSafe for IntermediateBuffer
impl !Send for IntermediateBuffer
impl !Sync for IntermediateBuffer
impl Unpin for IntermediateBuffer
impl UnwindSafe for IntermediateBuffer
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