#[repr(C)]pub struct ByteRange {
pub start_range: u8,
pub end_range: u8,
}Expand description
A Rust struct that represents a range of byte values.
Rust equivalent for _BYTE_RANGE. This structure can be used to define filtering rules based on byte ranges, such as ICMP type or code ranges.
The start_range field represents the start of the byte range.
The end_range field represents the end of the byte range.
Fields§
§start_range: u8§end_range: u8Implementations§
Trait Implementations§
impl Copy for ByteRange
Auto Trait Implementations§
impl Freeze for ByteRange
impl RefUnwindSafe for ByteRange
impl Send for ByteRange
impl Sync for ByteRange
impl Unpin for ByteRange
impl UnwindSafe for ByteRange
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)