pub struct InterfaceName { /* private fields */ }
Implementations§
Source§impl InterfaceName
impl InterfaceName
pub fn as_str(&self) -> &str
pub fn as_cstr(&self) -> &CStr
pub fn to_ifr_name(self) -> [c_char; 16]
pub fn from_socket_addr(local_addr: SocketAddr) -> Result<Option<Self>>
pub fn get_index(&self) -> Option<c_uint>
Sourcepub fn lookup_phc(&self) -> Option<u32>
pub fn lookup_phc(&self) -> Option<u32>
Do a lookup for the Physical Hardware Clock index for this interface.
Trait Implementations§
Source§impl Clone for InterfaceName
impl Clone for InterfaceName
Source§fn clone(&self) -> InterfaceName
fn clone(&self) -> InterfaceName
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for InterfaceName
impl Debug for InterfaceName
Source§impl<'de> Deserialize<'de> for InterfaceName
impl<'de> Deserialize<'de> for InterfaceName
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for InterfaceName
impl Display for InterfaceName
Source§impl FromStr for InterfaceName
impl FromStr for InterfaceName
Source§impl Hash for InterfaceName
impl Hash for InterfaceName
Source§impl PartialEq for InterfaceName
impl PartialEq for InterfaceName
impl Copy for InterfaceName
impl Eq for InterfaceName
impl StructuralPartialEq for InterfaceName
Auto Trait Implementations§
impl Freeze for InterfaceName
impl RefUnwindSafe for InterfaceName
impl Send for InterfaceName
impl Sync for InterfaceName
impl Unpin for InterfaceName
impl UnwindSafe for InterfaceName
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