#[repr(C, packed(1))]pub struct PortRange {
pub start_range: u16,
pub end_range: u16,
}Expand description
This structure is used to define a range of port numbers for packet filtering rules.
Rust equivalent for _PORT_RANGE.
The start_range field represents the starting port number in the range.
The end_range field represents the ending port number in the range.
Fields§
§start_range: u16§end_range: u16Implementations§
Trait Implementations§
impl Copy for PortRange
Auto Trait Implementations§
impl Freeze for PortRange
impl RefUnwindSafe for PortRange
impl Send for PortRange
impl Sync for PortRange
impl Unpin for PortRange
impl UnwindSafe for PortRange
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)