blob: b1b42e120d8fcc96dfaaa3dc8ce193193a002c25 [file] [log] [blame]
<!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 `SetSockOpt` trait in crate `nix`.">
<meta name="keywords" content="rust, rustlang, rust-lang, SetSockOpt">
<title>nix::sys::socket::SetSockOpt - Rust</title>
<link rel="stylesheet" type="text/css" href="../../../normalize.css">
<link rel="stylesheet" type="text/css" href="../../../rustdoc.css">
<link rel="stylesheet" type="text/css" href="../../../main.css">
</head>
<body class="rustdoc trait">
<!--[if lte IE 8]>
<div class="warning">
This old browser is unsupported and will most likely display funky
things.
</div>
<![endif]-->
<nav class="sidebar">
<p class='location'>Trait SetSockOpt</p><div class="block items"><ul><li><a href="#associated-types">Associated Types</a></li><li><a href="#implementors">Implementors</a></li></ul></div><p class='location'><a href='../../index.html'>nix</a>::<wbr><a href='../index.html'>sys</a>::<wbr><a href='index.html'>socket</a></p><script>window.sidebarCurrent = {name: 'SetSockOpt', ty: 'trait', relpath: ''};</script><script defer src="sidebar-items.js"></script>
</nav>
<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'>Trait <a href='../../index.html'>nix</a>::<wbr><a href='../index.html'>sys</a>::<wbr><a href='index.html'>socket</a>::<wbr><a class="trait" href=''>SetSockOpt</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/nix/sys/socket/mod.rs.html#554-559' title='goto source code'>[src]</a></span></h1>
<pre class='rust trait'>pub trait SetSockOpt: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Copy.html" title="trait core::marker::Copy">Copy</a> {
type <a href='#associatedtype.Val' class="type">Val</a>;
}</pre><div class='docblock'><p>Represents a socket option that can be accessed or set. Used as an argument
to <code>setsockopt</code></p>
</div>
<h2 id='associated-types' class='small-section-header'>
Associated Types<a href='#associated-types' class='anchor'></a>
</h2>
<div class='methods'>
<h3 id='associatedtype.Val' class='method'><span id='Val.t' class='invisible'><code>type <a href='#associatedtype.Val' class="type">Val</a></code></span></h3></div>
<h2 id='implementors' class='small-section-header'>
Implementors<a href='#implementors' class='anchor'></a>
</h2>
<ul class='item-list' id='implementors-list'>
<li><code>impl SetSockOpt for <a class="struct" href="../../../nix/sys/socket/sockopt/struct.ReuseAddr.html" title="struct nix::sys::socket::sockopt::ReuseAddr">ReuseAddr</a><span class="where fmt-newline"> type <a href='#associatedtype.Val' class="type">Val</a> = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>;</span></code></li>
<li><code>impl SetSockOpt for <a class="struct" href="../../../nix/sys/socket/sockopt/struct.ReusePort.html" title="struct nix::sys::socket::sockopt::ReusePort">ReusePort</a><span class="where fmt-newline"> type <a href='#associatedtype.Val' class="type">Val</a> = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>;</span></code></li>
<li><code>impl SetSockOpt for <a class="struct" href="../../../nix/sys/socket/sockopt/struct.TcpNoDelay.html" title="struct nix::sys::socket::sockopt::TcpNoDelay">TcpNoDelay</a><span class="where fmt-newline"> type <a href='#associatedtype.Val' class="type">Val</a> = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>;</span></code></li>
<li><code>impl SetSockOpt for <a class="struct" href="../../../nix/sys/socket/sockopt/struct.Linger.html" title="struct nix::sys::socket::sockopt::Linger">Linger</a><span class="where fmt-newline"> type <a href='#associatedtype.Val' class="type">Val</a> = <a class="struct" href="../../../nix/sys/socket/struct.linger.html" title="struct nix::sys::socket::linger">linger</a>;</span></code></li>
<li><code>impl SetSockOpt for <a class="struct" href="../../../nix/sys/socket/sockopt/struct.IpAddMembership.html" title="struct nix::sys::socket::sockopt::IpAddMembership">IpAddMembership</a><span class="where fmt-newline"> type <a href='#associatedtype.Val' class="type">Val</a> = <a class="struct" href="../../../nix/sys/socket/struct.ip_mreq.html" title="struct nix::sys::socket::ip_mreq">ip_mreq</a>;</span></code></li>
<li><code>impl SetSockOpt for <a class="struct" href="../../../nix/sys/socket/sockopt/struct.IpDropMembership.html" title="struct nix::sys::socket::sockopt::IpDropMembership">IpDropMembership</a><span class="where fmt-newline"> type <a href='#associatedtype.Val' class="type">Val</a> = <a class="struct" href="../../../nix/sys/socket/struct.ip_mreq.html" title="struct nix::sys::socket::ip_mreq">ip_mreq</a>;</span></code></li>
<li><code>impl SetSockOpt for <a class="struct" href="../../../nix/sys/socket/sockopt/struct.Ipv6AddMembership.html" title="struct nix::sys::socket::sockopt::Ipv6AddMembership">Ipv6AddMembership</a><span class="where fmt-newline"> type <a href='#associatedtype.Val' class="type">Val</a> = <a class="struct" href="../../../nix/sys/socket/struct.ipv6_mreq.html" title="struct nix::sys::socket::ipv6_mreq">ipv6_mreq</a>;</span></code></li>
<li><code>impl SetSockOpt for <a class="struct" href="../../../nix/sys/socket/sockopt/struct.Ipv6DropMembership.html" title="struct nix::sys::socket::sockopt::Ipv6DropMembership">Ipv6DropMembership</a><span class="where fmt-newline"> type <a href='#associatedtype.Val' class="type">Val</a> = <a class="struct" href="../../../nix/sys/socket/struct.ipv6_mreq.html" title="struct nix::sys::socket::ipv6_mreq">ipv6_mreq</a>;</span></code></li>
<li><code>impl SetSockOpt for <a class="struct" href="../../../nix/sys/socket/sockopt/struct.IpMulticastTtl.html" title="struct nix::sys::socket::sockopt::IpMulticastTtl">IpMulticastTtl</a><span class="where fmt-newline"> type <a href='#associatedtype.Val' class="type">Val</a> = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>;</span></code></li>
<li><code>impl SetSockOpt for <a class="struct" href="../../../nix/sys/socket/sockopt/struct.IpMulticastLoop.html" title="struct nix::sys::socket::sockopt::IpMulticastLoop">IpMulticastLoop</a><span class="where fmt-newline"> type <a href='#associatedtype.Val' class="type">Val</a> = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>;</span></code></li>
<li><code>impl SetSockOpt for <a class="struct" href="../../../nix/sys/socket/sockopt/struct.ReceiveTimeout.html" title="struct nix::sys::socket::sockopt::ReceiveTimeout">ReceiveTimeout</a><span class="where fmt-newline"> type <a href='#associatedtype.Val' class="type">Val</a> = <a class="struct" href="../../../nix/sys/time/struct.TimeVal.html" title="struct nix::sys::time::TimeVal">TimeVal</a>;</span></code></li>
<li><code>impl SetSockOpt for <a class="struct" href="../../../nix/sys/socket/sockopt/struct.SendTimeout.html" title="struct nix::sys::socket::sockopt::SendTimeout">SendTimeout</a><span class="where fmt-newline"> type <a href='#associatedtype.Val' class="type">Val</a> = <a class="struct" href="../../../nix/sys/time/struct.TimeVal.html" title="struct nix::sys::time::TimeVal">TimeVal</a>;</span></code></li>
<li><code>impl SetSockOpt for <a class="struct" href="../../../nix/sys/socket/sockopt/struct.Broadcast.html" title="struct nix::sys::socket::sockopt::Broadcast">Broadcast</a><span class="where fmt-newline"> type <a href='#associatedtype.Val' class="type">Val</a> = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>;</span></code></li>
<li><code>impl SetSockOpt for <a class="struct" href="../../../nix/sys/socket/sockopt/struct.OobInline.html" title="struct nix::sys::socket::sockopt::OobInline">OobInline</a><span class="where fmt-newline"> type <a href='#associatedtype.Val' class="type">Val</a> = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>;</span></code></li>
<li><code>impl SetSockOpt for <a class="struct" href="../../../nix/sys/socket/sockopt/struct.KeepAlive.html" title="struct nix::sys::socket::sockopt::KeepAlive">KeepAlive</a><span class="where fmt-newline"> type <a href='#associatedtype.Val' class="type">Val</a> = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>;</span></code></li>
<li><code>impl SetSockOpt for <a class="struct" href="../../../nix/sys/socket/sockopt/struct.TcpKeepIdle.html" title="struct nix::sys::socket::sockopt::TcpKeepIdle">TcpKeepIdle</a><span class="where fmt-newline"> type <a href='#associatedtype.Val' class="type">Val</a> = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>;</span></code></li>
<li><code>impl SetSockOpt for <a class="struct" href="../../../nix/sys/socket/sockopt/struct.RcvBuf.html" title="struct nix::sys::socket::sockopt::RcvBuf">RcvBuf</a><span class="where fmt-newline"> type <a href='#associatedtype.Val' class="type">Val</a> = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>;</span></code></li>
<li><code>impl SetSockOpt for <a class="struct" href="../../../nix/sys/socket/sockopt/struct.SndBuf.html" title="struct nix::sys::socket::sockopt::SndBuf">SndBuf</a><span class="where fmt-newline"> type <a href='#associatedtype.Val' class="type">Val</a> = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>;</span></code></li>
<li><code>impl SetSockOpt for <a class="struct" href="../../../nix/sys/socket/sockopt/struct.RcvBufForce.html" title="struct nix::sys::socket::sockopt::RcvBufForce">RcvBufForce</a><span class="where fmt-newline"> type <a href='#associatedtype.Val' class="type">Val</a> = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>;</span></code></li>
<li><code>impl SetSockOpt for <a class="struct" href="../../../nix/sys/socket/sockopt/struct.SndBufForce.html" title="struct nix::sys::socket::sockopt::SndBufForce">SndBufForce</a><span class="where fmt-newline"> type <a href='#associatedtype.Val' class="type">Val</a> = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>;</span></code></li>
</ul><script type="text/javascript" async
src="../../../implementors/nix/sys/socket/trait.SetSockOpt.js">
</script></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>?</dt>
<dd>Show this help dialog</dd>
<dt>S</dt>
<dd>Focus the search field</dd>
<dt>&larrb;</dt>
<dd>Move up in search results</dd>
<dt>&rarrb;</dt>
<dd>Move down in search results</dd>
<dt>&#9166;</dt>
<dd>Go to active search result</dd>
<dt>+</dt>
<dd>Collapse/expand 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 = "nix";
</script>
<script src="../../../main.js"></script>
<script defer src="../../../search-index.js"></script>
</body>
</html>