[][src]Struct pakr_mio_afpacket::RawPacketStream

pub struct RawPacketStream(_, _);

Packet sockets are used to receive or send raw packets at OSI 2 level.

Implementations

impl RawPacketStream[src]

pub fn new(proto: Proto) -> Result<Self>[src]

Create new raw packet stream binding to all interfaces for a specific protocol

pub fn bind(&mut self, name: &str) -> Result<()>[src]

Bind socket to an interface (by name).

pub fn set_promisc(&mut self, name: &str, state: bool) -> Result<()>[src]

Trait Implementations

impl AsRawFd for RawPacketStream[src]

impl Debug for RawPacketStream[src]

impl FromRawFd for RawPacketStream[src]

impl IntoRawFd for RawPacketStream[src]

impl Read for RawPacketStream[src]

impl<'a> Read for &'a RawPacketStream[src]

impl Source for RawPacketStream[src]

impl Write for RawPacketStream[src]

impl<'a> Write for &'a RawPacketStream[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.