pub struct Link { /* private fields */ }Implementations§
Source§impl Link
impl Link
Sourcepub fn open(iface: &str, read_timeout: Duration) -> Result<Self>
pub fn open(iface: &str, read_timeout: Duration) -> Result<Self>
Open a raw packet socket bound to iface, promiscuous: the card
replies to SENDER_MAC, not to the host’s own address.
§Errors
Fails without CAP_NET_RAW, or if the interface does not exist.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Link
impl RefUnwindSafe for Link
impl Send for Link
impl Sync for Link
impl Unpin for Link
impl UnsafeUnpin for Link
impl UnwindSafe for Link
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