mentat/libc/struct.if_data.html
2018-08-22 17:04:13 +00:00

285 lines
No EOL
24 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="generator" content="rustdoc">
<meta name="description" content="API documentation for the Rust `if_data` struct in crate `libc`.">
<meta name="keywords" content="rust, rustlang, rust-lang, if_data">
<title>libc::if_data - Rust</title>
<link rel="stylesheet" type="text/css" href="../normalize.css">
<link rel="stylesheet" type="text/css" href="../rustdoc.css" id="mainThemeStyle">
<link rel="stylesheet" type="text/css" href="../dark.css">
<link rel="stylesheet" type="text/css" href="../main.css" id="themeStyle">
<script src="../storage.js"></script>
<link rel="shortcut icon" href="https://doc.rust-lang.org/favicon.ico">
</head>
<body class="rustdoc struct">
<!--[if lte IE 8]>
<div class="warning">
This old browser is unsupported and will most likely display funky
things.
</div>
<![endif]-->
<nav class="sidebar">
<div class="sidebar-menu">&#9776;</div>
<a href='../libc/index.html'><img src='https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png' alt='logo' width='100'></a>
<p class='location'>Struct if_data</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#fields">Fields</a><div class="sidebar-links"><a href="#structfield.ifi_type">ifi_type</a><a href="#structfield.ifi_typelen">ifi_typelen</a><a href="#structfield.ifi_physical">ifi_physical</a><a href="#structfield.ifi_addrlen">ifi_addrlen</a><a href="#structfield.ifi_hdrlen">ifi_hdrlen</a><a href="#structfield.ifi_recvquota">ifi_recvquota</a><a href="#structfield.ifi_xmitquota">ifi_xmitquota</a><a href="#structfield.ifi_unused1">ifi_unused1</a><a href="#structfield.ifi_mtu">ifi_mtu</a><a href="#structfield.ifi_metric">ifi_metric</a><a href="#structfield.ifi_baudrate">ifi_baudrate</a><a href="#structfield.ifi_ipackets">ifi_ipackets</a><a href="#structfield.ifi_ierrors">ifi_ierrors</a><a href="#structfield.ifi_opackets">ifi_opackets</a><a href="#structfield.ifi_oerrors">ifi_oerrors</a><a href="#structfield.ifi_collisions">ifi_collisions</a><a href="#structfield.ifi_ibytes">ifi_ibytes</a><a href="#structfield.ifi_obytes">ifi_obytes</a><a href="#structfield.ifi_imcasts">ifi_imcasts</a><a href="#structfield.ifi_omcasts">ifi_omcasts</a><a href="#structfield.ifi_iqdrops">ifi_iqdrops</a><a href="#structfield.ifi_noproto">ifi_noproto</a><a href="#structfield.ifi_recvtiming">ifi_recvtiming</a><a href="#structfield.ifi_xmittiming">ifi_xmittiming</a><a href="#structfield.ifi_lastchange">ifi_lastchange</a><a href="#structfield.ifi_unused2">ifi_unused2</a><a href="#structfield.ifi_hwassist">ifi_hwassist</a><a href="#structfield.ifi_reserved1">ifi_reserved1</a><a href="#structfield.ifi_reserved2">ifi_reserved2</a></div><a class="sidebar-title" href="#implementations">Trait Implementations</a><div class="sidebar-links"><a href="#impl-Copy">Copy</a><a href="#impl-Clone">Clone</a></div></div><p class='location'><a href='index.html'>libc</a></p><script>window.sidebarCurrent = {name: 'if_data', ty: 'struct', relpath: ''};</script><script defer src="sidebar-items.js"></script></div>
</nav>
<div class="theme-picker">
<button id="theme-picker" aria-label="Pick another theme!">
<img src="../brush.svg" width="18" alt="Pick another theme!">
</button>
<div id="theme-choices"></div>
</div>
<script src="../theme.js"></script>
<nav class="sub">
<form class="search-form js-only">
<div class="search-container">
<input class="search-input" name="search"
autocomplete="off"
placeholder="Click or press S to search, ? for more options…"
type="search">
</div>
</form>
</nav>
<section id='main' class="content">
<h1 class='fqn'><span class='in-band'>Struct <a href='index.html'>libc</a>::<wbr><a class="struct" href=''>if_data</a></span><span class='out-of-band'><span id='render-detail'>
<a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">
[<span class='inner'>&#x2212;</span>]
</a>
</span><a class='srclink' href='../src/libc/macros.rs.html#42' title='goto source code'>[src]</a></span></h1>
<pre class='rust struct'><div class="docblock attributes">#[repr(C)]
</div>pub struct if_data {
pub ifi_type: <a class="type" href="../libc/type.c_uchar.html" title="type libc::c_uchar">c_uchar</a>,
pub ifi_typelen: <a class="type" href="../libc/type.c_uchar.html" title="type libc::c_uchar">c_uchar</a>,
pub ifi_physical: <a class="type" href="../libc/type.c_uchar.html" title="type libc::c_uchar">c_uchar</a>,
pub ifi_addrlen: <a class="type" href="../libc/type.c_uchar.html" title="type libc::c_uchar">c_uchar</a>,
pub ifi_hdrlen: <a class="type" href="../libc/type.c_uchar.html" title="type libc::c_uchar">c_uchar</a>,
pub ifi_recvquota: <a class="type" href="../libc/type.c_uchar.html" title="type libc::c_uchar">c_uchar</a>,
pub ifi_xmitquota: <a class="type" href="../libc/type.c_uchar.html" title="type libc::c_uchar">c_uchar</a>,
pub ifi_unused1: <a class="type" href="../libc/type.c_uchar.html" title="type libc::c_uchar">c_uchar</a>,
pub ifi_mtu: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>,
pub ifi_metric: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>,
pub ifi_baudrate: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>,
pub ifi_ipackets: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>,
pub ifi_ierrors: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>,
pub ifi_opackets: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>,
pub ifi_oerrors: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>,
pub ifi_collisions: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>,
pub ifi_ibytes: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>,
pub ifi_obytes: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>,
pub ifi_imcasts: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>,
pub ifi_omcasts: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>,
pub ifi_iqdrops: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>,
pub ifi_noproto: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>,
pub ifi_recvtiming: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>,
pub ifi_xmittiming: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>,
pub ifi_lastchange: <a class="struct" href="../libc/struct.timeval32.html" title="struct libc::timeval32">timeval32</a>,
pub ifi_unused2: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>,
pub ifi_hwassist: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>,
pub ifi_reserved1: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>,
pub ifi_reserved2: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>,
}</pre><h2 id='fields' class='fields small-section-header'>
Fields<a href='#fields' class='anchor'></a></h2><span id="structfield.ifi_type" class="structfield small-section-header">
<a href="#structfield.ifi_type" class="anchor field"></a>
<span id="ifi_type.v" class='invisible'>
<code>ifi_type: <a class="type" href="../libc/type.c_uchar.html" title="type libc::c_uchar">c_uchar</a></code>
</span></span><span id="structfield.ifi_typelen" class="structfield small-section-header">
<a href="#structfield.ifi_typelen" class="anchor field"></a>
<span id="ifi_typelen.v" class='invisible'>
<code>ifi_typelen: <a class="type" href="../libc/type.c_uchar.html" title="type libc::c_uchar">c_uchar</a></code>
</span></span><span id="structfield.ifi_physical" class="structfield small-section-header">
<a href="#structfield.ifi_physical" class="anchor field"></a>
<span id="ifi_physical.v" class='invisible'>
<code>ifi_physical: <a class="type" href="../libc/type.c_uchar.html" title="type libc::c_uchar">c_uchar</a></code>
</span></span><span id="structfield.ifi_addrlen" class="structfield small-section-header">
<a href="#structfield.ifi_addrlen" class="anchor field"></a>
<span id="ifi_addrlen.v" class='invisible'>
<code>ifi_addrlen: <a class="type" href="../libc/type.c_uchar.html" title="type libc::c_uchar">c_uchar</a></code>
</span></span><span id="structfield.ifi_hdrlen" class="structfield small-section-header">
<a href="#structfield.ifi_hdrlen" class="anchor field"></a>
<span id="ifi_hdrlen.v" class='invisible'>
<code>ifi_hdrlen: <a class="type" href="../libc/type.c_uchar.html" title="type libc::c_uchar">c_uchar</a></code>
</span></span><span id="structfield.ifi_recvquota" class="structfield small-section-header">
<a href="#structfield.ifi_recvquota" class="anchor field"></a>
<span id="ifi_recvquota.v" class='invisible'>
<code>ifi_recvquota: <a class="type" href="../libc/type.c_uchar.html" title="type libc::c_uchar">c_uchar</a></code>
</span></span><span id="structfield.ifi_xmitquota" class="structfield small-section-header">
<a href="#structfield.ifi_xmitquota" class="anchor field"></a>
<span id="ifi_xmitquota.v" class='invisible'>
<code>ifi_xmitquota: <a class="type" href="../libc/type.c_uchar.html" title="type libc::c_uchar">c_uchar</a></code>
</span></span><span id="structfield.ifi_unused1" class="structfield small-section-header">
<a href="#structfield.ifi_unused1" class="anchor field"></a>
<span id="ifi_unused1.v" class='invisible'>
<code>ifi_unused1: <a class="type" href="../libc/type.c_uchar.html" title="type libc::c_uchar">c_uchar</a></code>
</span></span><span id="structfield.ifi_mtu" class="structfield small-section-header">
<a href="#structfield.ifi_mtu" class="anchor field"></a>
<span id="ifi_mtu.v" class='invisible'>
<code>ifi_mtu: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a></code>
</span></span><span id="structfield.ifi_metric" class="structfield small-section-header">
<a href="#structfield.ifi_metric" class="anchor field"></a>
<span id="ifi_metric.v" class='invisible'>
<code>ifi_metric: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a></code>
</span></span><span id="structfield.ifi_baudrate" class="structfield small-section-header">
<a href="#structfield.ifi_baudrate" class="anchor field"></a>
<span id="ifi_baudrate.v" class='invisible'>
<code>ifi_baudrate: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a></code>
</span></span><span id="structfield.ifi_ipackets" class="structfield small-section-header">
<a href="#structfield.ifi_ipackets" class="anchor field"></a>
<span id="ifi_ipackets.v" class='invisible'>
<code>ifi_ipackets: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a></code>
</span></span><span id="structfield.ifi_ierrors" class="structfield small-section-header">
<a href="#structfield.ifi_ierrors" class="anchor field"></a>
<span id="ifi_ierrors.v" class='invisible'>
<code>ifi_ierrors: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a></code>
</span></span><span id="structfield.ifi_opackets" class="structfield small-section-header">
<a href="#structfield.ifi_opackets" class="anchor field"></a>
<span id="ifi_opackets.v" class='invisible'>
<code>ifi_opackets: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a></code>
</span></span><span id="structfield.ifi_oerrors" class="structfield small-section-header">
<a href="#structfield.ifi_oerrors" class="anchor field"></a>
<span id="ifi_oerrors.v" class='invisible'>
<code>ifi_oerrors: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a></code>
</span></span><span id="structfield.ifi_collisions" class="structfield small-section-header">
<a href="#structfield.ifi_collisions" class="anchor field"></a>
<span id="ifi_collisions.v" class='invisible'>
<code>ifi_collisions: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a></code>
</span></span><span id="structfield.ifi_ibytes" class="structfield small-section-header">
<a href="#structfield.ifi_ibytes" class="anchor field"></a>
<span id="ifi_ibytes.v" class='invisible'>
<code>ifi_ibytes: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a></code>
</span></span><span id="structfield.ifi_obytes" class="structfield small-section-header">
<a href="#structfield.ifi_obytes" class="anchor field"></a>
<span id="ifi_obytes.v" class='invisible'>
<code>ifi_obytes: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a></code>
</span></span><span id="structfield.ifi_imcasts" class="structfield small-section-header">
<a href="#structfield.ifi_imcasts" class="anchor field"></a>
<span id="ifi_imcasts.v" class='invisible'>
<code>ifi_imcasts: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a></code>
</span></span><span id="structfield.ifi_omcasts" class="structfield small-section-header">
<a href="#structfield.ifi_omcasts" class="anchor field"></a>
<span id="ifi_omcasts.v" class='invisible'>
<code>ifi_omcasts: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a></code>
</span></span><span id="structfield.ifi_iqdrops" class="structfield small-section-header">
<a href="#structfield.ifi_iqdrops" class="anchor field"></a>
<span id="ifi_iqdrops.v" class='invisible'>
<code>ifi_iqdrops: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a></code>
</span></span><span id="structfield.ifi_noproto" class="structfield small-section-header">
<a href="#structfield.ifi_noproto" class="anchor field"></a>
<span id="ifi_noproto.v" class='invisible'>
<code>ifi_noproto: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a></code>
</span></span><span id="structfield.ifi_recvtiming" class="structfield small-section-header">
<a href="#structfield.ifi_recvtiming" class="anchor field"></a>
<span id="ifi_recvtiming.v" class='invisible'>
<code>ifi_recvtiming: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a></code>
</span></span><span id="structfield.ifi_xmittiming" class="structfield small-section-header">
<a href="#structfield.ifi_xmittiming" class="anchor field"></a>
<span id="ifi_xmittiming.v" class='invisible'>
<code>ifi_xmittiming: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a></code>
</span></span><span id="structfield.ifi_lastchange" class="structfield small-section-header">
<a href="#structfield.ifi_lastchange" class="anchor field"></a>
<span id="ifi_lastchange.v" class='invisible'>
<code>ifi_lastchange: <a class="struct" href="../libc/struct.timeval32.html" title="struct libc::timeval32">timeval32</a></code>
</span></span><span id="structfield.ifi_unused2" class="structfield small-section-header">
<a href="#structfield.ifi_unused2" class="anchor field"></a>
<span id="ifi_unused2.v" class='invisible'>
<code>ifi_unused2: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a></code>
</span></span><span id="structfield.ifi_hwassist" class="structfield small-section-header">
<a href="#structfield.ifi_hwassist" class="anchor field"></a>
<span id="ifi_hwassist.v" class='invisible'>
<code>ifi_hwassist: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a></code>
</span></span><span id="structfield.ifi_reserved1" class="structfield small-section-header">
<a href="#structfield.ifi_reserved1" class="anchor field"></a>
<span id="ifi_reserved1.v" class='invisible'>
<code>ifi_reserved1: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a></code>
</span></span><span id="structfield.ifi_reserved2" class="structfield small-section-header">
<a href="#structfield.ifi_reserved2" class="anchor field"></a>
<span id="ifi_reserved2.v" class='invisible'>
<code>ifi_reserved2: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a></code>
</span></span>
<h2 id='implementations' class='small-section-header'>
Trait Implementations<a href='#implementations' class='anchor'></a>
</h2>
<h3 id='impl-Copy' class='impl'><span class='in-band'><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Copy.html" title="trait core::marker::Copy">Copy</a> for <a class="struct" href="../libc/struct.if_data.html" title="struct libc::if_data">if_data</a></code><a href='#impl-Copy' class='anchor'></a></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/libc/macros.rs.html#44' title='goto source code'>[src]</a></span></h3>
<div class='impl-items'></div><h3 id='impl-Clone' class='impl'><span class='in-band'><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> for <a class="struct" href="../libc/struct.if_data.html" title="struct libc::if_data">if_data</a></code><a href='#impl-Clone' class='anchor'></a></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/libc/macros.rs.html#45-47' title='goto source code'>[src]</a></span></h3>
<div class='impl-items'><h4 id='method.clone' class="method"><span id='clone.v' class='invisible'><code>fn <a href='https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#tymethod.clone' class='fnname'>clone</a>(&amp;self) -&gt; <a class="struct" href="../libc/struct.if_data.html" title="struct libc::if_data">if_data</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/libc/macros.rs.html#46' title='goto source code'>[src]</a></span></h4>
<div class='docblock'><p>Returns a copy of the value. <a href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#tymethod.clone">Read more</a></p>
</div><h4 id='method.clone_from' class="method"><span id='clone_from.v' class='invisible'><code>fn <a href='https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#method.clone_from' class='fnname'>clone_from</a>(&amp;mut self, source: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;</a>Self)</code></span><span class='out-of-band'><div class='ghost'></div><div class='since' title='Stable since Rust version 1.0.0'>1.0.0</div><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/clone.rs.html#112-114' title='goto source code'>[src]</a></span></h4>
<div class='docblock'><p>Performs copy-assignment from <code>source</code>. <a href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#method.clone_from">Read more</a></p>
</div></div></section>
<section id='search' class="content hidden"></section>
<section class="footer"></section>
<aside id="help" class="hidden">
<div>
<h1 class="hidden">Help</h1>
<div class="shortcuts">
<h2>Keyboard Shortcuts</h2>
<dl>
<dt><kbd>?</kbd></dt>
<dd>Show this help dialog</dd>
<dt><kbd>S</kbd></dt>
<dd>Focus the search field</dd>
<dt><kbd></kbd></dt>
<dd>Move up in search results</dd>
<dt><kbd></kbd></dt>
<dd>Move down in search results</dd>
<dt><kbd></kbd></dt>
<dd>Switch tab</dd>
<dt><kbd>&#9166;</kbd></dt>
<dd>Go to active search result</dd>
<dt><kbd>+</kbd></dt>
<dd>Expand all sections</dd>
<dt><kbd>-</kbd></dt>
<dd>Collapse all sections</dd>
</dl>
</div>
<div class="infos">
<h2>Search Tricks</h2>
<p>
Prefix searches with a type followed by a colon (e.g.
<code>fn:</code>) to restrict the search to a given type.
</p>
<p>
Accepted types are: <code>fn</code>, <code>mod</code>,
<code>struct</code>, <code>enum</code>,
<code>trait</code>, <code>type</code>, <code>macro</code>,
and <code>const</code>.
</p>
<p>
Search functions by type signature (e.g.
<code>vec -> usize</code> or <code>* -> vec</code>)
</p>
</div>
</div>
</aside>
<script>
window.rootPath = "../";
window.currentCrate = "libc";
</script>
<script src="../main.js"></script>
<script defer src="../search-index.js"></script>
</body>
</html>