Struct af_packet::Ring [] [src]

pub struct Ring {
    pub if_name: String,
    pub fd: c_int,
    // some fields omitted
}

References a single mmaped ring buffer. Normally one per thread.

Fields

Interface Name

File descriptor

Methods

impl Ring
[src]

[src]

Creates a new ring buffer on the specified interface name and puts the interface into promiscuous mode

[src]

Creates a new ring buffer from the supplied RingSettings struct

[src]

Waits for a block to be added to the ring buffer and returns it

Trait Implementations

impl Clone for Ring
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for Ring
[src]

[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl !Send for Ring

impl !Sync for Ring