mirror of
https://github.com/actix/actix-website
synced 2025-07-01 01:04:27 +02:00
update stable docs
This commit is contained in:
@ -8,19 +8,19 @@
|
||||
<h2 id='implementations' class='small-section-header'>
|
||||
Trait Implementations<a href='#implementations' class='anchor'></a>
|
||||
</h2>
|
||||
<div id='implementations-list'><h3 id='impl-ActorFuture' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl<A: <a class="trait" href="../../actix_web/actix/actix/trait.Actor.html" title="trait actix_web::actix::actix::Actor">Actor</a>> <a class="trait" href="../../actix_web/actix/actix/dev/trait.ActorFuture.html" title="trait actix_web::actix::actix::dev::ActorFuture">ActorFuture</a> for <a class="struct" href="../../actix_web/dev/struct.Drain.html" title="struct actix_web::dev::Drain">Drain</a><A></code><a href='#impl-ActorFuture' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/actix_web/context.rs.html#283-294' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='associatedtype.Item' class="type"><span id='Item.t' class='invisible'><code>type <a href='../../actix_web/actix/actix/dev/trait.ActorFuture.html#associatedtype.Item' class="type">Item</a> = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a></code></span></h4>
|
||||
<div class='docblock'><p>The type of value that this future will resolved with if it is successful. <a href="../../actix_web/actix/actix/dev/trait.ActorFuture.html#associatedtype.Item">Read more</a></p>
|
||||
</div><h4 id='associatedtype.Error' class="type"><span id='Error.t' class='invisible'><code>type <a href='../../actix_web/actix/actix/dev/trait.ActorFuture.html#associatedtype.Error' class="type">Error</a> = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a></code></span></h4>
|
||||
<div class='docblock'><p>The type of error that this future will resolve with if it fails in a normal fashion. <a href="../../actix_web/actix/actix/dev/trait.ActorFuture.html#associatedtype.Error">Read more</a></p>
|
||||
</div><h4 id='associatedtype.Actor' class="type"><span id='Actor.t' class='invisible'><code>type <a href='../../actix_web/actix/actix/dev/trait.ActorFuture.html#associatedtype.Actor' class="type">Actor</a> = A</code></span></h4>
|
||||
<div id='implementations-list'><h3 id='impl-ActorFuture' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl<A: <a class="trait" href="../../actix_web/actix/actix/trait.Actor.html" title="trait actix_web::actix::actix::Actor">Actor</a>> <a class="trait" href="../../actix_web/actix/actix/trait.ActorFuture.html" title="trait actix_web::actix::actix::ActorFuture">ActorFuture</a> for <a class="struct" href="../../actix_web/dev/struct.Drain.html" title="struct actix_web::dev::Drain">Drain</a><A></code><a href='#impl-ActorFuture' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/actix_web/context.rs.html#283-294' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='associatedtype.Item' class="type"><span id='Item.t' class='invisible'><code>type <a href='../../actix_web/actix/actix/trait.ActorFuture.html#associatedtype.Item' class="type">Item</a> = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a></code></span></h4>
|
||||
<div class='docblock'><p>The type of value that this future will resolved with if it is successful. <a href="../../actix_web/actix/actix/trait.ActorFuture.html#associatedtype.Item">Read more</a></p>
|
||||
</div><h4 id='associatedtype.Error' class="type"><span id='Error.t' class='invisible'><code>type <a href='../../actix_web/actix/actix/trait.ActorFuture.html#associatedtype.Error' class="type">Error</a> = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a></code></span></h4>
|
||||
<div class='docblock'><p>The type of error that this future will resolve with if it fails in a normal fashion. <a href="../../actix_web/actix/actix/trait.ActorFuture.html#associatedtype.Error">Read more</a></p>
|
||||
</div><h4 id='associatedtype.Actor' class="type"><span id='Actor.t' class='invisible'><code>type <a href='../../actix_web/actix/actix/trait.ActorFuture.html#associatedtype.Actor' class="type">Actor</a> = A</code></span></h4>
|
||||
<div class='docblock'><p>The actor within which this future runs</p>
|
||||
</div><h4 id='method.poll' class="method"><span id='poll.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../../actix_web/actix/actix/dev/trait.ActorFuture.html#tymethod.poll' class='fnname'>poll</a>(<br> &mut self, <br> _: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>A, <br> _: &mut <Self::<a class="type" href="../../actix_web/actix/actix/dev/trait.ActorFuture.html#associatedtype.Actor" title="type actix_web::actix::actix::dev::ActorFuture::Actor">Actor</a> as <a class="trait" href="../../actix_web/actix/actix/trait.Actor.html" title="trait actix_web::actix::actix::Actor">Actor</a>>::<a class="type" href="../../actix_web/actix/actix/trait.Actor.html#associatedtype.Context" title="type actix_web::actix::actix::Actor::Context">Context</a><br>) -> <a class="type" href="https://docs.rs/futures/0.1/futures/poll/type.Poll.html" title="type futures::poll::Poll">Poll</a><Self::<a class="type" href="../../actix_web/actix/actix/dev/trait.ActorFuture.html#associatedtype.Item" title="type actix_web::actix::actix::dev::ActorFuture::Item">Item</a>, Self::<a class="type" href="../../actix_web/actix/actix/dev/trait.ActorFuture.html#associatedtype.Error" title="type actix_web::actix::actix::dev::ActorFuture::Error">Error</a>></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/actix_web/context.rs.html#289-293' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><h4 id='method.map' class="method"><span id='map.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../../actix_web/actix/actix/dev/trait.ActorFuture.html#method.map' class='fnname'>map</a><F, U>(self, f: F) -> <a class="struct" href="../../actix_web/actix/actix/dev/fut/struct.Map.html" title="struct actix_web::actix::actix::dev::fut::Map">Map</a><Self, F> <span class="where fmt-newline">where<br> F: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>(Self::<a class="type" href="../../actix_web/actix/actix/dev/trait.ActorFuture.html#associatedtype.Item" title="type actix_web::actix::actix::dev::ActorFuture::Item">Item</a>, &mut Self::<a class="type" href="../../actix_web/actix/actix/dev/trait.ActorFuture.html#associatedtype.Actor" title="type actix_web::actix::actix::dev::ActorFuture::Actor">Actor</a>, &mut <Self::<a class="type" href="../../actix_web/actix/actix/dev/trait.ActorFuture.html#associatedtype.Actor" title="type actix_web::actix::actix::dev::ActorFuture::Actor">Actor</a> as <a class="trait" href="../../actix_web/actix/actix/trait.Actor.html" title="trait actix_web::actix::actix::Actor">Actor</a>>::<a class="type" href="../../actix_web/actix/actix/trait.Actor.html#associatedtype.Context" title="type actix_web::actix::actix::Actor::Context">Context</a>) -> U, </span></code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>Map this future's result to a different type, returning a new future of the resulting type. <a href="../../actix_web/actix/actix/dev/trait.ActorFuture.html#method.map">Read more</a></p>
|
||||
</div><h4 id='method.map_err' class="method"><span id='map_err.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../../actix_web/actix/actix/dev/trait.ActorFuture.html#method.map_err' class='fnname'>map_err</a><F, E>(self, f: F) -> <a class="struct" href="../../actix_web/actix/actix/dev/fut/struct.MapErr.html" title="struct actix_web::actix::actix::dev::fut::MapErr">MapErr</a><Self, F> <span class="where fmt-newline">where<br> F: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>(Self::<a class="type" href="../../actix_web/actix/actix/dev/trait.ActorFuture.html#associatedtype.Error" title="type actix_web::actix::actix::dev::ActorFuture::Error">Error</a>, &mut Self::<a class="type" href="../../actix_web/actix/actix/dev/trait.ActorFuture.html#associatedtype.Actor" title="type actix_web::actix::actix::dev::ActorFuture::Actor">Actor</a>, &mut <Self::<a class="type" href="../../actix_web/actix/actix/dev/trait.ActorFuture.html#associatedtype.Actor" title="type actix_web::actix::actix::dev::ActorFuture::Actor">Actor</a> as <a class="trait" href="../../actix_web/actix/actix/trait.Actor.html" title="trait actix_web::actix::actix::Actor">Actor</a>>::<a class="type" href="../../actix_web/actix/actix/trait.Actor.html#associatedtype.Context" title="type actix_web::actix::actix::Actor::Context">Context</a>) -> E, </span></code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>Map this future's error to a different error, returning a new future.</p>
|
||||
</div><h4 id='method.drop_err' class="method"><span id='drop_err.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../../actix_web/actix/actix/dev/trait.ActorFuture.html#method.drop_err' class='fnname'>drop_err</a>(self) -> <a class="struct" href="../../actix_web/actix/actix/dev/fut/struct.DropErr.html" title="struct actix_web::actix::actix::dev::fut::DropErr">DropErr</a><Self></code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>Drop this future's error, returning a new future.</p>
|
||||
</div><h4 id='method.from_err' class="method"><span id='from_err.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../../actix_web/actix/actix/dev/trait.ActorFuture.html#method.from_err' class='fnname'>from_err</a><E>(self) -> <a class="struct" href="../../actix_web/actix/actix/dev/fut/struct.FromErr.html" title="struct actix_web::actix::actix::dev::fut::FromErr">FromErr</a><Self, E> <span class="where fmt-newline">where<br> E: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><Self::<a class="type" href="../../actix_web/actix/actix/dev/trait.ActorFuture.html#associatedtype.Error" title="type actix_web::actix::actix::dev::ActorFuture::Error">Error</a>>, </span></code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>Map this future's error to any error implementing <code>From</code> for this future's <code>Error</code>, returning a new future. <a href="../../actix_web/actix/actix/dev/trait.ActorFuture.html#method.from_err">Read more</a></p>
|
||||
</div><h4 id='method.then' class="method"><span id='then.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../../actix_web/actix/actix/dev/trait.ActorFuture.html#method.then' class='fnname'>then</a><F, B>(self, f: F) -> <a class="struct" href="../../actix_web/actix/actix/dev/fut/struct.Then.html" title="struct actix_web::actix::actix::dev::fut::Then">Then</a><Self, B, F> <span class="where fmt-newline">where<br> B: <a class="trait" href="../../actix_web/actix/actix/dev/fut/trait.IntoActorFuture.html" title="trait actix_web::actix::actix::dev::fut::IntoActorFuture">IntoActorFuture</a><Actor = Self::<a class="type" href="../../actix_web/actix/actix/dev/trait.ActorFuture.html#associatedtype.Actor" title="type actix_web::actix::actix::dev::ActorFuture::Actor">Actor</a>>,<br> F: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>(<a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><Self::<a class="type" href="../../actix_web/actix/actix/dev/trait.ActorFuture.html#associatedtype.Item" title="type actix_web::actix::actix::dev::ActorFuture::Item">Item</a>, Self::<a class="type" href="../../actix_web/actix/actix/dev/trait.ActorFuture.html#associatedtype.Error" title="type actix_web::actix::actix::dev::ActorFuture::Error">Error</a>>, &mut Self::<a class="type" href="../../actix_web/actix/actix/dev/trait.ActorFuture.html#associatedtype.Actor" title="type actix_web::actix::actix::dev::ActorFuture::Actor">Actor</a>, &mut <Self::<a class="type" href="../../actix_web/actix/actix/dev/trait.ActorFuture.html#associatedtype.Actor" title="type actix_web::actix::actix::dev::ActorFuture::Actor">Actor</a> as <a class="trait" href="../../actix_web/actix/actix/trait.Actor.html" title="trait actix_web::actix::actix::Actor">Actor</a>>::<a class="type" href="../../actix_web/actix/actix/trait.Actor.html#associatedtype.Context" title="type actix_web::actix::actix::Actor::Context">Context</a>) -> B, </span></code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>Chain on a computation for when a future finished, passing the result of the future to the provided closure <code>f</code>. <a href="../../actix_web/actix/actix/dev/trait.ActorFuture.html#method.then">Read more</a></p>
|
||||
</div><h4 id='method.and_then' class="method"><span id='and_then.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../../actix_web/actix/actix/dev/trait.ActorFuture.html#method.and_then' class='fnname'>and_then</a><F, B>(self, f: F) -> <a class="struct" href="../../actix_web/actix/actix/dev/fut/struct.AndThen.html" title="struct actix_web::actix::actix::dev::fut::AndThen">AndThen</a><Self, B, F> <span class="where fmt-newline">where<br> B: <a class="trait" href="../../actix_web/actix/actix/dev/fut/trait.IntoActorFuture.html" title="trait actix_web::actix::actix::dev::fut::IntoActorFuture">IntoActorFuture</a><Error = Self::<a class="type" href="../../actix_web/actix/actix/dev/trait.ActorFuture.html#associatedtype.Error" title="type actix_web::actix::actix::dev::ActorFuture::Error">Error</a>, Actor = Self::<a class="type" href="../../actix_web/actix/actix/dev/trait.ActorFuture.html#associatedtype.Actor" title="type actix_web::actix::actix::dev::ActorFuture::Actor">Actor</a>>,<br> F: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>(Self::<a class="type" href="../../actix_web/actix/actix/dev/trait.ActorFuture.html#associatedtype.Item" title="type actix_web::actix::actix::dev::ActorFuture::Item">Item</a>, &mut Self::<a class="type" href="../../actix_web/actix/actix/dev/trait.ActorFuture.html#associatedtype.Actor" title="type actix_web::actix::actix::dev::ActorFuture::Actor">Actor</a>, &mut <Self::<a class="type" href="../../actix_web/actix/actix/dev/trait.ActorFuture.html#associatedtype.Actor" title="type actix_web::actix::actix::dev::ActorFuture::Actor">Actor</a> as <a class="trait" href="../../actix_web/actix/actix/trait.Actor.html" title="trait actix_web::actix::actix::Actor">Actor</a>>::<a class="type" href="../../actix_web/actix/actix/trait.Actor.html#associatedtype.Context" title="type actix_web::actix::actix::Actor::Context">Context</a>) -> B, </span></code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>Execute another future after this one has resolved successfully.</p>
|
||||
</div><h4 id='method.timeout' class="method"><span id='timeout.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../../actix_web/actix/actix/dev/trait.ActorFuture.html#method.timeout' class='fnname'>timeout</a>(self, timeout: <a class="struct" href="https://doc.rust-lang.org/nightly/core/time/struct.Duration.html" title="struct core::time::Duration">Duration</a>, err: Self::<a class="type" href="../../actix_web/actix/actix/dev/trait.ActorFuture.html#associatedtype.Error" title="type actix_web::actix::actix::dev::ActorFuture::Error">Error</a>) -> <a class="struct" href="../../actix_web/actix/actix/dev/fut/struct.Timeout.html" title="struct actix_web::actix::actix::dev::fut::Timeout">Timeout</a><Self></code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>Add timeout to futures chain. <a href="../../actix_web/actix/actix/dev/trait.ActorFuture.html#method.timeout">Read more</a></p>
|
||||
</div><h4 id='method.poll' class="method"><span id='poll.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../../actix_web/actix/actix/trait.ActorFuture.html#tymethod.poll' class='fnname'>poll</a>(<br> &mut self, <br> _: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>A, <br> _: &mut <Self::<a class="type" href="../../actix_web/actix/actix/trait.ActorFuture.html#associatedtype.Actor" title="type actix_web::actix::actix::ActorFuture::Actor">Actor</a> as <a class="trait" href="../../actix_web/actix/actix/trait.Actor.html" title="trait actix_web::actix::actix::Actor">Actor</a>>::<a class="type" href="../../actix_web/actix/actix/trait.Actor.html#associatedtype.Context" title="type actix_web::actix::actix::Actor::Context">Context</a><br>) -> <a class="type" href="https://docs.rs/futures/0.1/futures/poll/type.Poll.html" title="type futures::poll::Poll">Poll</a><Self::<a class="type" href="../../actix_web/actix/actix/trait.ActorFuture.html#associatedtype.Item" title="type actix_web::actix::actix::ActorFuture::Item">Item</a>, Self::<a class="type" href="../../actix_web/actix/actix/trait.ActorFuture.html#associatedtype.Error" title="type actix_web::actix::actix::ActorFuture::Error">Error</a>></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/actix_web/context.rs.html#289-293' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><h4 id='method.map' class="method"><span id='map.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../../actix_web/actix/actix/trait.ActorFuture.html#method.map' class='fnname'>map</a><F, U>(self, f: F) -> <a class="struct" href="../../actix_web/actix/actix/fut/struct.Map.html" title="struct actix_web::actix::actix::fut::Map">Map</a><Self, F> <span class="where fmt-newline">where<br> F: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>(Self::<a class="type" href="../../actix_web/actix/actix/trait.ActorFuture.html#associatedtype.Item" title="type actix_web::actix::actix::ActorFuture::Item">Item</a>, &mut Self::<a class="type" href="../../actix_web/actix/actix/trait.ActorFuture.html#associatedtype.Actor" title="type actix_web::actix::actix::ActorFuture::Actor">Actor</a>, &mut <Self::<a class="type" href="../../actix_web/actix/actix/trait.ActorFuture.html#associatedtype.Actor" title="type actix_web::actix::actix::ActorFuture::Actor">Actor</a> as <a class="trait" href="../../actix_web/actix/actix/trait.Actor.html" title="trait actix_web::actix::actix::Actor">Actor</a>>::<a class="type" href="../../actix_web/actix/actix/trait.Actor.html#associatedtype.Context" title="type actix_web::actix::actix::Actor::Context">Context</a>) -> U, </span></code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>Map this future's result to a different type, returning a new future of the resulting type. <a href="../../actix_web/actix/actix/trait.ActorFuture.html#method.map">Read more</a></p>
|
||||
</div><h4 id='method.map_err' class="method"><span id='map_err.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../../actix_web/actix/actix/trait.ActorFuture.html#method.map_err' class='fnname'>map_err</a><F, E>(self, f: F) -> <a class="struct" href="../../actix_web/actix/actix/fut/struct.MapErr.html" title="struct actix_web::actix::actix::fut::MapErr">MapErr</a><Self, F> <span class="where fmt-newline">where<br> F: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>(Self::<a class="type" href="../../actix_web/actix/actix/trait.ActorFuture.html#associatedtype.Error" title="type actix_web::actix::actix::ActorFuture::Error">Error</a>, &mut Self::<a class="type" href="../../actix_web/actix/actix/trait.ActorFuture.html#associatedtype.Actor" title="type actix_web::actix::actix::ActorFuture::Actor">Actor</a>, &mut <Self::<a class="type" href="../../actix_web/actix/actix/trait.ActorFuture.html#associatedtype.Actor" title="type actix_web::actix::actix::ActorFuture::Actor">Actor</a> as <a class="trait" href="../../actix_web/actix/actix/trait.Actor.html" title="trait actix_web::actix::actix::Actor">Actor</a>>::<a class="type" href="../../actix_web/actix/actix/trait.Actor.html#associatedtype.Context" title="type actix_web::actix::actix::Actor::Context">Context</a>) -> E, </span></code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>Map this future's error to a different error, returning a new future.</p>
|
||||
</div><h4 id='method.drop_err' class="method"><span id='drop_err.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../../actix_web/actix/actix/trait.ActorFuture.html#method.drop_err' class='fnname'>drop_err</a>(self) -> <a class="struct" href="../../actix_web/actix/actix/fut/struct.DropErr.html" title="struct actix_web::actix::actix::fut::DropErr">DropErr</a><Self></code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>Drop this future's error, returning a new future.</p>
|
||||
</div><h4 id='method.from_err' class="method"><span id='from_err.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../../actix_web/actix/actix/trait.ActorFuture.html#method.from_err' class='fnname'>from_err</a><E>(self) -> <a class="struct" href="../../actix_web/actix/actix/fut/struct.FromErr.html" title="struct actix_web::actix::actix::fut::FromErr">FromErr</a><Self, E> <span class="where fmt-newline">where<br> E: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><Self::<a class="type" href="../../actix_web/actix/actix/trait.ActorFuture.html#associatedtype.Error" title="type actix_web::actix::actix::ActorFuture::Error">Error</a>>, </span></code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>Map this future's error to any error implementing <code>From</code> for this future's <code>Error</code>, returning a new future. <a href="../../actix_web/actix/actix/trait.ActorFuture.html#method.from_err">Read more</a></p>
|
||||
</div><h4 id='method.then' class="method"><span id='then.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../../actix_web/actix/actix/trait.ActorFuture.html#method.then' class='fnname'>then</a><F, B>(self, f: F) -> <a class="struct" href="../../actix_web/actix/actix/fut/struct.Then.html" title="struct actix_web::actix::actix::fut::Then">Then</a><Self, B, F> <span class="where fmt-newline">where<br> B: <a class="trait" href="../../actix_web/actix/actix/fut/trait.IntoActorFuture.html" title="trait actix_web::actix::actix::fut::IntoActorFuture">IntoActorFuture</a><Actor = Self::<a class="type" href="../../actix_web/actix/actix/trait.ActorFuture.html#associatedtype.Actor" title="type actix_web::actix::actix::ActorFuture::Actor">Actor</a>>,<br> F: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>(<a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><Self::<a class="type" href="../../actix_web/actix/actix/trait.ActorFuture.html#associatedtype.Item" title="type actix_web::actix::actix::ActorFuture::Item">Item</a>, Self::<a class="type" href="../../actix_web/actix/actix/trait.ActorFuture.html#associatedtype.Error" title="type actix_web::actix::actix::ActorFuture::Error">Error</a>>, &mut Self::<a class="type" href="../../actix_web/actix/actix/trait.ActorFuture.html#associatedtype.Actor" title="type actix_web::actix::actix::ActorFuture::Actor">Actor</a>, &mut <Self::<a class="type" href="../../actix_web/actix/actix/trait.ActorFuture.html#associatedtype.Actor" title="type actix_web::actix::actix::ActorFuture::Actor">Actor</a> as <a class="trait" href="../../actix_web/actix/actix/trait.Actor.html" title="trait actix_web::actix::actix::Actor">Actor</a>>::<a class="type" href="../../actix_web/actix/actix/trait.Actor.html#associatedtype.Context" title="type actix_web::actix::actix::Actor::Context">Context</a>) -> B, </span></code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>Chain on a computation for when a future finished, passing the result of the future to the provided closure <code>f</code>. <a href="../../actix_web/actix/actix/trait.ActorFuture.html#method.then">Read more</a></p>
|
||||
</div><h4 id='method.and_then' class="method"><span id='and_then.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../../actix_web/actix/actix/trait.ActorFuture.html#method.and_then' class='fnname'>and_then</a><F, B>(self, f: F) -> <a class="struct" href="../../actix_web/actix/actix/fut/struct.AndThen.html" title="struct actix_web::actix::actix::fut::AndThen">AndThen</a><Self, B, F> <span class="where fmt-newline">where<br> B: <a class="trait" href="../../actix_web/actix/actix/fut/trait.IntoActorFuture.html" title="trait actix_web::actix::actix::fut::IntoActorFuture">IntoActorFuture</a><Error = Self::<a class="type" href="../../actix_web/actix/actix/trait.ActorFuture.html#associatedtype.Error" title="type actix_web::actix::actix::ActorFuture::Error">Error</a>, Actor = Self::<a class="type" href="../../actix_web/actix/actix/trait.ActorFuture.html#associatedtype.Actor" title="type actix_web::actix::actix::ActorFuture::Actor">Actor</a>>,<br> F: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>(Self::<a class="type" href="../../actix_web/actix/actix/trait.ActorFuture.html#associatedtype.Item" title="type actix_web::actix::actix::ActorFuture::Item">Item</a>, &mut Self::<a class="type" href="../../actix_web/actix/actix/trait.ActorFuture.html#associatedtype.Actor" title="type actix_web::actix::actix::ActorFuture::Actor">Actor</a>, &mut <Self::<a class="type" href="../../actix_web/actix/actix/trait.ActorFuture.html#associatedtype.Actor" title="type actix_web::actix::actix::ActorFuture::Actor">Actor</a> as <a class="trait" href="../../actix_web/actix/actix/trait.Actor.html" title="trait actix_web::actix::actix::Actor">Actor</a>>::<a class="type" href="../../actix_web/actix/actix/trait.Actor.html#associatedtype.Context" title="type actix_web::actix::actix::Actor::Context">Context</a>) -> B, </span></code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>Execute another future after this one has resolved successfully.</p>
|
||||
</div><h4 id='method.timeout' class="method"><span id='timeout.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../../actix_web/actix/actix/trait.ActorFuture.html#method.timeout' class='fnname'>timeout</a>(self, timeout: <a class="struct" href="https://doc.rust-lang.org/nightly/core/time/struct.Duration.html" title="struct core::time::Duration">Duration</a>, err: Self::<a class="type" href="../../actix_web/actix/actix/trait.ActorFuture.html#associatedtype.Error" title="type actix_web::actix::actix::ActorFuture::Error">Error</a>) -> <a class="struct" href="../../actix_web/actix/actix/fut/struct.Timeout.html" title="struct actix_web::actix::actix::fut::Timeout">Timeout</a><Self></code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>Add timeout to futures chain. <a href="../../actix_web/actix/actix/trait.ActorFuture.html#method.timeout">Read more</a></p>
|
||||
</div></div></div>
|
||||
<h2 id='synthetic-implementations' class='small-section-header'>
|
||||
Auto Trait Implementations<a href='#synthetic-implementations' class='anchor'></a>
|
||||
|
Reference in New Issue
Block a user