#[repr(C, packed(1))]pub struct PacketOidData<T> {
pub adapter_handle: HANDLE,
pub oid: u32,
pub length: u32,
pub data: T,
}Expand description
This structure is used to make queries or set parameters on a network adapter.
A Rust equivalent for the _PACKET_OID_DATA structure.
Fields§
§adapter_handle: HANDLEA handle to the network adapter associated with this query or parameter setting.
oid: u32The OID (Object Identifier) that represents the query or parameter to be set.
length: u32The length of the data in bytes.
data: TThe data associated with the query or parameter.
Implementations§
Source§impl<T> PacketOidData<T>
impl<T> PacketOidData<T>
Sourcepub fn new(adapter_handle: HANDLE, oid: u32, data: T) -> Self
pub fn new(adapter_handle: HANDLE, oid: u32, data: T) -> Self
Creates a new PacketOidData instance.
§Arguments
adapter_handle- A handle to the network adapter associated with this query or parameter setting.oid- The OID (Object Identifier) that represents the query or parameter to be set.data- The data associated with the query or parameter.