#[repr(C, packed(4))]pub struct IflaGenevePortRange {
pub _low_be: u16,
pub _high_be: u16,
}Available on crate feature
rt-link only.Fields§
§_low_be: u16§_high_be: u16Implementations§
Source§impl IflaGenevePortRange
impl IflaGenevePortRange
Sourcepub fn new_from_slice(other: &[u8]) -> Option<Self>
pub fn new_from_slice(other: &[u8]) -> Option<Self>
Copy from contents from slice
Sourcepub fn new_from_zeroed(other: &[u8]) -> Self
pub fn new_from_zeroed(other: &[u8]) -> Self
Copy from contents from another slice, padding with zeros or truncating when needed
pub fn new_from_array(buf: [u8; 4]) -> Self
pub fn as_slice(&self) -> &[u8] ⓘ
pub fn from_slice(buf: &[u8]) -> &Self
pub fn as_array(&self) -> &[u8; 4]
pub fn from_array(buf: &[u8; 4]) -> &Self
pub fn into_array(self) -> [u8; 4]
pub const fn len() -> usize
pub fn low(&self) -> u16
pub fn set_low(&mut self, value: u16)
pub fn high(&self) -> u16
pub fn set_high(&mut self, value: u16)
Trait Implementations§
Source§impl Clone for IflaGenevePortRange
impl Clone for IflaGenevePortRange
Source§impl Debug for IflaGenevePortRange
impl Debug for IflaGenevePortRange
Auto Trait Implementations§
impl Freeze for IflaGenevePortRange
impl RefUnwindSafe for IflaGenevePortRange
impl Send for IflaGenevePortRange
impl Sync for IflaGenevePortRange
impl Unpin for IflaGenevePortRange
impl UnsafeUnpin for IflaGenevePortRange
impl UnwindSafe for IflaGenevePortRange
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