<noscript><linkrel="stylesheet"href="../../../noscript.css"></noscript><linkrel="alternate icon"type="image/png"href="../../../favicon-16x16.png"><linkrel="alternate icon"type="image/png"href="../../../favicon-32x32.png"><linkrel="icon"type="image/svg+xml"href="../../../favicon.svg"></head><bodyclass="rustdoc trait"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><navclass="sidebar"><divclass="sidebar-menu"role="button">☰</div><aclass="sidebar-logo"href="../../../actix_web_httpauth/index.html"><divclass="logo-container"><imgclass="rust-logo"src="../../../rust-logo.png"alt="logo"></div>
</a><h2class="location">Trait Challenge</h2><divclass="sidebar-elems"><divclass="block items"><h3class="sidebar-title"><ahref="#required-methods">Required Methods</a></h3><divclass="sidebar-links"><ahref="#tymethod.to_bytes">to_bytes</a></div><h3class="sidebar-title"><ahref="#implementors">Implementors</a></h3></div><h2class="location">Other items in<br><ahref="../../index.html">actix_web_httpauth</a>::<wbr><ahref="../index.html">headers</a>::<wbr><ahref="index.html">www_authenticate</a></h2><divid="sidebar-vars"data-name="Challenge"data-ty="trait"data-relpath=""></div><scriptdefersrc="sidebar-items.js"></script></div></nav><main><divclass="width-limiter"><divclass="sub-container"><aclass="sub-logo-container"href="../../../actix_web_httpauth/index.html"><imgclass="rust-logo"src="../../../rust-logo.png"alt="logo"></a><navclass="sub"><divclass="theme-picker"><buttonid="theme-picker"aria-label="Pick another theme!"aria-haspopup="menu"title="themes"><imgwidth="18"height="18"alt="Pick another theme!"src="../../../brush.svg"></button><divid="theme-choices"role="menu"></div></div><formclass="search-form"><divclass="search-container"><div><selectid="crate-search"><optionvalue="All crates">All crates</option></select><inputclass="search-input"name="search"autocomplete="off"spellcheck="false"placeholder="Click or press ‘S’ to search, ‘?’ for more options…"type="search"></div><buttontype="button"id="help-button"title="help">?</button><aid="settings-menu"href="../../../settings.html"title="settings"><imgwidth="18"height="18"alt="Change settings"src="../../../wheel.svg"></a></div></form></nav></div><sectionid="main-content"class="content"><h1class="fqn"><spanclass="in-band">Trait <ahref="../../index.html">actix_web_httpauth</a>::<wbr><ahref="../index.html">headers</a>::<wbr><ahref="index.html">www_authenticate</a>::<wbr><aclass="trait"href="#">Challenge</a><buttonid="copy-path"onclick="copy_path(this)"title="Copy item path to clipboard"><imgsrc="../../../clipboard.svg"width="19"height="18"alt="Copy item path"></button></span><spanclass="out-of-band"><spanid="render-detail"><aid="toggle-all-docs"href="javascript:void(0)"title="collapse all docs">[<spanclass="inner">−</span>]</a></span><aclass="srclink"href="../../../src/actix_web_httpauth/headers/www_authenticate/challenge/mod.rs.html#9-12"title="goto source code">[src]</a></span></h1><divclass="docblock item-decl"><preclass="rust trait"><code>pub trait Challenge: TryIntoHeaderValue + <aclass="trait"href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html"title="trait core::fmt::Debug">Debug</a> + <aclass="trait"href="https://doc.rust-lang.org/nightly/core/fmt/trait.Display.html"title="trait core::fmt::Display">Display</a> + <aclass="trait"href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html"title="trait core::clone::Clone">Clone</a> + <aclass="trait"href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html"title="trait core::marker::Send">Send</a> + <aclass="trait"href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html"title="trait core::marker::Sync">Sync</a> {
</div></details><h2id="required-methods"class="small-section-header">Required methods<ahref="#required-methods"class="anchor"></a></h2><divclass="methods"><detailsclass="rustdoc-toggle"open><summary><divid="tymethod.to_bytes"class="method has-srclink"><divclass="rightside"><aclass="srclink"href="../../../src/actix_web_httpauth/headers/www_authenticate/challenge/mod.rs.html#11"title="goto source code">[src]</a></div><h4class="code-header">fn <ahref="#tymethod.to_bytes"class="fnname">to_bytes</a>(&self) -> Bytes</h4></div></summary><divclass="docblock"><p>Converts the challenge into a bytes suitable for HTTP transmission.</p>