1
0
mirror of https://github.com/actix/actix-website synced 2025-06-29 16:24:58 +02:00

Add api docs

This commit is contained in:
Nikolay Kim
2018-07-21 04:09:47 -07:00
parent 35a9469409
commit 52a58cc626
5528 changed files with 266014 additions and 0 deletions

View File

@ -0,0 +1,10 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=struct.App.html">
</head>
<body>
<p>Redirecting to <a href="struct.App.html">struct.App.html</a>...</p>
<script>location.replace("struct.App.html" + location.search + location.hash);</script>
</body>
</html>

View File

@ -0,0 +1,10 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=trait.AsyncResponder.html">
</head>
<body>
<p>Redirecting to <a href="trait.AsyncResponder.html">trait.AsyncResponder.html</a>...</p>
<script>location.replace("trait.AsyncResponder.html" + location.search + location.hash);</script>
</body>
</html>

View File

@ -0,0 +1,10 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=enum.Binary.html">
</head>
<body>
<p>Redirecting to <a href="enum.Binary.html">enum.Binary.html</a>...</p>
<script>location.replace("enum.Binary.html" + location.search + location.hash);</script>
</body>
</html>

View File

@ -0,0 +1,10 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=enum.Body.html">
</head>
<body>
<p>Redirecting to <a href="enum.Body.html">enum.Body.html</a>...</p>
<script>location.replace("enum.Body.html" + location.search + location.hash);</script>
</body>
</html>

View File

@ -0,0 +1,10 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=enum.Either.html">
</head>
<body>
<p>Redirecting to <a href="enum.Either.html">enum.Either.html</a>...</p>
<script>location.replace("enum.Either.html" + location.search + location.hash);</script>
</body>
</html>

View File

@ -0,0 +1,10 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=struct.Extensions.html">
</head>
<body>
<p>Redirecting to <a href="struct.Extensions.html">struct.Extensions.html</a>...</p>
<script>location.replace("struct.Extensions.html" + location.search + location.hash);</script>
</body>
</html>

View File

@ -0,0 +1,10 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=struct.Form.html">
</head>
<body>
<p>Redirecting to <a href="struct.Form.html">struct.Form.html</a>...</p>
<script>location.replace("struct.Form.html" + location.search + location.hash);</script>
</body>
</html>

View File

@ -0,0 +1,10 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=trait.FromRequest.html">
</head>
<body>
<p>Redirecting to <a href="trait.FromRequest.html">trait.FromRequest.html</a>...</p>
<script>location.replace("trait.FromRequest.html" + location.search + location.hash);</script>
</body>
</html>

View File

@ -0,0 +1,10 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=type.FutureResponse.html">
</head>
<body>
<p>Redirecting to <a href="type.FutureResponse.html">type.FutureResponse.html</a>...</p>
<script>location.replace("type.FutureResponse.html" + location.search + location.hash);</script>
</body>
</html>

View File

@ -0,0 +1,10 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=struct.HttpContext.html">
</head>
<body>
<p>Redirecting to <a href="struct.HttpContext.html">struct.HttpContext.html</a>...</p>
<script>location.replace("struct.HttpContext.html" + location.search + location.hash);</script>
</body>
</html>

View File

@ -0,0 +1,10 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=trait.HttpMessage.html">
</head>
<body>
<p>Redirecting to <a href="trait.HttpMessage.html">trait.HttpMessage.html</a>...</p>
<script>location.replace("trait.HttpMessage.html" + location.search + location.hash);</script>
</body>
</html>

View File

@ -0,0 +1,10 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=struct.HttpRequest.html">
</head>
<body>
<p>Redirecting to <a href="struct.HttpRequest.html">struct.HttpRequest.html</a>...</p>
<script>location.replace("struct.HttpRequest.html" + location.search + location.hash);</script>
</body>
</html>

View File

@ -0,0 +1,10 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=struct.HttpResponse.html">
</head>
<body>
<p>Redirecting to <a href="struct.HttpResponse.html">struct.HttpResponse.html</a>...</p>
<script>location.replace("struct.HttpResponse.html" + location.search + location.hash);</script>
</body>
</html>

View File

@ -0,0 +1,10 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=struct.Json.html">
</head>
<body>
<p>Redirecting to <a href="struct.Json.html">struct.Json.html</a>...</p>
<script>location.replace("struct.Json.html" + location.search + location.hash);</script>
</body>
</html>

View File

@ -0,0 +1,10 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=struct.Path.html">
</head>
<body>
<p>Redirecting to <a href="struct.Path.html">struct.Path.html</a>...</p>
<script>location.replace("struct.Path.html" + location.search + location.hash);</script>
</body>
</html>

View File

@ -0,0 +1,10 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=struct.Query.html">
</head>
<body>
<p>Redirecting to <a href="struct.Query.html">struct.Query.html</a>...</p>
<script>location.replace("struct.Query.html" + location.search + location.hash);</script>
</body>
</html>

View File

@ -0,0 +1,10 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=struct.Request.html">
</head>
<body>
<p>Redirecting to <a href="struct.Request.html">struct.Request.html</a>...</p>
<script>location.replace("struct.Request.html" + location.search + location.hash);</script>
</body>
</html>

View File

@ -0,0 +1,10 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=trait.Responder.html">
</head>
<body>
<p>Redirecting to <a href="trait.Responder.html">trait.Responder.html</a>...</p>
<script>location.replace("trait.Responder.html" + location.search + location.hash);</script>
</body>
</html>

View File

@ -0,0 +1,10 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=struct.Scope.html">
</head>
<body>
<p>Redirecting to <a href="struct.Scope.html">struct.Scope.html</a>...</p>
<script>location.replace("struct.Scope.html" + location.search + location.hash);</script>
</body>
</html>

View File

@ -0,0 +1,10 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=struct.State.html">
</head>
<body>
<p>Redirecting to <a href="struct.State.html">struct.State.html</a>...</p>
<script>location.replace("struct.State.html" + location.search + location.hash);</script>
</body>
</html>

View File

@ -0,0 +1,10 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=trait.Actor.html">
</head>
<body>
<p>Redirecting to <a href="trait.Actor.html">trait.Actor.html</a>...</p>
<script>location.replace("trait.Actor.html" + location.search + location.hash);</script>
</body>
</html>

View File

@ -0,0 +1,10 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=enum.ActorState.html">
</head>
<body>
<p>Redirecting to <a href="enum.ActorState.html">enum.ActorState.html</a>...</p>
<script>location.replace("enum.ActorState.html" + location.search + location.hash);</script>
</body>
</html>

View File

@ -0,0 +1,10 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=struct.Addr.html">
</head>
<body>
<p>Redirecting to <a href="struct.Addr.html">struct.Addr.html</a>...</p>
<script>location.replace("struct.Addr.html" + location.search + location.hash);</script>
</body>
</html>

View File

@ -0,0 +1,10 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=struct.Condition.html">
</head>
<body>
<p>Redirecting to <a href="struct.Condition.html">struct.Condition.html</a>...</p>
<script>location.replace("struct.Condition.html" + location.search + location.hash);</script>
</body>
</html>

View File

@ -0,0 +1,10 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=struct.Context.html">
</head>
<body>
<p>Redirecting to <a href="struct.Context.html">struct.Context.html</a>...</p>
<script>location.replace("struct.Context.html" + location.search + location.hash);</script>
</body>
</html>

View File

@ -0,0 +1,10 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=trait.ContextFutureSpawner.html">
</head>
<body>
<p>Redirecting to <a href="trait.ContextFutureSpawner.html">trait.ContextFutureSpawner.html</a>...</p>
<script>location.replace("trait.ContextFutureSpawner.html" + location.search + location.hash);</script>
</body>
</html>

View File

@ -0,0 +1,10 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=enum.MailboxError.html">
</head>
<body>
<p>Redirecting to <a href="enum.MailboxError.html">enum.MailboxError.html</a>...</p>
<script>location.replace("enum.MailboxError.html" + location.search + location.hash);</script>
</body>
</html>

View File

@ -0,0 +1,10 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=struct.MessageResult.html">
</head>
<body>
<p>Redirecting to <a href="struct.MessageResult.html">struct.MessageResult.html</a>...</p>
<script>location.replace("struct.MessageResult.html" + location.search + location.hash);</script>
</body>
</html>

View File

@ -0,0 +1,10 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=type.ResponseActFuture.html">
</head>
<body>
<p>Redirecting to <a href="type.ResponseActFuture.html">type.ResponseActFuture.html</a>...</p>
<script>location.replace("type.ResponseActFuture.html" + location.search + location.hash);</script>
</body>
</html>

View File

@ -0,0 +1,10 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=enum.Running.html">
</head>
<body>
<p>Redirecting to <a href="enum.Running.html">enum.Running.html</a>...</p>
<script>location.replace("enum.Running.html" + location.search + location.hash);</script>
</body>
</html>

View File

@ -0,0 +1,10 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=enum.SendError.html">
</head>
<body>
<p>Redirecting to <a href="enum.SendError.html">enum.SendError.html</a>...</p>
<script>location.replace("enum.SendError.html" + location.search + location.hash);</script>
</body>
</html>

View File

@ -0,0 +1,10 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=trait.Supervised.html">
</head>
<body>
<p>Redirecting to <a href="trait.Supervised.html">trait.Supervised.html</a>...</p>
<script>location.replace("trait.Supervised.html" + location.search + location.hash);</script>
</body>
</html>

View File

@ -0,0 +1,10 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=struct.Supervisor.html">
</head>
<body>
<p>Redirecting to <a href="struct.Supervisor.html">struct.Supervisor.html</a>...</p>
<script>location.replace("struct.Supervisor.html" + location.search + location.hash);</script>
</body>
</html>

View File

@ -0,0 +1,10 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=struct.SyncArbiter.html">
</head>
<body>
<p>Redirecting to <a href="struct.SyncArbiter.html">struct.SyncArbiter.html</a>...</p>
<script>location.replace("struct.SyncArbiter.html" + location.search + location.hash);</script>
</body>
</html>

View File

@ -0,0 +1,10 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=trait.SystemService.html">
</head>
<body>
<p>Redirecting to <a href="trait.SystemService.html">trait.SystemService.html</a>...</p>
<script>location.replace("trait.SystemService.html" + location.search + location.hash);</script>
</body>
</html>

View File

@ -0,0 +1,10 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=trait.WrapFuture.html">
</head>
<body>
<p>Redirecting to <a href="trait.WrapFuture.html">trait.WrapFuture.html</a>...</p>
<script>location.replace("trait.WrapFuture.html" + location.search + location.hash);</script>
</body>
</html>

View File

@ -0,0 +1,10 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=trait.ActorContext.html">
</head>
<body>
<p>Redirecting to <a href="trait.ActorContext.html">trait.ActorContext.html</a>...</p>
<script>location.replace("trait.ActorContext.html" + location.search + location.hash);</script>
</body>
</html>

View File

@ -0,0 +1,10 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=trait.ActorFuture.html">
</head>
<body>
<p>Redirecting to <a href="trait.ActorFuture.html">trait.ActorFuture.html</a>...</p>
<script>location.replace("trait.ActorFuture.html" + location.search + location.hash);</script>
</body>
</html>

View File

@ -0,0 +1,10 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=struct.ActorResponse.html">
</head>
<body>
<p>Redirecting to <a href="struct.ActorResponse.html">struct.ActorResponse.html</a>...</p>
<script>location.replace("struct.ActorResponse.html" + location.search + location.hash);</script>
</body>
</html>

View File

@ -0,0 +1,10 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=trait.ActorStream.html">
</head>
<body>
<p>Redirecting to <a href="trait.ActorStream.html">trait.ActorStream.html</a>...</p>
<script>location.replace("trait.ActorStream.html" + location.search + location.hash);</script>
</body>
</html>

View File

@ -0,0 +1,10 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=struct.Arbiter.html">
</head>
<body>
<p>Redirecting to <a href="struct.Arbiter.html">struct.Arbiter.html</a>...</p>
<script>location.replace("struct.Arbiter.html" + location.search + location.hash);</script>
</body>
</html>

View File

@ -0,0 +1,10 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=trait.ArbiterService.html">
</head>
<body>
<p>Redirecting to <a href="trait.ArbiterService.html">trait.ArbiterService.html</a>...</p>
<script>location.replace("trait.ArbiterService.html" + location.search + location.hash);</script>
</body>
</html>

View File

@ -0,0 +1,10 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=trait.AsyncContext.html">
</head>
<body>
<p>Redirecting to <a href="trait.AsyncContext.html">trait.AsyncContext.html</a>...</p>
<script>location.replace("trait.AsyncContext.html" + location.search + location.hash);</script>
</body>
</html>

View File

@ -0,0 +1,10 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=trait.AsyncContextParts.html">
</head>
<body>
<p>Redirecting to <a href="trait.AsyncContextParts.html">trait.AsyncContextParts.html</a>...</p>
<script>location.replace("trait.AsyncContextParts.html" + location.search + location.hash);</script>
</body>
</html>

View File

@ -0,0 +1,10 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=struct.ContextFut.html">
</head>
<body>
<p>Redirecting to <a href="struct.ContextFut.html">struct.ContextFut.html</a>...</p>
<script>location.replace("struct.ContextFut.html" + location.search + location.hash);</script>
</body>
</html>

View File

@ -0,0 +1,10 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=struct.ContextParts.html">
</head>
<body>
<p>Redirecting to <a href="struct.ContextParts.html">struct.ContextParts.html</a>...</p>
<script>location.replace("struct.ContextParts.html" + location.search + location.hash);</script>
</body>
</html>

View File

@ -0,0 +1,10 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=struct.Envelope.html">
</head>
<body>
<p>Redirecting to <a href="struct.Envelope.html">struct.Envelope.html</a>...</p>
<script>location.replace("struct.Envelope.html" + location.search + location.hash);</script>
</body>
</html>

View File

@ -0,0 +1,10 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=trait.Handler.html">
</head>
<body>
<p>Redirecting to <a href="trait.Handler.html">trait.Handler.html</a>...</p>
<script>location.replace("trait.Handler.html" + location.search + location.hash);</script>
</body>
</html>

View File

@ -0,0 +1,10 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=struct.Mailbox.html">
</head>
<body>
<p>Redirecting to <a href="struct.Mailbox.html">struct.Mailbox.html</a>...</p>
<script>location.replace("struct.Mailbox.html" + location.search + location.hash);</script>
</body>
</html>

View File

@ -0,0 +1,10 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=trait.Message.html">
</head>
<body>
<p>Redirecting to <a href="trait.Message.html">trait.Message.html</a>...</p>
<script>location.replace("trait.Message.html" + location.search + location.hash);</script>
</body>
</html>

View File

@ -0,0 +1,10 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=trait.MessageResponse.html">
</head>
<body>
<p>Redirecting to <a href="trait.MessageResponse.html">trait.MessageResponse.html</a>...</p>
<script>location.replace("trait.MessageResponse.html" + location.search + location.hash);</script>
</body>
</html>

View File

@ -0,0 +1,10 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=struct.Recipient.html">
</head>
<body>
<p>Redirecting to <a href="struct.Recipient.html">struct.Recipient.html</a>...</p>
<script>location.replace("struct.Recipient.html" + location.search + location.hash);</script>
</body>
</html>

View File

@ -0,0 +1,10 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=struct.RecipientRequest.html">
</head>
<body>
<p>Redirecting to <a href="struct.RecipientRequest.html">struct.RecipientRequest.html</a>...</p>
<script>location.replace("struct.RecipientRequest.html" + location.search + location.hash);</script>
</body>
</html>

View File

@ -0,0 +1,10 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=struct.Registry.html">
</head>
<body>
<p>Redirecting to <a href="struct.Registry.html">struct.Registry.html</a>...</p>
<script>location.replace("struct.Registry.html" + location.search + location.hash);</script>
</body>
</html>

View File

@ -0,0 +1,10 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=struct.Request.html">
</head>
<body>
<p>Redirecting to <a href="struct.Request.html">struct.Request.html</a>...</p>
<script>location.replace("struct.Request.html" + location.search + location.hash);</script>
</body>
</html>

View File

@ -0,0 +1,10 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=struct.Response.html">
</head>
<body>
<p>Redirecting to <a href="struct.Response.html">struct.Response.html</a>...</p>
<script>location.replace("struct.Response.html" + location.search + location.hash);</script>
</body>
</html>

View File

@ -0,0 +1,10 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=trait.ResponseChannel.html">
</head>
<body>
<p>Redirecting to <a href="trait.ResponseChannel.html">trait.ResponseChannel.html</a>...</p>
<script>location.replace("trait.ResponseChannel.html" + location.search + location.hash);</script>
</body>
</html>

View File

@ -0,0 +1,10 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=type.ResponseFuture.html">
</head>
<body>
<p>Redirecting to <a href="type.ResponseFuture.html">type.ResponseFuture.html</a>...</p>
<script>location.replace("type.ResponseFuture.html" + location.search + location.hash);</script>
</body>
</html>

View File

@ -0,0 +1,10 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=struct.SpawnHandle.html">
</head>
<body>
<p>Redirecting to <a href="struct.SpawnHandle.html">struct.SpawnHandle.html</a>...</p>
<script>location.replace("struct.SpawnHandle.html" + location.search + location.hash);</script>
</body>
</html>

View File

@ -0,0 +1,10 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=trait.StreamHandler.html">
</head>
<body>
<p>Redirecting to <a href="trait.StreamHandler.html">trait.StreamHandler.html</a>...</p>
<script>location.replace("trait.StreamHandler.html" + location.search + location.hash);</script>
</body>
</html>

View File

@ -0,0 +1,10 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=struct.SyncContext.html">
</head>
<body>
<p>Redirecting to <a href="struct.SyncContext.html">struct.SyncContext.html</a>...</p>
<script>location.replace("struct.SyncContext.html" + location.search + location.hash);</script>
</body>
</html>

View File

@ -0,0 +1,10 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=struct.System.html">
</head>
<body>
<p>Redirecting to <a href="struct.System.html">struct.System.html</a>...</p>
<script>location.replace("struct.System.html" + location.search + location.hash);</script>
</body>
</html>

View File

@ -0,0 +1,10 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=struct.SystemRegistry.html">
</head>
<body>
<p>Redirecting to <a href="struct.SystemRegistry.html">struct.SystemRegistry.html</a>...</p>
<script>location.replace("struct.SystemRegistry.html" + location.search + location.hash);</script>
</body>
</html>

View File

@ -0,0 +1,10 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=trait.ToEnvelope.html">
</head>
<body>
<p>Redirecting to <a href="trait.ToEnvelope.html">trait.ToEnvelope.html</a>...</p>
<script>location.replace("trait.ToEnvelope.html" + location.search + location.hash);</script>
</body>
</html>

View File

@ -0,0 +1,10 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=trait.WrapStream.html">
</head>
<body>
<p>Redirecting to <a href="trait.WrapStream.html">trait.WrapStream.html</a>...</p>
<script>location.replace("trait.WrapStream.html" + location.search + location.hash);</script>
</body>
</html>

View File

@ -0,0 +1,19 @@
<!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 `actors` mod in crate `actix_web`."><meta name="keywords" content="rust, rustlang, rust-lang, actors"><title>actix_web::actix::actix::dev::actors - 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="../../../../../light.css" id="themeStyle"><script src="../../../../../storage.js"></script></head><body class="rustdoc mod"><!--[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><p class='location'>Module actors</p><div class="sidebar-elems"><div class="block items"><ul><li><a href="#modules">Modules</a></li></ul></div><p class='location'><a href='../../../../index.html'>actix_web</a>::<wbr><a href='../../../index.html'>actix</a>::<wbr><a href='../../index.html'>actix</a>::<wbr><a href='../index.html'>dev</a></p><script>window.sidebarCurrent = {name: 'actors', ty: 'mod', 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"><a id="settings-menu" href="../../../../../settings.html"><img src="../../../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='in-band'>Module <a href='../../../../index.html'>actix_web</a>::<wbr><a href='../../../index.html'>actix</a>::<wbr><a href='../../index.html'>actix</a>::<wbr><a href='../index.html'>dev</a>::<wbr><a class="mod" href=''>actors</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></span></h1><div class='docblock'><p>Helper actors</p>
</div><h2 id='modules' class='section-header'><a href="#modules">Modules</a></h2>
<table>
<tr class=' module-item'>
<td><a class="mod" href="resolver/index.html"
title='mod actix_web::actix::actix::dev::actors::resolver'>resolver</a></td>
<td class='docblock-short'>
<p>DNS resolver and connector utility actor</p>
</td>
</tr>
<tr class=' module-item'>
<td><a class="mod" href="signal/index.html"
title='mod actix_web::actix::actix::dev::actors::signal'>signal</a></td>
<td class='docblock-short'>
<p>An actor implementation of Unix signal handling</p>
</td>
</tr></table></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><p>Search multiple things at once by splitting your query with comma (e.g. <code>str,u8</code> or <code>String,struct:Vec,test</code>)</p></div></div></aside><script>window.rootPath = "../../../../../";window.currentCrate = "actix_web";</script><script src="../../../../../aliases.js"></script><script src="../../../../../main.js"></script><script defer src="../../../../../search-index.js"></script></body></html>

View File

@ -0,0 +1,10 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=struct.Connect.html">
</head>
<body>
<p>Redirecting to <a href="struct.Connect.html">struct.Connect.html</a>...</p>
<script>location.replace("struct.Connect.html" + location.search + location.hash);</script>
</body>
</html>

View File

@ -0,0 +1,10 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=struct.ConnectAddr.html">
</head>
<body>
<p>Redirecting to <a href="struct.ConnectAddr.html">struct.ConnectAddr.html</a>...</p>
<script>location.replace("struct.ConnectAddr.html" + location.search + location.hash);</script>
</body>
</html>

View File

@ -0,0 +1,10 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=type.Connector.html">
</head>
<body>
<p>Redirecting to <a href="type.Connector.html">type.Connector.html</a>...</p>
<script>location.replace("type.Connector.html" + location.search + location.hash);</script>
</body>
</html>

View File

@ -0,0 +1,10 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=type.ConnectorError.html">
</head>
<body>
<p>Redirecting to <a href="type.ConnectorError.html">type.ConnectorError.html</a>...</p>
<script>location.replace("type.ConnectorError.html" + location.search + location.hash);</script>
</body>
</html>

View File

@ -0,0 +1,10 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=struct.Resolve.html">
</head>
<body>
<p>Redirecting to <a href="struct.Resolve.html">struct.Resolve.html</a>...</p>
<script>location.replace("struct.Resolve.html" + location.search + location.hash);</script>
</body>
</html>

View File

@ -0,0 +1,10 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=struct.Resolver.html">
</head>
<body>
<p>Redirecting to <a href="struct.Resolver.html">struct.Resolver.html</a>...</p>
<script>location.replace("struct.Resolver.html" + location.search + location.hash);</script>
</body>
</html>

View File

@ -0,0 +1,10 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=enum.ResolverError.html">
</head>
<body>
<p>Redirecting to <a href="enum.ResolverError.html">enum.ResolverError.html</a>...</p>
<script>location.replace("enum.ResolverError.html" + location.search + location.hash);</script>
</body>
</html>

View File

@ -0,0 +1,10 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=struct.TcpConnector.html">
</head>
<body>
<p>Redirecting to <a href="struct.TcpConnector.html">struct.TcpConnector.html</a>...</p>
<script>location.replace("struct.TcpConnector.html" + location.search + location.hash);</script>
</body>
</html>

View File

@ -0,0 +1,30 @@
<!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 `ResolverError` enum in crate `actix_web`."><meta name="keywords" content="rust, rustlang, rust-lang, ResolverError"><title>actix_web::actix::actix::dev::actors::resolver::ResolverError - 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="../../../../../../light.css" id="themeStyle"><script src="../../../../../../storage.js"></script></head><body class="rustdoc enum"><!--[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><p class='location'>Enum ResolverError</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#variants">Variants</a><div class="sidebar-links"><a href="#variant.Resolver">Resolver</a><a href="#variant.InvalidInput">InvalidInput</a><a href="#variant.Timeout">Timeout</a><a href="#variant.IoError">IoError</a></div><a class="sidebar-title" href="#implementations">Trait Implementations</a><div class="sidebar-links"><a href="#impl-Display">Display</a><a href="#impl-Debug">Debug</a><a href="#impl-Fail">Fail</a><a href="#impl-From%3CResolverError%3E">From&lt;ResolverError&gt;</a></div><a class="sidebar-title" href="#synthetic-implementations">Auto Trait Implementations</a><div class="sidebar-links"><a href="#impl-Send">Send</a><a href="#impl-Sync">Sync</a></div></div><p class='location'><a href='../../../../../index.html'>actix_web</a>::<wbr><a href='../../../../index.html'>actix</a>::<wbr><a href='../../../index.html'>actix</a>::<wbr><a href='../../index.html'>dev</a>::<wbr><a href='../index.html'>actors</a>::<wbr><a href='index.html'>resolver</a></p><script>window.sidebarCurrent = {name: 'ResolverError', ty: 'enum', 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"><a id="settings-menu" href="../../../../../../settings.html"><img src="../../../../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='in-band'>Enum <a href='../../../../../index.html'>actix_web</a>::<wbr><a href='../../../../index.html'>actix</a>::<wbr><a href='../../../index.html'>actix</a>::<wbr><a href='../../index.html'>dev</a>::<wbr><a href='../index.html'>actors</a>::<wbr><a href='index.html'>resolver</a>::<wbr><a class="enum" href=''>ResolverError</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></span></h1><div class="docblock type-decl"><pre class='rust enum'>pub enum ResolverError {
Resolver(<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>),
InvalidInput(&amp;'static <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>),
Timeout,
IoError(<a class="struct" href="https://doc.rust-lang.org/nightly/std/io/error/struct.Error.html" title="struct std::io::error::Error">Error</a>),
}</pre></div><h2 id='variants' class='variants small-section-header'>
Variants<a href='#variants' class='anchor'></a></h2>
<span id="variant.Resolver" class="variant small-section-header"><a href="#variant.Resolver" class="anchor field"></a><span id='Resolver.v' class='invisible'><code>Resolver(<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>)</code></span></span><div class='docblock'><p>Failed to resolve the hostname</p>
</div><span id="variant.InvalidInput" class="variant small-section-header"><a href="#variant.InvalidInput" class="anchor field"></a><span id='InvalidInput.v' class='invisible'><code>InvalidInput(&amp;'static <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>)</code></span></span><div class='docblock'><p>Address is invalid</p>
</div><span id="variant.Timeout" class="variant small-section-header"><a href="#variant.Timeout" class="anchor field"></a><span id='Timeout.v' class='invisible'><code>Timeout</code></span></span><div class='docblock'><p>Connecting took too long</p>
</div><span id="variant.IoError" class="variant small-section-header"><a href="#variant.IoError" class="anchor field"></a><span id='IoError.v' class='invisible'><code>IoError(<a class="struct" href="https://doc.rust-lang.org/nightly/std/io/error/struct.Error.html" title="struct std::io::error::Error">Error</a>)</code></span></span><div class='docblock'><p>Connection io error</p>
</div>
<h2 id='implementations' class='small-section-header'>
Trait Implementations<a href='#implementations' class='anchor'></a>
</h2>
<div id='implementations-list'><h3 id='impl-Display' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Display.html" title="trait core::fmt::Display">Display</a> for <a class="enum" href="../../../../../../actix_web/actix/actix/dev/actors/resolver/enum.ResolverError.html" title="enum actix_web::actix::actix::dev::actors::resolver::ResolverError">ResolverError</a></code><a href='#impl-Display' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='method.fmt' class="method"><span id='fmt.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='https://doc.rust-lang.org/nightly/core/fmt/trait.Display.html#tymethod.fmt' class='fnname'>fmt</a>(&amp;self, f: &amp;mut <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Error.html" title="struct core::fmt::Error">Error</a>&gt;</code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.Display.html#tymethod.fmt">Read more</a></p>
</div></div><h3 id='impl-Debug' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="enum" href="../../../../../../actix_web/actix/actix/dev/actors/resolver/enum.ResolverError.html" title="enum actix_web::actix::actix::dev::actors::resolver::ResolverError">ResolverError</a></code><a href='#impl-Debug' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='method.fmt-1' class="method"><span id='fmt.v-1' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt' class='fnname'>fmt</a>(&amp;self, f: &amp;mut <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Error.html" title="struct core::fmt::Error">Error</a>&gt;</code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt">Read more</a></p>
</div></div><h3 id='impl-Fail' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl Fail for <a class="enum" href="../../../../../../actix_web/actix/actix/dev/actors/resolver/enum.ResolverError.html" title="enum actix_web::actix::actix::dev::actors::resolver::ResolverError">ResolverError</a></code><a href='#impl-Fail' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='method.cause' class="method"><span id='cause.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='#method.cause' class='fnname'>cause</a>(&amp;self) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;&amp;(Fail + 'static)&gt;</code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>Returns a reference to the underlying cause of this failure, if it is an error that wraps other errors. <a href="#method.cause">Read more</a></p>
</div><h4 id='method.backtrace' class="method"><span id='backtrace.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='#method.backtrace' class='fnname'>backtrace</a>(&amp;self) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;&amp;Backtrace&gt;</code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>Returns a reference to the <code>Backtrace</code> carried by this failure, if it carries one. <a href="#method.backtrace">Read more</a></p>
</div><h4 id='method.context' class="method"><span id='context.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='#method.context' class='fnname'>context</a>&lt;D&gt;(self, context: D) -&gt; Context&lt;D&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;D: <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Display.html" title="trait core::fmt::Display">Display</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> + 'static,&nbsp;</span></code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>Provides context for this failure. <a href="#method.context">Read more</a></p>
</div><h4 id='method.compat' class="method"><span id='compat.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='#method.compat' class='fnname'>compat</a>(self) -&gt; Compat&lt;Self&gt;</code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>Wraps this failure in a compatibility wrapper that implements <code>std::error::Error</code>. <a href="#method.compat">Read more</a></p>
</div><h4 id='method.causes' class="method"><div class="important-traits"><div class='tooltip'><span class='tooltiptext'>Important traits for Causes&lt;'f&gt;</span></div><div class="content hidden"><h3 class="important">Important traits for Causes&lt;'f&gt;</h3><code class="content"><span class="where fmt-newline">impl&lt;'f&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/iterator/trait.Iterator.html" title="trait core::iter::iterator::Iterator">Iterator</a> for Causes&lt;'f&gt;</span><span class="where fmt-newline"> type <a href='https://doc.rust-lang.org/nightly/core/iter/iterator/trait.Iterator.html#associatedtype.Item' class="type">Item</a> = &amp;'f (Fail + 'static);</span></code></div></div><span id='causes.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='#method.causes' class='fnname'>causes</a>(&amp;self) -&gt; Causes</code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>Returns a iterator over the causes of this <code>Fail</code> with itself as the first item and the <code>root_cause</code> as the final item. <a href="#method.causes">Read more</a></p>
</div><h4 id='method.root_cause' class="method"><span id='root_cause.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='#method.root_cause' class='fnname'>root_cause</a>(&amp;self) -&gt; &amp;(Fail + 'static)</code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>Returns the &quot;root cause&quot; of this <code>Fail</code> - the last value in the cause chain which does not return an underlying <code>cause</code>. <a href="#method.root_cause">Read more</a></p>
</div></div><h3 id='impl-From%3CResolverError%3E' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;<a class="enum" href="../../../../../../actix_web/actix/actix/dev/actors/resolver/enum.ResolverError.html" title="enum actix_web::actix::actix::dev::actors::resolver::ResolverError">ResolverError</a>&gt; for <a class="enum" href="../../../../../../actix_web/client/enum.ClientConnectorError.html" title="enum actix_web::client::ClientConnectorError">ClientConnectorError</a></code><a href='#impl-From%3CResolverError%3E' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../../../../../src/actix_web/client/connector.rs.html#159-166' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='method.from' class="method"><span id='from.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from' class='fnname'>from</a>(err: <a class="enum" href="../../../../../../actix_web/actix/actix/dev/actors/resolver/enum.ResolverError.html" title="enum actix_web::actix::actix::dev::actors::resolver::ResolverError">ResolverError</a>) -&gt; <a class="enum" href="../../../../../../actix_web/client/enum.ClientConnectorError.html" title="enum actix_web::client::ClientConnectorError">ClientConnectorError</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../../../../../src/actix_web/client/connector.rs.html#160-165' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Performs the conversion.</p>
</div></div></div>
<h2 id='synthetic-implementations' class='small-section-header'>
Auto Trait Implementations<a href='#synthetic-implementations' class='anchor'></a>
</h2>
<div id='synthetic-implementations-list'>
<h3 id='impl-Send' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> for <a class="enum" href="../../../../../../actix_web/actix/actix/dev/actors/resolver/enum.ResolverError.html" title="enum actix_web::actix::actix::dev::actors::resolver::ResolverError">ResolverError</a></code><a href='#impl-Send' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='impl-items'></div><h3 id='impl-Sync' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> for <a class="enum" href="../../../../../../actix_web/actix/actix/dev/actors/resolver/enum.ResolverError.html" title="enum actix_web::actix::actix::dev::actors::resolver::ResolverError">ResolverError</a></code><a href='#impl-Sync' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='impl-items'></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><p>Search multiple things at once by splitting your query with comma (e.g. <code>str,u8</code> or <code>String,struct:Vec,test</code>)</p></div></div></aside><script>window.rootPath = "../../../../../../";window.currentCrate = "actix_web";</script><script src="../../../../../../aliases.js"></script><script src="../../../../../../main.js"></script><script defer src="../../../../../../search-index.js"></script></body></html>

View File

@ -0,0 +1,93 @@
<!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 `resolver` mod in crate `actix_web`."><meta name="keywords" content="rust, rustlang, rust-lang, resolver"><title>actix_web::actix::actix::dev::actors::resolver - 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="../../../../../../light.css" id="themeStyle"><script src="../../../../../../storage.js"></script></head><body class="rustdoc mod"><!--[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><p class='location'>Module resolver</p><div class="sidebar-elems"><div class="block items"><ul><li><a href="#structs">Structs</a></li><li><a href="#enums">Enums</a></li><li><a href="#types">Type Definitions</a></li></ul></div><p class='location'><a href='../../../../../index.html'>actix_web</a>::<wbr><a href='../../../../index.html'>actix</a>::<wbr><a href='../../../index.html'>actix</a>::<wbr><a href='../../index.html'>dev</a>::<wbr><a href='../index.html'>actors</a></p><script>window.sidebarCurrent = {name: 'resolver', ty: 'mod', 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"><a id="settings-menu" href="../../../../../../settings.html"><img src="../../../../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='in-band'>Module <a href='../../../../../index.html'>actix_web</a>::<wbr><a href='../../../../index.html'>actix</a>::<wbr><a href='../../../index.html'>actix</a>::<wbr><a href='../../index.html'>dev</a>::<wbr><a href='../index.html'>actors</a>::<wbr><a class="mod" href=''>resolver</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></span></h1><div class='docblock'><p>DNS resolver and connector utility actor</p>
<h2 id="example" class="section-header"><a href="#example">Example</a></h2>
<pre class="rust rust-example-rendered">
<span class="kw">use</span> <span class="ident">actix</span>::<span class="ident">prelude</span>::<span class="kw-2">*</span>;
<span class="kw">use</span> <span class="ident">actix</span>::<span class="ident">actors</span>::<span class="ident">resolver</span>;
<span class="kw">fn</span> <span class="ident">main</span>() {
<span class="ident">System</span>::<span class="ident">run</span>(<span class="op">||</span> {
<span class="ident">tokio</span>::<span class="ident">spawn</span>({
<span class="kw">let</span> <span class="ident">resolver</span> <span class="op">=</span> <span class="ident">resolver</span>::<span class="ident">Resolver</span>::<span class="ident">from_registry</span>();
<span class="ident">resolver</span>.<span class="ident">send</span>(
<span class="ident">resolver</span>::<span class="ident">Resolve</span>::<span class="ident">host</span>(<span class="string">&quot;localhost&quot;</span>)) <span class="comment">// &lt;- resolve &quot;localhost&quot;</span>
.<span class="ident">then</span>(<span class="op">|</span><span class="ident">addrs</span><span class="op">|</span> {
<span class="macro">println</span><span class="macro">!</span>(<span class="string">&quot;RESULT: {:?}&quot;</span>, <span class="ident">addrs</span>);
<span class="prelude-val">Ok</span>::<span class="op">&lt;</span><span class="kw">_</span>, ()<span class="op">&gt;</span>(())
})
});
<span class="ident">tokio</span>::<span class="ident">spawn</span>({
<span class="kw">let</span> <span class="ident">resolver</span> <span class="op">=</span> <span class="ident">resolver</span>::<span class="ident">Resolver</span>::<span class="ident">from_registry</span>();
<span class="ident">resolver</span>.<span class="ident">send</span>(
<span class="ident">resolver</span>::<span class="ident">Resolve</span>::<span class="ident">host</span>(<span class="string">&quot;localhost:5000&quot;</span>)) <span class="comment">// &lt;- connect to a &quot;localhost&quot;</span>
.<span class="ident">then</span>(<span class="op">|</span><span class="ident">stream</span><span class="op">|</span> {
<span class="macro">println</span><span class="macro">!</span>(<span class="string">&quot;RESULT: {:?}&quot;</span>, <span class="ident">stream</span>);
<span class="prelude-val">Ok</span>::<span class="op">&lt;</span><span class="kw">_</span>, ()<span class="op">&gt;</span>(())
})
});
});
}</pre>
</div><h2 id='structs' class='section-header'><a href="#structs">Structs</a></h2>
<table>
<tr class=' module-item'>
<td><a class="struct" href="struct.Connect.html"
title='struct actix_web::actix::actix::dev::actors::resolver::Connect'>Connect</a></td>
<td class='docblock-short'>
</td>
</tr>
<tr class=' module-item'>
<td><a class="struct" href="struct.ConnectAddr.html"
title='struct actix_web::actix::actix::dev::actors::resolver::ConnectAddr'>ConnectAddr</a></td>
<td class='docblock-short'>
</td>
</tr>
<tr class=' module-item'>
<td><a class="struct" href="struct.Resolve.html"
title='struct actix_web::actix::actix::dev::actors::resolver::Resolve'>Resolve</a></td>
<td class='docblock-short'>
</td>
</tr>
<tr class=' module-item'>
<td><a class="struct" href="struct.Resolver.html"
title='struct actix_web::actix::actix::dev::actors::resolver::Resolver'>Resolver</a></td>
<td class='docblock-short'>
</td>
</tr>
<tr class=' module-item'>
<td><a class="struct" href="struct.TcpConnector.html"
title='struct actix_web::actix::actix::dev::actors::resolver::TcpConnector'>TcpConnector</a></td>
<td class='docblock-short'>
<p>Tcp stream connector</p>
</td>
</tr></table><h2 id='enums' class='section-header'><a href="#enums">Enums</a></h2>
<table>
<tr class=' module-item'>
<td><a class="enum" href="enum.ResolverError.html"
title='enum actix_web::actix::actix::dev::actors::resolver::ResolverError'>ResolverError</a></td>
<td class='docblock-short'>
</td>
</tr></table><h2 id='types' class='section-header'><a href="#types">Type Definitions</a></h2>
<table>
<tr class=' module-item'>
<td><a class="type" href="type.Connector.html"
title='type actix_web::actix::actix::dev::actors::resolver::Connector'>Connector</a></td>
<td class='docblock-short'>
[<div class='stab deprecated'>Deprecated</div>]
</td>
</tr>
<tr class=' module-item'>
<td><a class="type" href="type.ConnectorError.html"
title='type actix_web::actix::actix::dev::actors::resolver::ConnectorError'>ConnectorError</a></td>
<td class='docblock-short'>
[<div class='stab deprecated'>Deprecated</div>]
</td>
</tr></table></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><p>Search multiple things at once by splitting your query with comma (e.g. <code>str,u8</code> or <code>String,struct:Vec,test</code>)</p></div></div></aside><script>window.rootPath = "../../../../../../";window.currentCrate = "actix_web";</script><script src="../../../../../../aliases.js"></script><script src="../../../../../../main.js"></script><script defer src="../../../../../../search-index.js"></script></body></html>

View File

@ -0,0 +1 @@
initSidebarItems({"enum":[["ResolverError",""]],"struct":[["Connect",""],["ConnectAddr",""],["Resolve",""],["Resolver",""],["TcpConnector","Tcp stream connector"]],"type":[["Connector",""],["ConnectorError",""]]});

View File

@ -0,0 +1,24 @@
<!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 `Connect` struct in crate `actix_web`."><meta name="keywords" content="rust, rustlang, rust-lang, Connect"><title>actix_web::actix::actix::dev::actors::resolver::Connect - 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="../../../../../../light.css" id="themeStyle"><script src="../../../../../../storage.js"></script></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><p class='location'>Struct Connect</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#methods">Methods</a><div class="sidebar-links"><a href="#method.host">host</a><a href="#method.host_and_port">host_and_port</a><a href="#method.timeout">timeout</a></div><a class="sidebar-title" href="#implementations">Trait Implementations</a><div class="sidebar-links"><a href="#impl-Message">Message</a><a href="#impl-Handler%3CConnect%3E">Handler&lt;Connect&gt;</a><a href="#impl-Debug">Debug</a><a href="#impl-Eq">Eq</a><a href="#impl-PartialEq%3CConnect%3E">PartialEq&lt;Connect&gt;</a></div><a class="sidebar-title" href="#synthetic-implementations">Auto Trait Implementations</a><div class="sidebar-links"><a href="#impl-Send">Send</a><a href="#impl-Sync">Sync</a></div></div><p class='location'><a href='../../../../../index.html'>actix_web</a>::<wbr><a href='../../../../index.html'>actix</a>::<wbr><a href='../../../index.html'>actix</a>::<wbr><a href='../../index.html'>dev</a>::<wbr><a href='../index.html'>actors</a>::<wbr><a href='index.html'>resolver</a></p><script>window.sidebarCurrent = {name: 'Connect', 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"><a id="settings-menu" href="../../../../../../settings.html"><img src="../../../../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='in-band'>Struct <a href='../../../../../index.html'>actix_web</a>::<wbr><a href='../../../../index.html'>actix</a>::<wbr><a href='../../../index.html'>actix</a>::<wbr><a href='../../index.html'>dev</a>::<wbr><a href='../index.html'>actors</a>::<wbr><a href='index.html'>resolver</a>::<wbr><a class="struct" href=''>Connect</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></span></h1><div class="docblock type-decl"><pre class='rust struct'>pub struct Connect { /* fields omitted */ }</pre></div>
<h2 id='methods' class='small-section-header'>
Methods<a href='#methods' class='anchor'></a>
</h2>
<h3 id='impl' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="struct" href="../../../../../../actix_web/actix/actix/dev/actors/resolver/struct.Connect.html" title="struct actix_web::actix::actix::dev::actors::resolver::Connect">Connect</a></code><a href='#impl' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='method.host' class="method"><span id='host.v' class='invisible'><table class='table-display'><tbody><tr><td><code>pub fn <a href='#method.host' class='fnname'>host</a>&lt;T&gt;(host: T) -&gt; <a class="struct" href="../../../../../../actix_web/actix/actix/dev/actors/resolver/struct.Connect.html" title="struct actix_web::actix::actix::dev::actors::resolver::Connect">Connect</a> <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>&gt;,&nbsp;</span></code></td><td></td></tr></tbody></table></span></h4><h4 id='method.host_and_port' class="method"><span id='host_and_port.v' class='invisible'><table class='table-display'><tbody><tr><td><code>pub fn <a href='#method.host_and_port' class='fnname'>host_and_port</a>&lt;T&gt;(host: T, port: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u16.html">u16</a>) -&gt; <a class="struct" href="../../../../../../actix_web/actix/actix/dev/actors/resolver/struct.Connect.html" title="struct actix_web::actix::actix::dev::actors::resolver::Connect">Connect</a> <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>&gt;,&nbsp;</span></code></td><td></td></tr></tbody></table></span></h4><h4 id='method.timeout' class="method"><span id='timeout.v' class='invisible'><table class='table-display'><tbody><tr><td><code>pub fn <a href='#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>) -&gt; <a class="struct" href="../../../../../../actix_web/actix/actix/dev/actors/resolver/struct.Connect.html" title="struct actix_web::actix::actix::dev::actors::resolver::Connect">Connect</a></code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>Set connect timeout</p>
<p>By default timeout is set to a 1 second.</p>
</div></div>
<h2 id='implementations' class='small-section-header'>
Trait Implementations<a href='#implementations' class='anchor'></a>
</h2>
<div id='implementations-list'><h3 id='impl-Message' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="../../../../../../actix_web/actix/actix/dev/trait.Message.html" title="trait actix_web::actix::actix::dev::Message">Message</a> for <a class="struct" href="../../../../../../actix_web/actix/actix/dev/actors/resolver/struct.Connect.html" title="struct actix_web::actix::actix::dev::actors::resolver::Connect">Connect</a></code><a href='#impl-Message' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='associatedtype.Result' class="type"><span id='Result.t' class='invisible'><code>type <a href='../../../../../../actix_web/actix/actix/dev/trait.Message.html#associatedtype.Result' class="type">Result</a> = <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="struct" href="https://docs.rs/tokio-tcp/0.1.0/tokio_tcp/stream/struct.TcpStream.html" title="struct tokio_tcp::stream::TcpStream">TcpStream</a>, <a class="enum" href="../../../../../../actix_web/actix/actix/dev/actors/resolver/enum.ResolverError.html" title="enum actix_web::actix::actix::dev::actors::resolver::ResolverError">ResolverError</a>&gt;</code></span></h4>
<div class='docblock'><p>The type of value that this message will resolved with if it is successful. <a href="../../../../../../actix_web/actix/actix/dev/trait.Message.html#associatedtype.Result">Read more</a></p>
</div></div><h3 id='impl-Handler%3CConnect%3E' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="../../../../../../actix_web/actix/actix/dev/trait.Handler.html" title="trait actix_web::actix::actix::dev::Handler">Handler</a>&lt;<a class="struct" href="../../../../../../actix_web/actix/actix/dev/actors/resolver/struct.Connect.html" title="struct actix_web::actix::actix::dev::actors::resolver::Connect">Connect</a>&gt; for <a class="struct" href="../../../../../../actix_web/actix/actix/dev/actors/resolver/struct.Resolver.html" title="struct actix_web::actix::actix::dev::actors::resolver::Resolver">Resolver</a></code><a href='#impl-Handler%3CConnect%3E' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='associatedtype.Result-1' class="type"><span id='Result.t-1' class='invisible'><code>type <a href='../../../../../../actix_web/actix/actix/dev/trait.Handler.html#associatedtype.Result' class="type">Result</a> = <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;<a class="trait" href="../../../../../../actix_web/actix/actix/dev/trait.ActorFuture.html" title="trait actix_web::actix::actix::dev::ActorFuture">ActorFuture</a>&lt;Error = <a class="enum" href="../../../../../../actix_web/actix/actix/dev/actors/resolver/enum.ResolverError.html" title="enum actix_web::actix::actix::dev::actors::resolver::ResolverError">ResolverError</a>, Actor = <a class="struct" href="../../../../../../actix_web/actix/actix/dev/actors/resolver/struct.Resolver.html" title="struct actix_web::actix::actix::dev::actors::resolver::Resolver">Resolver</a>, Item = <a class="struct" href="https://docs.rs/tokio-tcp/0.1.0/tokio_tcp/stream/struct.TcpStream.html" title="struct tokio_tcp::stream::TcpStream">TcpStream</a>&gt; + 'static&gt;</code></span></h4>
<div class='docblock'><p>The type of value that this handle will return</p>
</div><h4 id='method.handle' class="method"><span id='handle.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../../../../../../actix_web/actix/actix/dev/trait.Handler.html#tymethod.handle' class='fnname'>handle</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;mut self, <br>&nbsp;&nbsp;&nbsp;&nbsp;msg: <a class="struct" href="../../../../../../actix_web/actix/actix/dev/actors/resolver/struct.Connect.html" title="struct actix_web::actix::actix::dev::actors::resolver::Connect">Connect</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;mut &lt;<a class="struct" href="../../../../../../actix_web/actix/actix/dev/actors/resolver/struct.Resolver.html" title="struct actix_web::actix::actix::dev::actors::resolver::Resolver">Resolver</a> as <a class="trait" href="../../../../../../actix_web/actix/actix/trait.Actor.html" title="trait actix_web::actix::actix::Actor">Actor</a>&gt;::<a class="type" href="../../../../../../actix_web/actix/actix/trait.Actor.html#associatedtype.Context" title="type actix_web::actix::actix::Actor::Context">Context</a><br>) -&gt; &lt;<a class="struct" href="../../../../../../actix_web/actix/actix/dev/actors/resolver/struct.Resolver.html" title="struct actix_web::actix::actix::dev::actors::resolver::Resolver">Resolver</a> as <a class="trait" href="../../../../../../actix_web/actix/actix/dev/trait.Handler.html" title="trait actix_web::actix::actix::dev::Handler">Handler</a>&lt;<a class="struct" href="../../../../../../actix_web/actix/actix/dev/actors/resolver/struct.Connect.html" title="struct actix_web::actix::actix::dev::actors::resolver::Connect">Connect</a>&gt;&gt;::<a class="type" href="../../../../../../actix_web/actix/actix/dev/trait.Handler.html#associatedtype.Result" title="type actix_web::actix::actix::dev::Handler::Result">Result</a></code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>Method is called for every message received by this Actor</p>
</div></div><h3 id='impl-Debug' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="struct" href="../../../../../../actix_web/actix/actix/dev/actors/resolver/struct.Connect.html" title="struct actix_web::actix::actix::dev::actors::resolver::Connect">Connect</a></code><a href='#impl-Debug' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='method.fmt' class="method"><span id='fmt.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt' class='fnname'>fmt</a>(&amp;self, f: &amp;mut <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Error.html" title="struct core::fmt::Error">Error</a>&gt;</code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt">Read more</a></p>
</div></div><h3 id='impl-Eq' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.Eq.html" title="trait core::cmp::Eq">Eq</a> for <a class="struct" href="../../../../../../actix_web/actix/actix/dev/actors/resolver/struct.Connect.html" title="struct actix_web::actix::actix::dev::actors::resolver::Connect">Connect</a></code><a href='#impl-Eq' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='impl-items'></div><h3 id='impl-PartialEq%3CConnect%3E' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a>&lt;<a class="struct" href="../../../../../../actix_web/actix/actix/dev/actors/resolver/struct.Connect.html" title="struct actix_web::actix::actix::dev::actors::resolver::Connect">Connect</a>&gt; for <a class="struct" href="../../../../../../actix_web/actix/actix/dev/actors/resolver/struct.Connect.html" title="struct actix_web::actix::actix::dev::actors::resolver::Connect">Connect</a></code><a href='#impl-PartialEq%3CConnect%3E' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='method.eq' class="method"><span id='eq.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html#tymethod.eq' class='fnname'>eq</a>(&amp;self, other: &amp;<a class="struct" href="../../../../../../actix_web/actix/actix/dev/actors/resolver/struct.Connect.html" title="struct actix_web::actix::actix::dev::actors::resolver::Connect">Connect</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>This method tests for <code>self</code> and <code>other</code> values to be equal, and is used by <code>==</code>. <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html#tymethod.eq">Read more</a></p>
</div><h4 id='method.ne' class="method"><span id='ne.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html#method.ne' class='fnname'>ne</a>(&amp;self, other: &amp;<a class="struct" href="../../../../../../actix_web/actix/actix/dev/actors/resolver/struct.Connect.html" title="struct actix_web::actix::actix::dev::actors::resolver::Connect">Connect</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>This method tests for <code>!=</code>.</p>
</div></div></div>
<h2 id='synthetic-implementations' class='small-section-header'>
Auto Trait Implementations<a href='#synthetic-implementations' class='anchor'></a>
</h2>
<div id='synthetic-implementations-list'>
<h3 id='impl-Send' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> for <a class="struct" href="../../../../../../actix_web/actix/actix/dev/actors/resolver/struct.Connect.html" title="struct actix_web::actix::actix::dev::actors::resolver::Connect">Connect</a></code><a href='#impl-Send' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='impl-items'></div><h3 id='impl-Sync' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> for <a class="struct" href="../../../../../../actix_web/actix/actix/dev/actors/resolver/struct.Connect.html" title="struct actix_web::actix::actix::dev::actors::resolver::Connect">Connect</a></code><a href='#impl-Sync' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='impl-items'></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><p>Search multiple things at once by splitting your query with comma (e.g. <code>str,u8</code> or <code>String,struct:Vec,test</code>)</p></div></div></aside><script>window.rootPath = "../../../../../../";window.currentCrate = "actix_web";</script><script src="../../../../../../aliases.js"></script><script src="../../../../../../main.js"></script><script defer src="../../../../../../search-index.js"></script></body></html>

View File

@ -0,0 +1,18 @@
<!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 `ConnectAddr` struct in crate `actix_web`."><meta name="keywords" content="rust, rustlang, rust-lang, ConnectAddr"><title>actix_web::actix::actix::dev::actors::resolver::ConnectAddr - 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="../../../../../../light.css" id="themeStyle"><script src="../../../../../../storage.js"></script></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><p class='location'>Struct ConnectAddr</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#implementations">Trait Implementations</a><div class="sidebar-links"><a href="#impl-Message">Message</a><a href="#impl-Handler%3CConnectAddr%3E">Handler&lt;ConnectAddr&gt;</a><a href="#impl-Debug">Debug</a><a href="#impl-Eq">Eq</a><a href="#impl-PartialEq%3CConnectAddr%3E">PartialEq&lt;ConnectAddr&gt;</a></div><a class="sidebar-title" href="#synthetic-implementations">Auto Trait Implementations</a><div class="sidebar-links"><a href="#impl-Send">Send</a><a href="#impl-Sync">Sync</a></div></div><p class='location'><a href='../../../../../index.html'>actix_web</a>::<wbr><a href='../../../../index.html'>actix</a>::<wbr><a href='../../../index.html'>actix</a>::<wbr><a href='../../index.html'>dev</a>::<wbr><a href='../index.html'>actors</a>::<wbr><a href='index.html'>resolver</a></p><script>window.sidebarCurrent = {name: 'ConnectAddr', 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"><a id="settings-menu" href="../../../../../../settings.html"><img src="../../../../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='in-band'>Struct <a href='../../../../../index.html'>actix_web</a>::<wbr><a href='../../../../index.html'>actix</a>::<wbr><a href='../../../index.html'>actix</a>::<wbr><a href='../../index.html'>dev</a>::<wbr><a href='../index.html'>actors</a>::<wbr><a href='index.html'>resolver</a>::<wbr><a class="struct" href=''>ConnectAddr</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></span></h1><div class="docblock type-decl"><pre class='rust struct'>pub struct ConnectAddr(pub <a class="enum" href="https://doc.rust-lang.org/nightly/std/net/addr/enum.SocketAddr.html" title="enum std::net::addr::SocketAddr">SocketAddr</a>);</pre></div>
<h2 id='implementations' class='small-section-header'>
Trait Implementations<a href='#implementations' class='anchor'></a>
</h2>
<div id='implementations-list'><h3 id='impl-Message' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="../../../../../../actix_web/actix/actix/dev/trait.Message.html" title="trait actix_web::actix::actix::dev::Message">Message</a> for <a class="struct" href="../../../../../../actix_web/actix/actix/dev/actors/resolver/struct.ConnectAddr.html" title="struct actix_web::actix::actix::dev::actors::resolver::ConnectAddr">ConnectAddr</a></code><a href='#impl-Message' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='associatedtype.Result' class="type"><span id='Result.t' class='invisible'><code>type <a href='../../../../../../actix_web/actix/actix/dev/trait.Message.html#associatedtype.Result' class="type">Result</a> = <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="struct" href="https://docs.rs/tokio-tcp/0.1.0/tokio_tcp/stream/struct.TcpStream.html" title="struct tokio_tcp::stream::TcpStream">TcpStream</a>, <a class="enum" href="../../../../../../actix_web/actix/actix/dev/actors/resolver/enum.ResolverError.html" title="enum actix_web::actix::actix::dev::actors::resolver::ResolverError">ResolverError</a>&gt;</code></span></h4>
<div class='docblock'><p>The type of value that this message will resolved with if it is successful. <a href="../../../../../../actix_web/actix/actix/dev/trait.Message.html#associatedtype.Result">Read more</a></p>
</div></div><h3 id='impl-Handler%3CConnectAddr%3E' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="../../../../../../actix_web/actix/actix/dev/trait.Handler.html" title="trait actix_web::actix::actix::dev::Handler">Handler</a>&lt;<a class="struct" href="../../../../../../actix_web/actix/actix/dev/actors/resolver/struct.ConnectAddr.html" title="struct actix_web::actix::actix::dev::actors::resolver::ConnectAddr">ConnectAddr</a>&gt; for <a class="struct" href="../../../../../../actix_web/actix/actix/dev/actors/resolver/struct.Resolver.html" title="struct actix_web::actix::actix::dev::actors::resolver::Resolver">Resolver</a></code><a href='#impl-Handler%3CConnectAddr%3E' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='associatedtype.Result-1' class="type"><span id='Result.t-1' class='invisible'><code>type <a href='../../../../../../actix_web/actix/actix/dev/trait.Handler.html#associatedtype.Result' class="type">Result</a> = <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;<a class="trait" href="../../../../../../actix_web/actix/actix/dev/trait.ActorFuture.html" title="trait actix_web::actix::actix::dev::ActorFuture">ActorFuture</a>&lt;Error = <a class="enum" href="../../../../../../actix_web/actix/actix/dev/actors/resolver/enum.ResolverError.html" title="enum actix_web::actix::actix::dev::actors::resolver::ResolverError">ResolverError</a>, Actor = <a class="struct" href="../../../../../../actix_web/actix/actix/dev/actors/resolver/struct.Resolver.html" title="struct actix_web::actix::actix::dev::actors::resolver::Resolver">Resolver</a>, Item = <a class="struct" href="https://docs.rs/tokio-tcp/0.1.0/tokio_tcp/stream/struct.TcpStream.html" title="struct tokio_tcp::stream::TcpStream">TcpStream</a>&gt; + 'static&gt;</code></span></h4>
<div class='docblock'><p>The type of value that this handle will return</p>
</div><h4 id='method.handle' class="method"><span id='handle.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../../../../../../actix_web/actix/actix/dev/trait.Handler.html#tymethod.handle' class='fnname'>handle</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;mut self, <br>&nbsp;&nbsp;&nbsp;&nbsp;msg: <a class="struct" href="../../../../../../actix_web/actix/actix/dev/actors/resolver/struct.ConnectAddr.html" title="struct actix_web::actix::actix::dev::actors::resolver::ConnectAddr">ConnectAddr</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;mut &lt;<a class="struct" href="../../../../../../actix_web/actix/actix/dev/actors/resolver/struct.Resolver.html" title="struct actix_web::actix::actix::dev::actors::resolver::Resolver">Resolver</a> as <a class="trait" href="../../../../../../actix_web/actix/actix/trait.Actor.html" title="trait actix_web::actix::actix::Actor">Actor</a>&gt;::<a class="type" href="../../../../../../actix_web/actix/actix/trait.Actor.html#associatedtype.Context" title="type actix_web::actix::actix::Actor::Context">Context</a><br>) -&gt; &lt;<a class="struct" href="../../../../../../actix_web/actix/actix/dev/actors/resolver/struct.Resolver.html" title="struct actix_web::actix::actix::dev::actors::resolver::Resolver">Resolver</a> as <a class="trait" href="../../../../../../actix_web/actix/actix/dev/trait.Handler.html" title="trait actix_web::actix::actix::dev::Handler">Handler</a>&lt;<a class="struct" href="../../../../../../actix_web/actix/actix/dev/actors/resolver/struct.ConnectAddr.html" title="struct actix_web::actix::actix::dev::actors::resolver::ConnectAddr">ConnectAddr</a>&gt;&gt;::<a class="type" href="../../../../../../actix_web/actix/actix/dev/trait.Handler.html#associatedtype.Result" title="type actix_web::actix::actix::dev::Handler::Result">Result</a></code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>Method is called for every message received by this Actor</p>
</div></div><h3 id='impl-Debug' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="struct" href="../../../../../../actix_web/actix/actix/dev/actors/resolver/struct.ConnectAddr.html" title="struct actix_web::actix::actix::dev::actors::resolver::ConnectAddr">ConnectAddr</a></code><a href='#impl-Debug' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='method.fmt' class="method"><span id='fmt.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt' class='fnname'>fmt</a>(&amp;self, f: &amp;mut <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Error.html" title="struct core::fmt::Error">Error</a>&gt;</code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt">Read more</a></p>
</div></div><h3 id='impl-Eq' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.Eq.html" title="trait core::cmp::Eq">Eq</a> for <a class="struct" href="../../../../../../actix_web/actix/actix/dev/actors/resolver/struct.ConnectAddr.html" title="struct actix_web::actix::actix::dev::actors::resolver::ConnectAddr">ConnectAddr</a></code><a href='#impl-Eq' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='impl-items'></div><h3 id='impl-PartialEq%3CConnectAddr%3E' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a>&lt;<a class="struct" href="../../../../../../actix_web/actix/actix/dev/actors/resolver/struct.ConnectAddr.html" title="struct actix_web::actix::actix::dev::actors::resolver::ConnectAddr">ConnectAddr</a>&gt; for <a class="struct" href="../../../../../../actix_web/actix/actix/dev/actors/resolver/struct.ConnectAddr.html" title="struct actix_web::actix::actix::dev::actors::resolver::ConnectAddr">ConnectAddr</a></code><a href='#impl-PartialEq%3CConnectAddr%3E' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='method.eq' class="method"><span id='eq.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html#tymethod.eq' class='fnname'>eq</a>(&amp;self, other: &amp;<a class="struct" href="../../../../../../actix_web/actix/actix/dev/actors/resolver/struct.ConnectAddr.html" title="struct actix_web::actix::actix::dev::actors::resolver::ConnectAddr">ConnectAddr</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>This method tests for <code>self</code> and <code>other</code> values to be equal, and is used by <code>==</code>. <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html#tymethod.eq">Read more</a></p>
</div><h4 id='method.ne' class="method"><span id='ne.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html#method.ne' class='fnname'>ne</a>(&amp;self, other: &amp;<a class="struct" href="../../../../../../actix_web/actix/actix/dev/actors/resolver/struct.ConnectAddr.html" title="struct actix_web::actix::actix::dev::actors::resolver::ConnectAddr">ConnectAddr</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>This method tests for <code>!=</code>.</p>
</div></div></div>
<h2 id='synthetic-implementations' class='small-section-header'>
Auto Trait Implementations<a href='#synthetic-implementations' class='anchor'></a>
</h2>
<div id='synthetic-implementations-list'>
<h3 id='impl-Send' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> for <a class="struct" href="../../../../../../actix_web/actix/actix/dev/actors/resolver/struct.ConnectAddr.html" title="struct actix_web::actix::actix::dev::actors::resolver::ConnectAddr">ConnectAddr</a></code><a href='#impl-Send' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='impl-items'></div><h3 id='impl-Sync' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> for <a class="struct" href="../../../../../../actix_web/actix/actix/dev/actors/resolver/struct.ConnectAddr.html" title="struct actix_web::actix::actix::dev::actors::resolver::ConnectAddr">ConnectAddr</a></code><a href='#impl-Sync' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='impl-items'></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><p>Search multiple things at once by splitting your query with comma (e.g. <code>str,u8</code> or <code>String,struct:Vec,test</code>)</p></div></div></aside><script>window.rootPath = "../../../../../../";window.currentCrate = "actix_web";</script><script src="../../../../../../aliases.js"></script><script src="../../../../../../main.js"></script><script defer src="../../../../../../search-index.js"></script></body></html>

View File

@ -0,0 +1,22 @@
<!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 `Resolve` struct in crate `actix_web`."><meta name="keywords" content="rust, rustlang, rust-lang, Resolve"><title>actix_web::actix::actix::dev::actors::resolver::Resolve - 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="../../../../../../light.css" id="themeStyle"><script src="../../../../../../storage.js"></script></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><p class='location'>Struct Resolve</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#methods">Methods</a><div class="sidebar-links"><a href="#method.host">host</a><a href="#method.host_and_port">host_and_port</a></div><a class="sidebar-title" href="#implementations">Trait Implementations</a><div class="sidebar-links"><a href="#impl-Message">Message</a><a href="#impl-Handler%3CResolve%3E">Handler&lt;Resolve&gt;</a><a href="#impl-Debug">Debug</a><a href="#impl-Eq">Eq</a><a href="#impl-PartialEq%3CResolve%3E">PartialEq&lt;Resolve&gt;</a></div><a class="sidebar-title" href="#synthetic-implementations">Auto Trait Implementations</a><div class="sidebar-links"><a href="#impl-Send">Send</a><a href="#impl-Sync">Sync</a></div></div><p class='location'><a href='../../../../../index.html'>actix_web</a>::<wbr><a href='../../../../index.html'>actix</a>::<wbr><a href='../../../index.html'>actix</a>::<wbr><a href='../../index.html'>dev</a>::<wbr><a href='../index.html'>actors</a>::<wbr><a href='index.html'>resolver</a></p><script>window.sidebarCurrent = {name: 'Resolve', 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"><a id="settings-menu" href="../../../../../../settings.html"><img src="../../../../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='in-band'>Struct <a href='../../../../../index.html'>actix_web</a>::<wbr><a href='../../../../index.html'>actix</a>::<wbr><a href='../../../index.html'>actix</a>::<wbr><a href='../../index.html'>dev</a>::<wbr><a href='../index.html'>actors</a>::<wbr><a href='index.html'>resolver</a>::<wbr><a class="struct" href=''>Resolve</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></span></h1><div class="docblock type-decl"><pre class='rust struct'>pub struct Resolve { /* fields omitted */ }</pre></div>
<h2 id='methods' class='small-section-header'>
Methods<a href='#methods' class='anchor'></a>
</h2>
<h3 id='impl' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="struct" href="../../../../../../actix_web/actix/actix/dev/actors/resolver/struct.Resolve.html" title="struct actix_web::actix::actix::dev::actors::resolver::Resolve">Resolve</a></code><a href='#impl' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='method.host' class="method"><span id='host.v' class='invisible'><table class='table-display'><tbody><tr><td><code>pub fn <a href='#method.host' class='fnname'>host</a>&lt;T&gt;(host: T) -&gt; <a class="struct" href="../../../../../../actix_web/actix/actix/dev/actors/resolver/struct.Resolve.html" title="struct actix_web::actix::actix::dev::actors::resolver::Resolve">Resolve</a> <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>&gt;,&nbsp;</span></code></td><td></td></tr></tbody></table></span></h4><h4 id='method.host_and_port' class="method"><span id='host_and_port.v' class='invisible'><table class='table-display'><tbody><tr><td><code>pub fn <a href='#method.host_and_port' class='fnname'>host_and_port</a>&lt;T&gt;(host: T, port: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u16.html">u16</a>) -&gt; <a class="struct" href="../../../../../../actix_web/actix/actix/dev/actors/resolver/struct.Resolve.html" title="struct actix_web::actix::actix::dev::actors::resolver::Resolve">Resolve</a> <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>&gt;,&nbsp;</span></code></td><td></td></tr></tbody></table></span></h4></div>
<h2 id='implementations' class='small-section-header'>
Trait Implementations<a href='#implementations' class='anchor'></a>
</h2>
<div id='implementations-list'><h3 id='impl-Message' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="../../../../../../actix_web/actix/actix/dev/trait.Message.html" title="trait actix_web::actix::actix::dev::Message">Message</a> for <a class="struct" href="../../../../../../actix_web/actix/actix/dev/actors/resolver/struct.Resolve.html" title="struct actix_web::actix::actix::dev::actors::resolver::Resolve">Resolve</a></code><a href='#impl-Message' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='associatedtype.Result' class="type"><span id='Result.t' class='invisible'><code>type <a href='../../../../../../actix_web/actix/actix/dev/trait.Message.html#associatedtype.Result' class="type">Result</a> = <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec_deque/struct.VecDeque.html" title="struct alloc::vec_deque::VecDeque">VecDeque</a>&lt;<a class="enum" href="https://doc.rust-lang.org/nightly/std/net/addr/enum.SocketAddr.html" title="enum std::net::addr::SocketAddr">SocketAddr</a>&gt;, <a class="enum" href="../../../../../../actix_web/actix/actix/dev/actors/resolver/enum.ResolverError.html" title="enum actix_web::actix::actix::dev::actors::resolver::ResolverError">ResolverError</a>&gt;</code></span></h4>
<div class='docblock'><p>The type of value that this message will resolved with if it is successful. <a href="../../../../../../actix_web/actix/actix/dev/trait.Message.html#associatedtype.Result">Read more</a></p>
</div></div><h3 id='impl-Handler%3CResolve%3E' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="../../../../../../actix_web/actix/actix/dev/trait.Handler.html" title="trait actix_web::actix::actix::dev::Handler">Handler</a>&lt;<a class="struct" href="../../../../../../actix_web/actix/actix/dev/actors/resolver/struct.Resolve.html" title="struct actix_web::actix::actix::dev::actors::resolver::Resolve">Resolve</a>&gt; for <a class="struct" href="../../../../../../actix_web/actix/actix/dev/actors/resolver/struct.Resolver.html" title="struct actix_web::actix::actix::dev::actors::resolver::Resolver">Resolver</a></code><a href='#impl-Handler%3CResolve%3E' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='associatedtype.Result-1' class="type"><span id='Result.t-1' class='invisible'><code>type <a href='../../../../../../actix_web/actix/actix/dev/trait.Handler.html#associatedtype.Result' class="type">Result</a> = <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;<a class="trait" href="../../../../../../actix_web/actix/actix/dev/trait.ActorFuture.html" title="trait actix_web::actix::actix::dev::ActorFuture">ActorFuture</a>&lt;Error = <a class="enum" href="../../../../../../actix_web/actix/actix/dev/actors/resolver/enum.ResolverError.html" title="enum actix_web::actix::actix::dev::actors::resolver::ResolverError">ResolverError</a>, Actor = <a class="struct" href="../../../../../../actix_web/actix/actix/dev/actors/resolver/struct.Resolver.html" title="struct actix_web::actix::actix::dev::actors::resolver::Resolver">Resolver</a>, Item = <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec_deque/struct.VecDeque.html" title="struct alloc::vec_deque::VecDeque">VecDeque</a>&lt;<a class="enum" href="https://doc.rust-lang.org/nightly/std/net/addr/enum.SocketAddr.html" title="enum std::net::addr::SocketAddr">SocketAddr</a>&gt;&gt; + 'static&gt;</code></span></h4>
<div class='docblock'><p>The type of value that this handle will return</p>
</div><h4 id='method.handle' class="method"><span id='handle.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../../../../../../actix_web/actix/actix/dev/trait.Handler.html#tymethod.handle' class='fnname'>handle</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;mut self, <br>&nbsp;&nbsp;&nbsp;&nbsp;msg: <a class="struct" href="../../../../../../actix_web/actix/actix/dev/actors/resolver/struct.Resolve.html" title="struct actix_web::actix::actix::dev::actors::resolver::Resolve">Resolve</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;mut &lt;<a class="struct" href="../../../../../../actix_web/actix/actix/dev/actors/resolver/struct.Resolver.html" title="struct actix_web::actix::actix::dev::actors::resolver::Resolver">Resolver</a> as <a class="trait" href="../../../../../../actix_web/actix/actix/trait.Actor.html" title="trait actix_web::actix::actix::Actor">Actor</a>&gt;::<a class="type" href="../../../../../../actix_web/actix/actix/trait.Actor.html#associatedtype.Context" title="type actix_web::actix::actix::Actor::Context">Context</a><br>) -&gt; &lt;<a class="struct" href="../../../../../../actix_web/actix/actix/dev/actors/resolver/struct.Resolver.html" title="struct actix_web::actix::actix::dev::actors::resolver::Resolver">Resolver</a> as <a class="trait" href="../../../../../../actix_web/actix/actix/dev/trait.Handler.html" title="trait actix_web::actix::actix::dev::Handler">Handler</a>&lt;<a class="struct" href="../../../../../../actix_web/actix/actix/dev/actors/resolver/struct.Resolve.html" title="struct actix_web::actix::actix::dev::actors::resolver::Resolve">Resolve</a>&gt;&gt;::<a class="type" href="../../../../../../actix_web/actix/actix/dev/trait.Handler.html#associatedtype.Result" title="type actix_web::actix::actix::dev::Handler::Result">Result</a></code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>Method is called for every message received by this Actor</p>
</div></div><h3 id='impl-Debug' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="struct" href="../../../../../../actix_web/actix/actix/dev/actors/resolver/struct.Resolve.html" title="struct actix_web::actix::actix::dev::actors::resolver::Resolve">Resolve</a></code><a href='#impl-Debug' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='method.fmt' class="method"><span id='fmt.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt' class='fnname'>fmt</a>(&amp;self, f: &amp;mut <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Error.html" title="struct core::fmt::Error">Error</a>&gt;</code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt">Read more</a></p>
</div></div><h3 id='impl-Eq' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.Eq.html" title="trait core::cmp::Eq">Eq</a> for <a class="struct" href="../../../../../../actix_web/actix/actix/dev/actors/resolver/struct.Resolve.html" title="struct actix_web::actix::actix::dev::actors::resolver::Resolve">Resolve</a></code><a href='#impl-Eq' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='impl-items'></div><h3 id='impl-PartialEq%3CResolve%3E' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a>&lt;<a class="struct" href="../../../../../../actix_web/actix/actix/dev/actors/resolver/struct.Resolve.html" title="struct actix_web::actix::actix::dev::actors::resolver::Resolve">Resolve</a>&gt; for <a class="struct" href="../../../../../../actix_web/actix/actix/dev/actors/resolver/struct.Resolve.html" title="struct actix_web::actix::actix::dev::actors::resolver::Resolve">Resolve</a></code><a href='#impl-PartialEq%3CResolve%3E' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='method.eq' class="method"><span id='eq.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html#tymethod.eq' class='fnname'>eq</a>(&amp;self, other: &amp;<a class="struct" href="../../../../../../actix_web/actix/actix/dev/actors/resolver/struct.Resolve.html" title="struct actix_web::actix::actix::dev::actors::resolver::Resolve">Resolve</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>This method tests for <code>self</code> and <code>other</code> values to be equal, and is used by <code>==</code>. <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html#tymethod.eq">Read more</a></p>
</div><h4 id='method.ne' class="method"><span id='ne.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html#method.ne' class='fnname'>ne</a>(&amp;self, other: &amp;<a class="struct" href="../../../../../../actix_web/actix/actix/dev/actors/resolver/struct.Resolve.html" title="struct actix_web::actix::actix::dev::actors::resolver::Resolve">Resolve</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>This method tests for <code>!=</code>.</p>
</div></div></div>
<h2 id='synthetic-implementations' class='small-section-header'>
Auto Trait Implementations<a href='#synthetic-implementations' class='anchor'></a>
</h2>
<div id='synthetic-implementations-list'>
<h3 id='impl-Send' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> for <a class="struct" href="../../../../../../actix_web/actix/actix/dev/actors/resolver/struct.Resolve.html" title="struct actix_web::actix::actix::dev::actors::resolver::Resolve">Resolve</a></code><a href='#impl-Send' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='impl-items'></div><h3 id='impl-Sync' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> for <a class="struct" href="../../../../../../actix_web/actix/actix/dev/actors/resolver/struct.Resolve.html" title="struct actix_web::actix::actix::dev::actors::resolver::Resolve">Resolve</a></code><a href='#impl-Sync' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='impl-items'></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><p>Search multiple things at once by splitting your query with comma (e.g. <code>str,u8</code> or <code>String,struct:Vec,test</code>)</p></div></div></aside><script>window.rootPath = "../../../../../../";window.currentCrate = "actix_web";</script><script src="../../../../../../aliases.js"></script><script src="../../../../../../main.js"></script><script defer src="../../../../../../search-index.js"></script></body></html>

View File

@ -0,0 +1,36 @@
<!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 `Resolver` struct in crate `actix_web`."><meta name="keywords" content="rust, rustlang, rust-lang, Resolver"><title>actix_web::actix::actix::dev::actors::resolver::Resolver - 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="../../../../../../light.css" id="themeStyle"><script src="../../../../../../storage.js"></script></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><p class='location'>Struct Resolver</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#methods">Methods</a><div class="sidebar-links"><a href="#method.new">new</a></div><a class="sidebar-title" href="#implementations">Trait Implementations</a><div class="sidebar-links"><a href="#impl-Handler%3CConnectAddr%3E">Handler&lt;ConnectAddr&gt;</a><a href="#impl-Handler%3CConnect%3E">Handler&lt;Connect&gt;</a><a href="#impl-Handler%3CResolve%3E">Handler&lt;Resolve&gt;</a><a href="#impl-Default">Default</a><a href="#impl-SystemService">SystemService</a><a href="#impl-Supervised">Supervised</a><a href="#impl-Actor">Actor</a></div><a class="sidebar-title" href="#synthetic-implementations">Auto Trait Implementations</a><div class="sidebar-links"><a href="#impl-Send">Send</a><a href="#impl-Sync">Sync</a></div></div><p class='location'><a href='../../../../../index.html'>actix_web</a>::<wbr><a href='../../../../index.html'>actix</a>::<wbr><a href='../../../index.html'>actix</a>::<wbr><a href='../../index.html'>dev</a>::<wbr><a href='../index.html'>actors</a>::<wbr><a href='index.html'>resolver</a></p><script>window.sidebarCurrent = {name: 'Resolver', 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"><a id="settings-menu" href="../../../../../../settings.html"><img src="../../../../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='in-band'>Struct <a href='../../../../../index.html'>actix_web</a>::<wbr><a href='../../../../index.html'>actix</a>::<wbr><a href='../../../index.html'>actix</a>::<wbr><a href='../../index.html'>dev</a>::<wbr><a href='../index.html'>actors</a>::<wbr><a href='index.html'>resolver</a>::<wbr><a class="struct" href=''>Resolver</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></span></h1><div class="docblock type-decl"><pre class='rust struct'>pub struct Resolver { /* fields omitted */ }</pre></div>
<h2 id='methods' class='small-section-header'>
Methods<a href='#methods' class='anchor'></a>
</h2>
<h3 id='impl' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="struct" href="../../../../../../actix_web/actix/actix/dev/actors/resolver/struct.Resolver.html" title="struct actix_web::actix::actix::dev::actors::resolver::Resolver">Resolver</a></code><a href='#impl' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='method.new' class="method"><span id='new.v' class='invisible'><table class='table-display'><tbody><tr><td><code>pub fn <a href='#method.new' class='fnname'>new</a>(config: ResolverConfig, options: ResolverOpts) -&gt; <a class="struct" href="../../../../../../actix_web/actix/actix/dev/actors/resolver/struct.Resolver.html" title="struct actix_web::actix::actix::dev::actors::resolver::Resolver">Resolver</a></code></td><td></td></tr></tbody></table></span></h4></div>
<h2 id='implementations' class='small-section-header'>
Trait Implementations<a href='#implementations' class='anchor'></a>
</h2>
<div id='implementations-list'><h3 id='impl-Handler%3CConnectAddr%3E' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="../../../../../../actix_web/actix/actix/dev/trait.Handler.html" title="trait actix_web::actix::actix::dev::Handler">Handler</a>&lt;<a class="struct" href="../../../../../../actix_web/actix/actix/dev/actors/resolver/struct.ConnectAddr.html" title="struct actix_web::actix::actix::dev::actors::resolver::ConnectAddr">ConnectAddr</a>&gt; for <a class="struct" href="../../../../../../actix_web/actix/actix/dev/actors/resolver/struct.Resolver.html" title="struct actix_web::actix::actix::dev::actors::resolver::Resolver">Resolver</a></code><a href='#impl-Handler%3CConnectAddr%3E' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='associatedtype.Result' class="type"><span id='Result.t' class='invisible'><code>type <a href='../../../../../../actix_web/actix/actix/dev/trait.Handler.html#associatedtype.Result' class="type">Result</a> = <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;<a class="trait" href="../../../../../../actix_web/actix/actix/dev/trait.ActorFuture.html" title="trait actix_web::actix::actix::dev::ActorFuture">ActorFuture</a>&lt;Error = <a class="enum" href="../../../../../../actix_web/actix/actix/dev/actors/resolver/enum.ResolverError.html" title="enum actix_web::actix::actix::dev::actors::resolver::ResolverError">ResolverError</a>, Actor = <a class="struct" href="../../../../../../actix_web/actix/actix/dev/actors/resolver/struct.Resolver.html" title="struct actix_web::actix::actix::dev::actors::resolver::Resolver">Resolver</a>, Item = <a class="struct" href="https://docs.rs/tokio-tcp/0.1.0/tokio_tcp/stream/struct.TcpStream.html" title="struct tokio_tcp::stream::TcpStream">TcpStream</a>&gt; + 'static&gt;</code></span></h4>
<div class='docblock'><p>The type of value that this handle will return</p>
</div><h4 id='method.handle' class="method"><span id='handle.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../../../../../../actix_web/actix/actix/dev/trait.Handler.html#tymethod.handle' class='fnname'>handle</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;mut self, <br>&nbsp;&nbsp;&nbsp;&nbsp;msg: <a class="struct" href="../../../../../../actix_web/actix/actix/dev/actors/resolver/struct.ConnectAddr.html" title="struct actix_web::actix::actix::dev::actors::resolver::ConnectAddr">ConnectAddr</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;mut &lt;<a class="struct" href="../../../../../../actix_web/actix/actix/dev/actors/resolver/struct.Resolver.html" title="struct actix_web::actix::actix::dev::actors::resolver::Resolver">Resolver</a> as <a class="trait" href="../../../../../../actix_web/actix/actix/trait.Actor.html" title="trait actix_web::actix::actix::Actor">Actor</a>&gt;::<a class="type" href="../../../../../../actix_web/actix/actix/trait.Actor.html#associatedtype.Context" title="type actix_web::actix::actix::Actor::Context">Context</a><br>) -&gt; &lt;<a class="struct" href="../../../../../../actix_web/actix/actix/dev/actors/resolver/struct.Resolver.html" title="struct actix_web::actix::actix::dev::actors::resolver::Resolver">Resolver</a> as <a class="trait" href="../../../../../../actix_web/actix/actix/dev/trait.Handler.html" title="trait actix_web::actix::actix::dev::Handler">Handler</a>&lt;<a class="struct" href="../../../../../../actix_web/actix/actix/dev/actors/resolver/struct.ConnectAddr.html" title="struct actix_web::actix::actix::dev::actors::resolver::ConnectAddr">ConnectAddr</a>&gt;&gt;::<a class="type" href="../../../../../../actix_web/actix/actix/dev/trait.Handler.html#associatedtype.Result" title="type actix_web::actix::actix::dev::Handler::Result">Result</a></code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>Method is called for every message received by this Actor</p>
</div></div><h3 id='impl-Handler%3CConnect%3E' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="../../../../../../actix_web/actix/actix/dev/trait.Handler.html" title="trait actix_web::actix::actix::dev::Handler">Handler</a>&lt;<a class="struct" href="../../../../../../actix_web/actix/actix/dev/actors/resolver/struct.Connect.html" title="struct actix_web::actix::actix::dev::actors::resolver::Connect">Connect</a>&gt; for <a class="struct" href="../../../../../../actix_web/actix/actix/dev/actors/resolver/struct.Resolver.html" title="struct actix_web::actix::actix::dev::actors::resolver::Resolver">Resolver</a></code><a href='#impl-Handler%3CConnect%3E' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='associatedtype.Result-1' class="type"><span id='Result.t-1' class='invisible'><code>type <a href='../../../../../../actix_web/actix/actix/dev/trait.Handler.html#associatedtype.Result' class="type">Result</a> = <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;<a class="trait" href="../../../../../../actix_web/actix/actix/dev/trait.ActorFuture.html" title="trait actix_web::actix::actix::dev::ActorFuture">ActorFuture</a>&lt;Error = <a class="enum" href="../../../../../../actix_web/actix/actix/dev/actors/resolver/enum.ResolverError.html" title="enum actix_web::actix::actix::dev::actors::resolver::ResolverError">ResolverError</a>, Actor = <a class="struct" href="../../../../../../actix_web/actix/actix/dev/actors/resolver/struct.Resolver.html" title="struct actix_web::actix::actix::dev::actors::resolver::Resolver">Resolver</a>, Item = <a class="struct" href="https://docs.rs/tokio-tcp/0.1.0/tokio_tcp/stream/struct.TcpStream.html" title="struct tokio_tcp::stream::TcpStream">TcpStream</a>&gt; + 'static&gt;</code></span></h4>
<div class='docblock'><p>The type of value that this handle will return</p>
</div><h4 id='method.handle-1' class="method"><span id='handle.v-1' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../../../../../../actix_web/actix/actix/dev/trait.Handler.html#tymethod.handle' class='fnname'>handle</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;mut self, <br>&nbsp;&nbsp;&nbsp;&nbsp;msg: <a class="struct" href="../../../../../../actix_web/actix/actix/dev/actors/resolver/struct.Connect.html" title="struct actix_web::actix::actix::dev::actors::resolver::Connect">Connect</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;mut &lt;<a class="struct" href="../../../../../../actix_web/actix/actix/dev/actors/resolver/struct.Resolver.html" title="struct actix_web::actix::actix::dev::actors::resolver::Resolver">Resolver</a> as <a class="trait" href="../../../../../../actix_web/actix/actix/trait.Actor.html" title="trait actix_web::actix::actix::Actor">Actor</a>&gt;::<a class="type" href="../../../../../../actix_web/actix/actix/trait.Actor.html#associatedtype.Context" title="type actix_web::actix::actix::Actor::Context">Context</a><br>) -&gt; &lt;<a class="struct" href="../../../../../../actix_web/actix/actix/dev/actors/resolver/struct.Resolver.html" title="struct actix_web::actix::actix::dev::actors::resolver::Resolver">Resolver</a> as <a class="trait" href="../../../../../../actix_web/actix/actix/dev/trait.Handler.html" title="trait actix_web::actix::actix::dev::Handler">Handler</a>&lt;<a class="struct" href="../../../../../../actix_web/actix/actix/dev/actors/resolver/struct.Connect.html" title="struct actix_web::actix::actix::dev::actors::resolver::Connect">Connect</a>&gt;&gt;::<a class="type" href="../../../../../../actix_web/actix/actix/dev/trait.Handler.html#associatedtype.Result" title="type actix_web::actix::actix::dev::Handler::Result">Result</a></code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>Method is called for every message received by this Actor</p>
</div></div><h3 id='impl-Handler%3CResolve%3E' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="../../../../../../actix_web/actix/actix/dev/trait.Handler.html" title="trait actix_web::actix::actix::dev::Handler">Handler</a>&lt;<a class="struct" href="../../../../../../actix_web/actix/actix/dev/actors/resolver/struct.Resolve.html" title="struct actix_web::actix::actix::dev::actors::resolver::Resolve">Resolve</a>&gt; for <a class="struct" href="../../../../../../actix_web/actix/actix/dev/actors/resolver/struct.Resolver.html" title="struct actix_web::actix::actix::dev::actors::resolver::Resolver">Resolver</a></code><a href='#impl-Handler%3CResolve%3E' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='associatedtype.Result-2' class="type"><span id='Result.t-2' class='invisible'><code>type <a href='../../../../../../actix_web/actix/actix/dev/trait.Handler.html#associatedtype.Result' class="type">Result</a> = <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;<a class="trait" href="../../../../../../actix_web/actix/actix/dev/trait.ActorFuture.html" title="trait actix_web::actix::actix::dev::ActorFuture">ActorFuture</a>&lt;Error = <a class="enum" href="../../../../../../actix_web/actix/actix/dev/actors/resolver/enum.ResolverError.html" title="enum actix_web::actix::actix::dev::actors::resolver::ResolverError">ResolverError</a>, Actor = <a class="struct" href="../../../../../../actix_web/actix/actix/dev/actors/resolver/struct.Resolver.html" title="struct actix_web::actix::actix::dev::actors::resolver::Resolver">Resolver</a>, Item = <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec_deque/struct.VecDeque.html" title="struct alloc::vec_deque::VecDeque">VecDeque</a>&lt;<a class="enum" href="https://doc.rust-lang.org/nightly/std/net/addr/enum.SocketAddr.html" title="enum std::net::addr::SocketAddr">SocketAddr</a>&gt;&gt; + 'static&gt;</code></span></h4>
<div class='docblock'><p>The type of value that this handle will return</p>
</div><h4 id='method.handle-2' class="method"><span id='handle.v-2' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../../../../../../actix_web/actix/actix/dev/trait.Handler.html#tymethod.handle' class='fnname'>handle</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;mut self, <br>&nbsp;&nbsp;&nbsp;&nbsp;msg: <a class="struct" href="../../../../../../actix_web/actix/actix/dev/actors/resolver/struct.Resolve.html" title="struct actix_web::actix::actix::dev::actors::resolver::Resolve">Resolve</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;mut &lt;<a class="struct" href="../../../../../../actix_web/actix/actix/dev/actors/resolver/struct.Resolver.html" title="struct actix_web::actix::actix::dev::actors::resolver::Resolver">Resolver</a> as <a class="trait" href="../../../../../../actix_web/actix/actix/trait.Actor.html" title="trait actix_web::actix::actix::Actor">Actor</a>&gt;::<a class="type" href="../../../../../../actix_web/actix/actix/trait.Actor.html#associatedtype.Context" title="type actix_web::actix::actix::Actor::Context">Context</a><br>) -&gt; &lt;<a class="struct" href="../../../../../../actix_web/actix/actix/dev/actors/resolver/struct.Resolver.html" title="struct actix_web::actix::actix::dev::actors::resolver::Resolver">Resolver</a> as <a class="trait" href="../../../../../../actix_web/actix/actix/dev/trait.Handler.html" title="trait actix_web::actix::actix::dev::Handler">Handler</a>&lt;<a class="struct" href="../../../../../../actix_web/actix/actix/dev/actors/resolver/struct.Resolve.html" title="struct actix_web::actix::actix::dev::actors::resolver::Resolve">Resolve</a>&gt;&gt;::<a class="type" href="../../../../../../actix_web/actix/actix/dev/trait.Handler.html#associatedtype.Result" title="type actix_web::actix::actix::dev::Handler::Result">Result</a></code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>Method is called for every message received by this Actor</p>
</div></div><h3 id='impl-Default' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/default/trait.Default.html" title="trait core::default::Default">Default</a> for <a class="struct" href="../../../../../../actix_web/actix/actix/dev/actors/resolver/struct.Resolver.html" title="struct actix_web::actix::actix::dev::actors::resolver::Resolver">Resolver</a></code><a href='#impl-Default' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='method.default' class="method"><span id='default.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='https://doc.rust-lang.org/nightly/core/default/trait.Default.html#tymethod.default' class='fnname'>default</a>() -&gt; <a class="struct" href="../../../../../../actix_web/actix/actix/dev/actors/resolver/struct.Resolver.html" title="struct actix_web::actix::actix::dev::actors::resolver::Resolver">Resolver</a></code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>Returns the &quot;default value&quot; for a type. <a href="https://doc.rust-lang.org/nightly/core/default/trait.Default.html#tymethod.default">Read more</a></p>
</div></div><h3 id='impl-SystemService' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="../../../../../../actix_web/actix/actix/trait.SystemService.html" title="trait actix_web::actix::actix::SystemService">SystemService</a> for <a class="struct" href="../../../../../../actix_web/actix/actix/dev/actors/resolver/struct.Resolver.html" title="struct actix_web::actix::actix::dev::actors::resolver::Resolver">Resolver</a></code><a href='#impl-SystemService' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='method.start_service' class="method"><span id='start_service.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../../../../../../actix_web/actix/actix/trait.SystemService.html#method.start_service' class='fnname'>start_service</a>(sys: &amp;<a class="struct" href="../../../../../../actix_web/actix/actix/struct.Addr.html" title="struct actix_web::actix::actix::Addr">Addr</a>&lt;<a class="struct" href="../../../../../../actix_web/actix/actix/dev/struct.Arbiter.html" title="struct actix_web::actix::actix::dev::Arbiter">Arbiter</a>&gt;) -&gt; <a class="struct" href="../../../../../../actix_web/actix/actix/struct.Addr.html" title="struct actix_web::actix::actix::Addr">Addr</a>&lt;Self&gt;</code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>Construct and srtart system service</p>
</div><h4 id='method.service_started' class="method"><span id='service_started.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../../../../../../actix_web/actix/actix/trait.SystemService.html#method.service_started' class='fnname'>service_started</a>(&amp;mut self, ctx: &amp;mut <a class="struct" href="../../../../../../actix_web/actix/actix/struct.Context.html" title="struct actix_web::actix::actix::Context">Context</a>&lt;Self&gt;)</code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>Method is called during service initialization.</p>
</div><h4 id='method.from_registry' class="method"><span id='from_registry.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../../../../../../actix_web/actix/actix/trait.SystemService.html#method.from_registry' class='fnname'>from_registry</a>() -&gt; <a class="struct" href="../../../../../../actix_web/actix/actix/struct.Addr.html" title="struct actix_web::actix::actix::Addr">Addr</a>&lt;Self&gt;</code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>Get actor's address from system registry</p>
</div></div><h3 id='impl-Supervised' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="../../../../../../actix_web/actix/actix/trait.Supervised.html" title="trait actix_web::actix::actix::Supervised">Supervised</a> for <a class="struct" href="../../../../../../actix_web/actix/actix/dev/actors/resolver/struct.Resolver.html" title="struct actix_web::actix::actix::dev::actors::resolver::Resolver">Resolver</a></code><a href='#impl-Supervised' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='method.restarting' class="method"><span id='restarting.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../../../../../../actix_web/actix/actix/trait.Supervised.html#method.restarting' class='fnname'>restarting</a>(&amp;mut self, ctx: &amp;mut Self::<a class="type" href="../../../../../../actix_web/actix/actix/trait.Actor.html#associatedtype.Context" title="type actix_web::actix::actix::Actor::Context">Context</a>)</code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>Method called when supervisor restarting failed actor</p>
</div></div><h3 id='impl-Actor' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="../../../../../../actix_web/actix/actix/trait.Actor.html" title="trait actix_web::actix::actix::Actor">Actor</a> for <a class="struct" href="../../../../../../actix_web/actix/actix/dev/actors/resolver/struct.Resolver.html" title="struct actix_web::actix::actix::dev::actors::resolver::Resolver">Resolver</a></code><a href='#impl-Actor' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='associatedtype.Context' class="type"><span id='Context.t' class='invisible'><code>type <a href='../../../../../../actix_web/actix/actix/trait.Actor.html#associatedtype.Context' class="type">Context</a> = <a class="struct" href="../../../../../../actix_web/actix/actix/struct.Context.html" title="struct actix_web::actix::actix::Context">Context</a>&lt;<a class="struct" href="../../../../../../actix_web/actix/actix/dev/actors/resolver/struct.Resolver.html" title="struct actix_web::actix::actix::dev::actors::resolver::Resolver">Resolver</a>&gt;</code></span></h4>
<div class='docblock'><p>Actor execution context type</p>
</div><h4 id='method.started' class="method"><span id='started.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../../../../../../actix_web/actix/actix/trait.Actor.html#method.started' class='fnname'>started</a>(&amp;mut self, ctx: &amp;mut &lt;<a class="struct" href="../../../../../../actix_web/actix/actix/dev/actors/resolver/struct.Resolver.html" title="struct actix_web::actix::actix::dev::actors::resolver::Resolver">Resolver</a> as <a class="trait" href="../../../../../../actix_web/actix/actix/trait.Actor.html" title="trait actix_web::actix::actix::Actor">Actor</a>&gt;::<a class="type" href="../../../../../../actix_web/actix/actix/trait.Actor.html#associatedtype.Context" title="type actix_web::actix::actix::Actor::Context">Context</a>)</code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>Method is called when actor get polled first time.</p>
</div><h4 id='method.stopping' class="method"><span id='stopping.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../../../../../../actix_web/actix/actix/trait.Actor.html#method.stopping' class='fnname'>stopping</a>(&amp;mut self, ctx: &amp;mut Self::<a class="type" href="../../../../../../actix_web/actix/actix/trait.Actor.html#associatedtype.Context" title="type actix_web::actix::actix::Actor::Context">Context</a>) -&gt; <a class="enum" href="../../../../../../actix_web/actix/actix/enum.Running.html" title="enum actix_web::actix::actix::Running">Running</a></code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>Method is called after an actor is in <code>Actor::Stopping</code> state. There could be several reasons for stopping. <code>Context::stop</code> get called by the actor itself. All addresses to current actor get dropped and no more evented objects left in the context. <a href="../../../../../../actix_web/actix/actix/trait.Actor.html#method.stopping">Read more</a></p>
</div><h4 id='method.stopped' class="method"><span id='stopped.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../../../../../../actix_web/actix/actix/trait.Actor.html#method.stopped' class='fnname'>stopped</a>(&amp;mut self, ctx: &amp;mut Self::<a class="type" href="../../../../../../actix_web/actix/actix/trait.Actor.html#associatedtype.Context" title="type actix_web::actix::actix::Actor::Context">Context</a>)</code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>Method is called after an actor is stopped, it can be used to perform any needed cleanup work or spawning more actors. This is final state, after this call actor get dropped. <a href="../../../../../../actix_web/actix/actix/trait.Actor.html#method.stopped">Read more</a></p>
</div><h4 id='method.start' class="method"><span id='start.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../../../../../../actix_web/actix/actix/trait.Actor.html#method.start' class='fnname'>start</a>(self) -&gt; <a class="struct" href="../../../../../../actix_web/actix/actix/struct.Addr.html" title="struct actix_web::actix::actix::Addr">Addr</a>&lt;Self&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: <a class="trait" href="../../../../../../actix_web/actix/actix/trait.Actor.html" title="trait actix_web::actix::actix::Actor">Actor</a>&lt;Context = <a class="struct" href="../../../../../../actix_web/actix/actix/struct.Context.html" title="struct actix_web::actix::actix::Context">Context</a>&lt;Self&gt;&gt;,&nbsp;</span></code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>Start new asynchronous actor, returns address of newly created actor. <a href="../../../../../../actix_web/actix/actix/trait.Actor.html#method.start">Read more</a></p>
</div><h4 id='method.start_default' class="method"><span id='start_default.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../../../../../../actix_web/actix/actix/trait.Actor.html#method.start_default' class='fnname'>start_default</a>() -&gt; <a class="struct" href="../../../../../../actix_web/actix/actix/struct.Addr.html" title="struct actix_web::actix::actix::Addr">Addr</a>&lt;Self&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: <a class="trait" href="../../../../../../actix_web/actix/actix/trait.Actor.html" title="trait actix_web::actix::actix::Actor">Actor</a>&lt;Context = <a class="struct" href="../../../../../../actix_web/actix/actix/struct.Context.html" title="struct actix_web::actix::actix::Context">Context</a>&lt;Self&gt;&gt; + <a class="trait" href="https://doc.rust-lang.org/nightly/core/default/trait.Default.html" title="trait core::default::Default">Default</a>,&nbsp;</span></code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>Start new asynchronous actor, returns address of newly created actor.</p>
</div><h4 id='method.create' class="method"><span id='create.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../../../../../../actix_web/actix/actix/trait.Actor.html#method.create' class='fnname'>create</a>&lt;F&gt;(f: F) -&gt; <a class="struct" href="../../../../../../actix_web/actix/actix/struct.Addr.html" title="struct actix_web::actix::actix::Addr">Addr</a>&lt;Self&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;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>(&amp;mut <a class="struct" href="../../../../../../actix_web/actix/actix/struct.Context.html" title="struct actix_web::actix::actix::Context">Context</a>&lt;Self&gt;) -&gt; Self + 'static,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: <a class="trait" href="../../../../../../actix_web/actix/actix/trait.Actor.html" title="trait actix_web::actix::actix::Actor">Actor</a>&lt;Context = <a class="struct" href="../../../../../../actix_web/actix/actix/struct.Context.html" title="struct actix_web::actix::actix::Context">Context</a>&lt;Self&gt;&gt;,&nbsp;</span></code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>Use <code>create</code> method, if you need <code>Context</code> object during actor initialization. <a href="../../../../../../actix_web/actix/actix/trait.Actor.html#method.create">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>
</h2>
<div id='synthetic-implementations-list'>
<h3 id='impl-Send' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> for <a class="struct" href="../../../../../../actix_web/actix/actix/dev/actors/resolver/struct.Resolver.html" title="struct actix_web::actix::actix::dev::actors::resolver::Resolver">Resolver</a></code><a href='#impl-Send' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='impl-items'></div><h3 id='impl-Sync' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> for <a class="struct" href="../../../../../../actix_web/actix/actix/dev/actors/resolver/struct.Resolver.html" title="struct actix_web::actix::actix::dev::actors::resolver::Resolver">Resolver</a></code><a href='#impl-Sync' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='impl-items'></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><p>Search multiple things at once by splitting your query with comma (e.g. <code>str,u8</code> or <code>String,struct:Vec,test</code>)</p></div></div></aside><script>window.rootPath = "../../../../../../";window.currentCrate = "actix_web";</script><script src="../../../../../../aliases.js"></script><script src="../../../../../../main.js"></script><script defer src="../../../../../../search-index.js"></script></body></html>

View File

@ -0,0 +1,28 @@
<!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 `TcpConnector` struct in crate `actix_web`."><meta name="keywords" content="rust, rustlang, rust-lang, TcpConnector"><title>actix_web::actix::actix::dev::actors::resolver::TcpConnector - 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="../../../../../../light.css" id="themeStyle"><script src="../../../../../../storage.js"></script></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><p class='location'>Struct TcpConnector</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#methods">Methods</a><div class="sidebar-links"><a href="#method.new">new</a><a href="#method.with_timeout">with_timeout</a></div><a class="sidebar-title" href="#implementations">Trait Implementations</a><div class="sidebar-links"><a href="#impl-ActorFuture">ActorFuture</a></div><a class="sidebar-title" href="#synthetic-implementations">Auto Trait Implementations</a><div class="sidebar-links"><a href="#impl-Send">Send</a><a href="#impl-Sync">Sync</a></div></div><p class='location'><a href='../../../../../index.html'>actix_web</a>::<wbr><a href='../../../../index.html'>actix</a>::<wbr><a href='../../../index.html'>actix</a>::<wbr><a href='../../index.html'>dev</a>::<wbr><a href='../index.html'>actors</a>::<wbr><a href='index.html'>resolver</a></p><script>window.sidebarCurrent = {name: 'TcpConnector', 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"><a id="settings-menu" href="../../../../../../settings.html"><img src="../../../../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='in-band'>Struct <a href='../../../../../index.html'>actix_web</a>::<wbr><a href='../../../../index.html'>actix</a>::<wbr><a href='../../../index.html'>actix</a>::<wbr><a href='../../index.html'>dev</a>::<wbr><a href='../index.html'>actors</a>::<wbr><a href='index.html'>resolver</a>::<wbr><a class="struct" href=''>TcpConnector</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></span></h1><div class="docblock type-decl"><pre class='rust struct'>pub struct TcpConnector { /* fields omitted */ }</pre></div><div class='docblock'><p>Tcp stream connector</p>
</div>
<h2 id='methods' class='small-section-header'>
Methods<a href='#methods' class='anchor'></a>
</h2>
<h3 id='impl' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="struct" href="../../../../../../actix_web/actix/actix/dev/actors/resolver/struct.TcpConnector.html" title="struct actix_web::actix::actix::dev::actors::resolver::TcpConnector">TcpConnector</a></code><a href='#impl' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='method.new' class="method"><span id='new.v' class='invisible'><table class='table-display'><tbody><tr><td><code>pub fn <a href='#method.new' class='fnname'>new</a>(addrs: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec_deque/struct.VecDeque.html" title="struct alloc::vec_deque::VecDeque">VecDeque</a>&lt;<a class="enum" href="https://doc.rust-lang.org/nightly/std/net/addr/enum.SocketAddr.html" title="enum std::net::addr::SocketAddr">SocketAddr</a>&gt;) -&gt; <a class="struct" href="../../../../../../actix_web/actix/actix/dev/actors/resolver/struct.TcpConnector.html" title="struct actix_web::actix::actix::dev::actors::resolver::TcpConnector">TcpConnector</a></code></td><td></td></tr></tbody></table></span></h4><h4 id='method.with_timeout' class="method"><span id='with_timeout.v' class='invisible'><table class='table-display'><tbody><tr><td><code>pub fn <a href='#method.with_timeout' class='fnname'>with_timeout</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;addrs: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec_deque/struct.VecDeque.html" title="struct alloc::vec_deque::VecDeque">VecDeque</a>&lt;<a class="enum" href="https://doc.rust-lang.org/nightly/std/net/addr/enum.SocketAddr.html" title="enum std::net::addr::SocketAddr">SocketAddr</a>&gt;, <br>&nbsp;&nbsp;&nbsp;&nbsp;timeout: <a class="struct" href="https://doc.rust-lang.org/nightly/core/time/struct.Duration.html" title="struct core::time::Duration">Duration</a><br>) -&gt; <a class="struct" href="../../../../../../actix_web/actix/actix/dev/actors/resolver/struct.TcpConnector.html" title="struct actix_web::actix::actix::dev::actors::resolver::TcpConnector">TcpConnector</a></code></td><td></td></tr></tbody></table></span></h4></div>
<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 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/actix/actix/dev/actors/resolver/struct.TcpConnector.html" title="struct actix_web::actix::actix::dev::actors::resolver::TcpConnector">TcpConnector</a></code><a href='#impl-ActorFuture' class='anchor'></a></span></td><td><span class='out-of-band'></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="struct" href="https://docs.rs/tokio-tcp/0.1.0/tokio_tcp/stream/struct.TcpStream.html" title="struct tokio_tcp::stream::TcpStream">TcpStream</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="enum" href="../../../../../../actix_web/actix/actix/dev/actors/resolver/enum.ResolverError.html" title="enum actix_web::actix::actix::dev::actors::resolver::ResolverError">ResolverError</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 class="struct" href="../../../../../../actix_web/actix/actix/dev/actors/resolver/struct.Resolver.html" title="struct actix_web::actix::actix::dev::actors::resolver::Resolver">Resolver</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>&nbsp;&nbsp;&nbsp;&nbsp;&amp;mut self, <br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;mut <a class="struct" href="../../../../../../actix_web/actix/actix/dev/actors/resolver/struct.Resolver.html" title="struct actix_web::actix::actix::dev::actors::resolver::Resolver">Resolver</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;mut <a class="struct" href="../../../../../../actix_web/actix/actix/struct.Context.html" title="struct actix_web::actix::actix::Context">Context</a>&lt;<a class="struct" href="../../../../../../actix_web/actix/actix/dev/actors/resolver/struct.Resolver.html" title="struct actix_web::actix::actix::dev::actors::resolver::Resolver">Resolver</a>&gt;<br>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="enum" href="https://docs.rs/futures/0.1/futures/poll/enum.Async.html" title="enum futures::poll::Async">Async</a>&lt;&lt;<a class="struct" href="../../../../../../actix_web/actix/actix/dev/actors/resolver/struct.TcpConnector.html" title="struct actix_web::actix::actix::dev::actors::resolver::TcpConnector">TcpConnector</a> as <a class="trait" href="../../../../../../actix_web/actix/actix/dev/trait.ActorFuture.html" title="trait actix_web::actix::actix::dev::ActorFuture">ActorFuture</a>&gt;::<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>&gt;, &lt;<a class="struct" href="../../../../../../actix_web/actix/actix/dev/actors/resolver/struct.TcpConnector.html" title="struct actix_web::actix::actix::dev::actors::resolver::TcpConnector">TcpConnector</a> as <a class="trait" href="../../../../../../actix_web/actix/actix/dev/trait.ActorFuture.html" title="trait actix_web::actix::actix::dev::ActorFuture">ActorFuture</a>&gt;::<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>&gt;</code></td><td></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>&lt;F, U&gt;(self, f: F) -&gt; <a class="struct" href="../../../../../../actix_web/actix/actix/dev/fut/struct.Map.html" title="struct actix_web::actix::actix::dev::fut::Map">Map</a>&lt;Self, F&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;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>, &amp;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>, &amp;mut &lt;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>&gt;::<a class="type" href="../../../../../../actix_web/actix/actix/trait.Actor.html#associatedtype.Context" title="type actix_web::actix::actix::Actor::Context">Context</a>) -&gt; U,&nbsp;</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>&lt;F, E&gt;(self, f: F) -&gt; <a class="struct" href="../../../../../../actix_web/actix/actix/dev/fut/struct.MapErr.html" title="struct actix_web::actix::actix::dev::fut::MapErr">MapErr</a>&lt;Self, F&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;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>, &amp;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>, &amp;mut &lt;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>&gt;::<a class="type" href="../../../../../../actix_web/actix/actix/trait.Actor.html#associatedtype.Context" title="type actix_web::actix::actix::Actor::Context">Context</a>) -&gt; E,&nbsp;</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) -&gt; <a class="struct" href="../../../../../../actix_web/actix/actix/dev/fut/struct.DropErr.html" title="struct actix_web::actix::actix::dev::fut::DropErr">DropErr</a>&lt;Self&gt;</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>&lt;E&gt;(self) -&gt; <a class="struct" href="../../../../../../actix_web/actix/actix/dev/fut/struct.FromErr.html" title="struct actix_web::actix::actix::dev::fut::FromErr">FromErr</a>&lt;Self, E&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;E: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;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>&gt;,&nbsp;</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>&lt;F, B&gt;(self, f: F) -&gt; <a class="struct" href="../../../../../../actix_web/actix/actix/dev/fut/struct.Then.html" title="struct actix_web::actix::actix::dev::fut::Then">Then</a>&lt;Self, B, F&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;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>&lt;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>&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;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>&lt;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>&gt;, &amp;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>, &amp;mut &lt;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>&gt;::<a class="type" href="../../../../../../actix_web/actix/actix/trait.Actor.html#associatedtype.Context" title="type actix_web::actix::actix::Actor::Context">Context</a>) -&gt; B,&nbsp;</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>&lt;F, B&gt;(self, f: F) -&gt; <a class="struct" href="../../../../../../actix_web/actix/actix/dev/fut/struct.AndThen.html" title="struct actix_web::actix::actix::dev::fut::AndThen">AndThen</a>&lt;Self, B, F&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;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>&lt;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>&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;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>, &amp;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>, &amp;mut &lt;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>&gt;::<a class="type" href="../../../../../../actix_web/actix/actix/trait.Actor.html#associatedtype.Context" title="type actix_web::actix::actix::Actor::Context">Context</a>) -&gt; B,&nbsp;</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>) -&gt; <a class="struct" href="../../../../../../actix_web/actix/actix/dev/fut/struct.Timeout.html" title="struct actix_web::actix::actix::dev::fut::Timeout">Timeout</a>&lt;Self&gt;</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></div></div>
<h2 id='synthetic-implementations' class='small-section-header'>
Auto Trait Implementations<a href='#synthetic-implementations' class='anchor'></a>
</h2>
<div id='synthetic-implementations-list'>
<h3 id='impl-Send' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> for <a class="struct" href="../../../../../../actix_web/actix/actix/dev/actors/resolver/struct.TcpConnector.html" title="struct actix_web::actix::actix::dev::actors::resolver::TcpConnector">TcpConnector</a></code><a href='#impl-Send' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='impl-items'></div><h3 id='impl-Sync' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> for <a class="struct" href="../../../../../../actix_web/actix/actix/dev/actors/resolver/struct.TcpConnector.html" title="struct actix_web::actix::actix::dev::actors::resolver::TcpConnector">TcpConnector</a></code><a href='#impl-Sync' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='impl-items'></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><p>Search multiple things at once by splitting your query with comma (e.g. <code>str,u8</code> or <code>String,struct:Vec,test</code>)</p></div></div></aside><script>window.rootPath = "../../../../../../";window.currentCrate = "actix_web";</script><script src="../../../../../../aliases.js"></script><script src="../../../../../../main.js"></script><script defer src="../../../../../../search-index.js"></script></body></html>

View File

@ -0,0 +1,2 @@
<!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 `Connector` type in crate `actix_web`."><meta name="keywords" content="rust, rustlang, rust-lang, Connector"><title>actix_web::actix::actix::dev::actors::resolver::Connector - 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="../../../../../../light.css" id="themeStyle"><script src="../../../../../../storage.js"></script></head><body class="rustdoc type"><!--[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><p class='location'>Type Definition Connector</p><div class="sidebar-elems"><p class='location'><a href='../../../../../index.html'>actix_web</a>::<wbr><a href='../../../../index.html'>actix</a>::<wbr><a href='../../../index.html'>actix</a>::<wbr><a href='../../index.html'>dev</a>::<wbr><a href='../index.html'>actors</a>::<wbr><a href='index.html'>resolver</a></p><script>window.sidebarCurrent = {name: 'Connector', ty: 'type', 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"><a id="settings-menu" href="../../../../../../settings.html"><img src="../../../../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='in-band'>Type Definition <a href='../../../../../index.html'>actix_web</a>::<wbr><a href='../../../../index.html'>actix</a>::<wbr><a href='../../../index.html'>actix</a>::<wbr><a href='../../index.html'>dev</a>::<wbr><a href='../index.html'>actors</a>::<wbr><a href='index.html'>resolver</a>::<wbr><a class="type" href=''>Connector</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></span></h1><pre class='rust typedef'>type Connector = <a class="struct" href="../../../../../../actix_web/actix/actix/dev/actors/resolver/struct.Resolver.html" title="struct actix_web::actix::actix::dev::actors::resolver::Resolver">Resolver</a>;</pre><div class='stability'><div class='stab deprecated'>Deprecated since 0.7.0<p>: please use <code>Resolver</code> instead</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><p>Search multiple things at once by splitting your query with comma (e.g. <code>str,u8</code> or <code>String,struct:Vec,test</code>)</p></div></div></aside><script>window.rootPath = "../../../../../../";window.currentCrate = "actix_web";</script><script src="../../../../../../aliases.js"></script><script src="../../../../../../main.js"></script><script defer src="../../../../../../search-index.js"></script></body></html>

View File

@ -0,0 +1,2 @@
<!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 `ConnectorError` type in crate `actix_web`."><meta name="keywords" content="rust, rustlang, rust-lang, ConnectorError"><title>actix_web::actix::actix::dev::actors::resolver::ConnectorError - 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="../../../../../../light.css" id="themeStyle"><script src="../../../../../../storage.js"></script></head><body class="rustdoc type"><!--[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><p class='location'>Type Definition ConnectorError</p><div class="sidebar-elems"><p class='location'><a href='../../../../../index.html'>actix_web</a>::<wbr><a href='../../../../index.html'>actix</a>::<wbr><a href='../../../index.html'>actix</a>::<wbr><a href='../../index.html'>dev</a>::<wbr><a href='../index.html'>actors</a>::<wbr><a href='index.html'>resolver</a></p><script>window.sidebarCurrent = {name: 'ConnectorError', ty: 'type', 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"><a id="settings-menu" href="../../../../../../settings.html"><img src="../../../../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='in-band'>Type Definition <a href='../../../../../index.html'>actix_web</a>::<wbr><a href='../../../../index.html'>actix</a>::<wbr><a href='../../../index.html'>actix</a>::<wbr><a href='../../index.html'>dev</a>::<wbr><a href='../index.html'>actors</a>::<wbr><a href='index.html'>resolver</a>::<wbr><a class="type" href=''>ConnectorError</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></span></h1><pre class='rust typedef'>type ConnectorError = <a class="enum" href="../../../../../../actix_web/actix/actix/dev/actors/resolver/enum.ResolverError.html" title="enum actix_web::actix::actix::dev::actors::resolver::ResolverError">ResolverError</a>;</pre><div class='stability'><div class='stab deprecated'>Deprecated since 0.7.0<p>: please use <code>ResolverError</code> instead</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><p>Search multiple things at once by splitting your query with comma (e.g. <code>str,u8</code> or <code>String,struct:Vec,test</code>)</p></div></div></aside><script>window.rootPath = "../../../../../../";window.currentCrate = "actix_web";</script><script src="../../../../../../aliases.js"></script><script src="../../../../../../main.js"></script><script defer src="../../../../../../search-index.js"></script></body></html>

View File

@ -0,0 +1 @@
initSidebarItems({"mod":[["resolver","DNS resolver and connector utility actor"],["signal","An actor implementation of Unix signal handling"]]});

View File

@ -0,0 +1,10 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=struct.DefaultSignalsHandler.html">
</head>
<body>
<p>Redirecting to <a href="struct.DefaultSignalsHandler.html">struct.DefaultSignalsHandler.html</a>...</p>
<script>location.replace("struct.DefaultSignalsHandler.html" + location.search + location.hash);</script>
</body>
</html>

View File

@ -0,0 +1,10 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=struct.ProcessSignals.html">
</head>
<body>
<p>Redirecting to <a href="struct.ProcessSignals.html">struct.ProcessSignals.html</a>...</p>
<script>location.replace("struct.ProcessSignals.html" + location.search + location.hash);</script>
</body>
</html>

View File

@ -0,0 +1,10 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=struct.Signal.html">
</head>
<body>
<p>Redirecting to <a href="struct.Signal.html">struct.Signal.html</a>...</p>
<script>location.replace("struct.Signal.html" + location.search + location.hash);</script>
</body>
</html>

View File

@ -0,0 +1,10 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=enum.SignalType.html">
</head>
<body>
<p>Redirecting to <a href="enum.SignalType.html">enum.SignalType.html</a>...</p>
<script>location.replace("enum.SignalType.html" + location.search + location.hash);</script>
</body>
</html>

View File

@ -0,0 +1,10 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=struct.Subscribe.html">
</head>
<body>
<p>Redirecting to <a href="struct.Subscribe.html">struct.Subscribe.html</a>...</p>
<script>location.replace("struct.Subscribe.html" + location.search + location.hash);</script>
</body>
</html>

View File

@ -0,0 +1,32 @@
<!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 `SignalType` enum in crate `actix_web`."><meta name="keywords" content="rust, rustlang, rust-lang, SignalType"><title>actix_web::actix::actix::dev::actors::signal::SignalType - 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="../../../../../../light.css" id="themeStyle"><script src="../../../../../../storage.js"></script></head><body class="rustdoc enum"><!--[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><p class='location'>Enum SignalType</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#variants">Variants</a><div class="sidebar-links"><a href="#variant.Hup">Hup</a><a href="#variant.Int">Int</a><a href="#variant.Term">Term</a><a href="#variant.Quit">Quit</a><a href="#variant.Child">Child</a></div><a class="sidebar-title" href="#implementations">Trait Implementations</a><div class="sidebar-links"><a href="#impl-Message">Message</a><a href="#impl-Debug">Debug</a><a href="#impl-Copy">Copy</a><a href="#impl-Clone">Clone</a><a href="#impl-PartialEq%3CSignalType%3E">PartialEq&lt;SignalType&gt;</a></div><a class="sidebar-title" href="#synthetic-implementations">Auto Trait Implementations</a><div class="sidebar-links"><a href="#impl-Send">Send</a><a href="#impl-Sync">Sync</a></div></div><p class='location'><a href='../../../../../index.html'>actix_web</a>::<wbr><a href='../../../../index.html'>actix</a>::<wbr><a href='../../../index.html'>actix</a>::<wbr><a href='../../index.html'>dev</a>::<wbr><a href='../index.html'>actors</a>::<wbr><a href='index.html'>signal</a></p><script>window.sidebarCurrent = {name: 'SignalType', ty: 'enum', 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"><a id="settings-menu" href="../../../../../../settings.html"><img src="../../../../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='in-band'>Enum <a href='../../../../../index.html'>actix_web</a>::<wbr><a href='../../../../index.html'>actix</a>::<wbr><a href='../../../index.html'>actix</a>::<wbr><a href='../../index.html'>dev</a>::<wbr><a href='../index.html'>actors</a>::<wbr><a href='index.html'>signal</a>::<wbr><a class="enum" href=''>SignalType</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></span></h1><div class="docblock type-decl"><pre class='rust enum'>pub enum SignalType {
Hup,
Int,
Term,
Quit,
Child,
}</pre></div><div class='docblock'><p>Different types of process signals</p>
</div><h2 id='variants' class='variants small-section-header'>
Variants<a href='#variants' class='anchor'></a></h2>
<span id="variant.Hup" class="variant small-section-header"><a href="#variant.Hup" class="anchor field"></a><span id='Hup.v' class='invisible'><code>Hup</code></span></span><div class='docblock'><p>SIGHUP</p>
</div><span id="variant.Int" class="variant small-section-header"><a href="#variant.Int" class="anchor field"></a><span id='Int.v' class='invisible'><code>Int</code></span></span><div class='docblock'><p>SIGINT</p>
</div><span id="variant.Term" class="variant small-section-header"><a href="#variant.Term" class="anchor field"></a><span id='Term.v' class='invisible'><code>Term</code></span></span><div class='docblock'><p>SIGTERM</p>
</div><span id="variant.Quit" class="variant small-section-header"><a href="#variant.Quit" class="anchor field"></a><span id='Quit.v' class='invisible'><code>Quit</code></span></span><div class='docblock'><p>SIGQUIT</p>
</div><span id="variant.Child" class="variant small-section-header"><a href="#variant.Child" class="anchor field"></a><span id='Child.v' class='invisible'><code>Child</code></span></span><div class='docblock'><p>SIGCHILD</p>
</div>
<h2 id='implementations' class='small-section-header'>
Trait Implementations<a href='#implementations' class='anchor'></a>
</h2>
<div id='implementations-list'><h3 id='impl-Message' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="../../../../../../actix_web/actix/actix/dev/trait.Message.html" title="trait actix_web::actix::actix::dev::Message">Message</a> for <a class="enum" href="../../../../../../actix_web/actix/actix/dev/actors/signal/enum.SignalType.html" title="enum actix_web::actix::actix::dev::actors::signal::SignalType">SignalType</a></code><a href='#impl-Message' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='associatedtype.Result' class="type"><span id='Result.t' class='invisible'><code>type <a href='../../../../../../actix_web/actix/actix/dev/trait.Message.html#associatedtype.Result' class="type">Result</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 message will resolved with if it is successful. <a href="../../../../../../actix_web/actix/actix/dev/trait.Message.html#associatedtype.Result">Read more</a></p>
</div></div><h3 id='impl-Debug' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="enum" href="../../../../../../actix_web/actix/actix/dev/actors/signal/enum.SignalType.html" title="enum actix_web::actix::actix::dev::actors::signal::SignalType">SignalType</a></code><a href='#impl-Debug' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='method.fmt' class="method"><span id='fmt.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt' class='fnname'>fmt</a>(&amp;self, f: &amp;mut <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Error.html" title="struct core::fmt::Error">Error</a>&gt;</code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt">Read more</a></p>
</div></div><h3 id='impl-Copy' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><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="enum" href="../../../../../../actix_web/actix/actix/dev/actors/signal/enum.SignalType.html" title="enum actix_web::actix::actix::dev::actors::signal::SignalType">SignalType</a></code><a href='#impl-Copy' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='impl-items'></div><h3 id='impl-Clone' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><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="enum" href="../../../../../../actix_web/actix/actix/dev/actors/signal/enum.SignalType.html" title="enum actix_web::actix::actix::dev::actors::signal::SignalType">SignalType</a></code><a href='#impl-Clone' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='method.clone' class="method"><span id='clone.v' class='invisible'><table class='table-display'><tbody><tr><td><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="enum" href="../../../../../../actix_web/actix/actix/dev/actors/signal/enum.SignalType.html" title="enum actix_web::actix::actix::dev::actors::signal::SignalType">SignalType</a></code></td><td></td></tr></tbody></table></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'><table class='table-display'><tbody><tr><td><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></td><td><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#130-132' title='goto source code'>[src]</a></td></tr></tbody></table></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><h3 id='impl-PartialEq%3CSignalType%3E' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a>&lt;<a class="enum" href="../../../../../../actix_web/actix/actix/dev/actors/signal/enum.SignalType.html" title="enum actix_web::actix::actix::dev::actors::signal::SignalType">SignalType</a>&gt; for <a class="enum" href="../../../../../../actix_web/actix/actix/dev/actors/signal/enum.SignalType.html" title="enum actix_web::actix::actix::dev::actors::signal::SignalType">SignalType</a></code><a href='#impl-PartialEq%3CSignalType%3E' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='method.eq' class="method"><span id='eq.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html#tymethod.eq' class='fnname'>eq</a>(&amp;self, other: &amp;<a class="enum" href="../../../../../../actix_web/actix/actix/dev/actors/signal/enum.SignalType.html" title="enum actix_web::actix::actix::dev::actors::signal::SignalType">SignalType</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>This method tests for <code>self</code> and <code>other</code> values to be equal, and is used by <code>==</code>. <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html#tymethod.eq">Read more</a></p>
</div><h4 id='method.ne' class="method"><span id='ne.v' class='invisible'><table class='table-display'><tbody><tr><td><code><div class="docblock attributes">#[must_use]
</div>fn <a href='https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html#method.ne' class='fnname'>ne</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;</a>Rhs) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code></span></td><td><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/cmp.rs.html#126' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>This method tests for <code>!=</code>.</p>
</div></div></div>
<h2 id='synthetic-implementations' class='small-section-header'>
Auto Trait Implementations<a href='#synthetic-implementations' class='anchor'></a>
</h2>
<div id='synthetic-implementations-list'>
<h3 id='impl-Send' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> for <a class="enum" href="../../../../../../actix_web/actix/actix/dev/actors/signal/enum.SignalType.html" title="enum actix_web::actix::actix::dev::actors::signal::SignalType">SignalType</a></code><a href='#impl-Send' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='impl-items'></div><h3 id='impl-Sync' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> for <a class="enum" href="../../../../../../actix_web/actix/actix/dev/actors/signal/enum.SignalType.html" title="enum actix_web::actix::actix::dev::actors::signal::SignalType">SignalType</a></code><a href='#impl-Sync' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='impl-items'></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><p>Search multiple things at once by splitting your query with comma (e.g. <code>str,u8</code> or <code>String,struct:Vec,test</code>)</p></div></div></aside><script>window.rootPath = "../../../../../../";window.currentCrate = "actix_web";</script><script src="../../../../../../aliases.js"></script><script src="../../../../../../main.js"></script><script defer src="../../../../../../search-index.js"></script></body></html>

View File

@ -0,0 +1,100 @@
<!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 `signal` mod in crate `actix_web`."><meta name="keywords" content="rust, rustlang, rust-lang, signal"><title>actix_web::actix::actix::dev::actors::signal - 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="../../../../../../light.css" id="themeStyle"><script src="../../../../../../storage.js"></script></head><body class="rustdoc mod"><!--[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><p class='location'>Module signal</p><div class="sidebar-elems"><div class="block items"><ul><li><a href="#structs">Structs</a></li><li><a href="#enums">Enums</a></li></ul></div><p class='location'><a href='../../../../../index.html'>actix_web</a>::<wbr><a href='../../../../index.html'>actix</a>::<wbr><a href='../../../index.html'>actix</a>::<wbr><a href='../../index.html'>dev</a>::<wbr><a href='../index.html'>actors</a></p><script>window.sidebarCurrent = {name: 'signal', ty: 'mod', 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"><a id="settings-menu" href="../../../../../../settings.html"><img src="../../../../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='in-band'>Module <a href='../../../../../index.html'>actix_web</a>::<wbr><a href='../../../../index.html'>actix</a>::<wbr><a href='../../../index.html'>actix</a>::<wbr><a href='../../index.html'>dev</a>::<wbr><a href='../index.html'>actors</a>::<wbr><a class="mod" href=''>signal</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></span></h1><div class='docblock'><p>An actor implementation of Unix signal handling</p>
<p>This module implements asynchronous signal handling for Actix. For each
signal <code>ProcessSignals</code> actor sends <code>Signal</code> message to all subscriber. To
subscriber, send <code>Subscribe</code> message to <code>ProcessSignals</code> actor.</p>
<h1 id="examples" class="section-header"><a href="#examples">Examples</a></h1>
<pre class="rust rust-example-rendered">
<span class="kw">use</span> <span class="ident">actix</span>::<span class="ident">actors</span>::<span class="ident">signal</span>;
<span class="kw">use</span> <span class="ident">actix</span>::<span class="ident">prelude</span>::<span class="kw-2">*</span>;
<span class="kw">struct</span> <span class="ident">Signals</span>;
<span class="kw">impl</span> <span class="ident">Actor</span> <span class="kw">for</span> <span class="ident">Signals</span> {
<span class="kw">type</span> <span class="ident">Context</span> <span class="op">=</span> <span class="ident">Context</span><span class="op">&lt;</span><span class="self">Self</span><span class="op">&gt;</span>;
}
<span class="comment">// Shutdown system on and of `SIGINT`, `SIGTERM`, `SIGQUIT` signals</span>
<span class="kw">impl</span> <span class="ident">Handler</span><span class="op">&lt;</span><span class="ident">signal</span>::<span class="ident">Signal</span><span class="op">&gt;</span> <span class="kw">for</span> <span class="ident">Signals</span> {
<span class="kw">type</span> <span class="prelude-ty">Result</span> <span class="op">=</span> ();
<span class="kw">fn</span> <span class="ident">handle</span>(<span class="kw-2">&amp;</span><span class="kw-2">mut</span> <span class="self">self</span>, <span class="ident">msg</span>: <span class="ident">signal</span>::<span class="ident">Signal</span>, <span class="kw">_</span>: <span class="kw-2">&amp;</span><span class="kw-2">mut</span> <span class="ident">Context</span><span class="op">&lt;</span><span class="self">Self</span><span class="op">&gt;</span>) {
<span class="kw">match</span> <span class="ident">msg</span>.<span class="number">0</span> {
<span class="ident">signal</span>::<span class="ident">SignalType</span>::<span class="ident">Int</span> <span class="op">=&gt;</span> {
<span class="macro">println</span><span class="macro">!</span>(<span class="string">&quot;SIGINT received, exiting&quot;</span>);
<span class="ident">System</span>::<span class="ident">current</span>().<span class="ident">stop</span>();
}
<span class="ident">signal</span>::<span class="ident">SignalType</span>::<span class="ident">Hup</span> <span class="op">=&gt;</span> {
<span class="macro">println</span><span class="macro">!</span>(<span class="string">&quot;SIGHUP received, reloading&quot;</span>);
}
<span class="ident">signal</span>::<span class="ident">SignalType</span>::<span class="ident">Term</span> <span class="op">=&gt;</span> {
<span class="macro">println</span><span class="macro">!</span>(<span class="string">&quot;SIGTERM received, stopping&quot;</span>);
<span class="ident">System</span>::<span class="ident">current</span>().<span class="ident">stop</span>();
}
<span class="ident">signal</span>::<span class="ident">SignalType</span>::<span class="ident">Quit</span> <span class="op">=&gt;</span> {
<span class="macro">println</span><span class="macro">!</span>(<span class="string">&quot;SIGQUIT received, exiting&quot;</span>);
<span class="ident">System</span>::<span class="ident">current</span>().<span class="ident">stop</span>();
}
<span class="kw">_</span> <span class="op">=&gt;</span> (),
}
}
}
<span class="kw">fn</span> <span class="ident">main</span>() {
<span class="comment">// initialize system</span>
<span class="ident">System</span>::<span class="ident">run</span>(<span class="op">||</span> {
<span class="comment">// Start signals handler</span>
<span class="kw">let</span> <span class="ident">addr</span> <span class="op">=</span> <span class="ident">Signals</span>.<span class="ident">start</span>();
<span class="comment">// send SIGTERM</span>
<span class="ident">std</span>::<span class="ident">thread</span>::<span class="ident">spawn</span>(<span class="kw">move</span> <span class="op">||</span> {
<span class="comment">// emulate SIGNTERM</span>
<span class="ident">addr</span>.<span class="ident">do_send</span>(<span class="ident">signal</span>::<span class="ident">Signal</span>(<span class="ident">signal</span>::<span class="ident">SignalType</span>::<span class="ident">Term</span>));
});
});
<span class="ident">std</span>::<span class="ident">process</span>::<span class="ident">exit</span>(<span class="number">0</span>);
}</pre>
</div><h2 id='structs' class='section-header'><a href="#structs">Structs</a></h2>
<table>
<tr class=' module-item'>
<td><a class="struct" href="struct.DefaultSignalsHandler.html"
title='struct actix_web::actix::actix::dev::actors::signal::DefaultSignalsHandler'>DefaultSignalsHandler</a></td>
<td class='docblock-short'>
<p>Default signals handler. This actor sends <code>SystemExit</code> message to <code>System</code>
actor for each of <code>SIGINT</code>, <code>SIGTERM</code>, <code>SIGQUIT</code> signals.</p>
</td>
</tr>
<tr class=' module-item'>
<td><a class="struct" href="struct.ProcessSignals.html"
title='struct actix_web::actix::actix::dev::actors::signal::ProcessSignals'>ProcessSignals</a></td>
<td class='docblock-short'>
<p>An actor implementation of Unix signal handling</p>
</td>
</tr>
<tr class=' module-item'>
<td><a class="struct" href="struct.Signal.html"
title='struct actix_web::actix::actix::dev::actors::signal::Signal'>Signal</a></td>
<td class='docblock-short'>
<p>Process signal message</p>
</td>
</tr>
<tr class=' module-item'>
<td><a class="struct" href="struct.Subscribe.html"
title='struct actix_web::actix::actix::dev::actors::signal::Subscribe'>Subscribe</a></td>
<td class='docblock-short'>
<p>Subscribe to process signals.</p>
</td>
</tr></table><h2 id='enums' class='section-header'><a href="#enums">Enums</a></h2>
<table>
<tr class=' module-item'>
<td><a class="enum" href="enum.SignalType.html"
title='enum actix_web::actix::actix::dev::actors::signal::SignalType'>SignalType</a></td>
<td class='docblock-short'>
<p>Different types of process signals</p>
</td>
</tr></table></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><p>Search multiple things at once by splitting your query with comma (e.g. <code>str,u8</code> or <code>String,struct:Vec,test</code>)</p></div></div></aside><script>window.rootPath = "../../../../../../";window.currentCrate = "actix_web";</script><script src="../../../../../../aliases.js"></script><script src="../../../../../../main.js"></script><script defer src="../../../../../../search-index.js"></script></body></html>

View File

@ -0,0 +1 @@
initSidebarItems({"enum":[["SignalType","Different types of process signals"]],"struct":[["DefaultSignalsHandler","Default signals handler. This actor sends `SystemExit` message to `System` actor for each of `SIGINT`, `SIGTERM`, `SIGQUIT` signals."],["ProcessSignals","An actor implementation of Unix signal handling"],["Signal","Process signal message"],["Subscribe","Subscribe to process signals."]]});

View File

@ -0,0 +1,26 @@
<!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 `DefaultSignalsHandler` struct in crate `actix_web`."><meta name="keywords" content="rust, rustlang, rust-lang, DefaultSignalsHandler"><title>actix_web::actix::actix::dev::actors::signal::DefaultSignalsHandler - 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="../../../../../../light.css" id="themeStyle"><script src="../../../../../../storage.js"></script></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><p class='location'>Struct DefaultSignalsHandler</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#implementations">Trait Implementations</a><div class="sidebar-links"><a href="#impl-Handler%3CSignal%3E">Handler&lt;Signal&gt;</a><a href="#impl-Default">Default</a><a href="#impl-Actor">Actor</a></div><a class="sidebar-title" href="#synthetic-implementations">Auto Trait Implementations</a><div class="sidebar-links"><a href="#impl-Send">Send</a><a href="#impl-Sync">Sync</a></div></div><p class='location'><a href='../../../../../index.html'>actix_web</a>::<wbr><a href='../../../../index.html'>actix</a>::<wbr><a href='../../../index.html'>actix</a>::<wbr><a href='../../index.html'>dev</a>::<wbr><a href='../index.html'>actors</a>::<wbr><a href='index.html'>signal</a></p><script>window.sidebarCurrent = {name: 'DefaultSignalsHandler', 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"><a id="settings-menu" href="../../../../../../settings.html"><img src="../../../../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='in-band'>Struct <a href='../../../../../index.html'>actix_web</a>::<wbr><a href='../../../../index.html'>actix</a>::<wbr><a href='../../../index.html'>actix</a>::<wbr><a href='../../index.html'>dev</a>::<wbr><a href='../index.html'>actors</a>::<wbr><a href='index.html'>signal</a>::<wbr><a class="struct" href=''>DefaultSignalsHandler</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></span></h1><div class="docblock type-decl"><pre class='rust struct'>pub struct DefaultSignalsHandler;</pre></div><div class='docblock'><p>Default signals handler. This actor sends <code>SystemExit</code> message to <code>System</code>
actor for each of <code>SIGINT</code>, <code>SIGTERM</code>, <code>SIGQUIT</code> signals.</p>
</div>
<h2 id='implementations' class='small-section-header'>
Trait Implementations<a href='#implementations' class='anchor'></a>
</h2>
<div id='implementations-list'><h3 id='impl-Handler%3CSignal%3E' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="../../../../../../actix_web/actix/actix/dev/trait.Handler.html" title="trait actix_web::actix::actix::dev::Handler">Handler</a>&lt;<a class="struct" href="../../../../../../actix_web/actix/actix/dev/actors/signal/struct.Signal.html" title="struct actix_web::actix::actix::dev::actors::signal::Signal">Signal</a>&gt; for <a class="struct" href="../../../../../../actix_web/actix/actix/dev/actors/signal/struct.DefaultSignalsHandler.html" title="struct actix_web::actix::actix::dev::actors::signal::DefaultSignalsHandler">DefaultSignalsHandler</a></code><a href='#impl-Handler%3CSignal%3E' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='docblock'><p>Handle <code>SIGINT</code>, <code>SIGTERM</code>, <code>SIGQUIT</code> signals and send <code>SystemExit(0)</code>
message to <code>System</code> actor.</p>
</div><div class='impl-items'><h4 id='associatedtype.Result' class="type"><span id='Result.t' class='invisible'><code>type <a href='../../../../../../actix_web/actix/actix/dev/trait.Handler.html#associatedtype.Result' class="type">Result</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 handle will return</p>
</div><h4 id='method.handle' class="method"><span id='handle.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../../../../../../actix_web/actix/actix/dev/trait.Handler.html#tymethod.handle' class='fnname'>handle</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;mut self, <br>&nbsp;&nbsp;&nbsp;&nbsp;msg: <a class="struct" href="../../../../../../actix_web/actix/actix/dev/actors/signal/struct.Signal.html" title="struct actix_web::actix::actix::dev::actors::signal::Signal">Signal</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;mut &lt;<a class="struct" href="../../../../../../actix_web/actix/actix/dev/actors/signal/struct.DefaultSignalsHandler.html" title="struct actix_web::actix::actix::dev::actors::signal::DefaultSignalsHandler">DefaultSignalsHandler</a> as <a class="trait" href="../../../../../../actix_web/actix/actix/trait.Actor.html" title="trait actix_web::actix::actix::Actor">Actor</a>&gt;::<a class="type" href="../../../../../../actix_web/actix/actix/trait.Actor.html#associatedtype.Context" title="type actix_web::actix::actix::Actor::Context">Context</a><br>)</code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>Method is called for every message received by this Actor</p>
</div></div><h3 id='impl-Default' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/default/trait.Default.html" title="trait core::default::Default">Default</a> for <a class="struct" href="../../../../../../actix_web/actix/actix/dev/actors/signal/struct.DefaultSignalsHandler.html" title="struct actix_web::actix::actix::dev::actors::signal::DefaultSignalsHandler">DefaultSignalsHandler</a></code><a href='#impl-Default' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='method.default' class="method"><span id='default.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='https://doc.rust-lang.org/nightly/core/default/trait.Default.html#tymethod.default' class='fnname'>default</a>() -&gt; <a class="struct" href="../../../../../../actix_web/actix/actix/dev/actors/signal/struct.DefaultSignalsHandler.html" title="struct actix_web::actix::actix::dev::actors::signal::DefaultSignalsHandler">DefaultSignalsHandler</a></code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>Returns the &quot;default value&quot; for a type. <a href="https://doc.rust-lang.org/nightly/core/default/trait.Default.html#tymethod.default">Read more</a></p>
</div></div><h3 id='impl-Actor' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="../../../../../../actix_web/actix/actix/trait.Actor.html" title="trait actix_web::actix::actix::Actor">Actor</a> for <a class="struct" href="../../../../../../actix_web/actix/actix/dev/actors/signal/struct.DefaultSignalsHandler.html" title="struct actix_web::actix::actix::dev::actors::signal::DefaultSignalsHandler">DefaultSignalsHandler</a></code><a href='#impl-Actor' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='associatedtype.Context' class="type"><span id='Context.t' class='invisible'><code>type <a href='../../../../../../actix_web/actix/actix/trait.Actor.html#associatedtype.Context' class="type">Context</a> = <a class="struct" href="../../../../../../actix_web/actix/actix/struct.Context.html" title="struct actix_web::actix::actix::Context">Context</a>&lt;<a class="struct" href="../../../../../../actix_web/actix/actix/dev/actors/signal/struct.DefaultSignalsHandler.html" title="struct actix_web::actix::actix::dev::actors::signal::DefaultSignalsHandler">DefaultSignalsHandler</a>&gt;</code></span></h4>
<div class='docblock'><p>Actor execution context type</p>
</div><h4 id='method.started' class="method"><span id='started.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../../../../../../actix_web/actix/actix/trait.Actor.html#method.started' class='fnname'>started</a>(&amp;mut self, ctx: &amp;mut &lt;<a class="struct" href="../../../../../../actix_web/actix/actix/dev/actors/signal/struct.DefaultSignalsHandler.html" title="struct actix_web::actix::actix::dev::actors::signal::DefaultSignalsHandler">DefaultSignalsHandler</a> as <a class="trait" href="../../../../../../actix_web/actix/actix/trait.Actor.html" title="trait actix_web::actix::actix::Actor">Actor</a>&gt;::<a class="type" href="../../../../../../actix_web/actix/actix/trait.Actor.html#associatedtype.Context" title="type actix_web::actix::actix::Actor::Context">Context</a>)</code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>Method is called when actor get polled first time.</p>
</div><h4 id='method.stopping' class="method"><span id='stopping.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../../../../../../actix_web/actix/actix/trait.Actor.html#method.stopping' class='fnname'>stopping</a>(&amp;mut self, ctx: &amp;mut Self::<a class="type" href="../../../../../../actix_web/actix/actix/trait.Actor.html#associatedtype.Context" title="type actix_web::actix::actix::Actor::Context">Context</a>) -&gt; <a class="enum" href="../../../../../../actix_web/actix/actix/enum.Running.html" title="enum actix_web::actix::actix::Running">Running</a></code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>Method is called after an actor is in <code>Actor::Stopping</code> state. There could be several reasons for stopping. <code>Context::stop</code> get called by the actor itself. All addresses to current actor get dropped and no more evented objects left in the context. <a href="../../../../../../actix_web/actix/actix/trait.Actor.html#method.stopping">Read more</a></p>
</div><h4 id='method.stopped' class="method"><span id='stopped.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../../../../../../actix_web/actix/actix/trait.Actor.html#method.stopped' class='fnname'>stopped</a>(&amp;mut self, ctx: &amp;mut Self::<a class="type" href="../../../../../../actix_web/actix/actix/trait.Actor.html#associatedtype.Context" title="type actix_web::actix::actix::Actor::Context">Context</a>)</code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>Method is called after an actor is stopped, it can be used to perform any needed cleanup work or spawning more actors. This is final state, after this call actor get dropped. <a href="../../../../../../actix_web/actix/actix/trait.Actor.html#method.stopped">Read more</a></p>
</div><h4 id='method.start' class="method"><span id='start.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../../../../../../actix_web/actix/actix/trait.Actor.html#method.start' class='fnname'>start</a>(self) -&gt; <a class="struct" href="../../../../../../actix_web/actix/actix/struct.Addr.html" title="struct actix_web::actix::actix::Addr">Addr</a>&lt;Self&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: <a class="trait" href="../../../../../../actix_web/actix/actix/trait.Actor.html" title="trait actix_web::actix::actix::Actor">Actor</a>&lt;Context = <a class="struct" href="../../../../../../actix_web/actix/actix/struct.Context.html" title="struct actix_web::actix::actix::Context">Context</a>&lt;Self&gt;&gt;,&nbsp;</span></code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>Start new asynchronous actor, returns address of newly created actor. <a href="../../../../../../actix_web/actix/actix/trait.Actor.html#method.start">Read more</a></p>
</div><h4 id='method.start_default' class="method"><span id='start_default.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../../../../../../actix_web/actix/actix/trait.Actor.html#method.start_default' class='fnname'>start_default</a>() -&gt; <a class="struct" href="../../../../../../actix_web/actix/actix/struct.Addr.html" title="struct actix_web::actix::actix::Addr">Addr</a>&lt;Self&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: <a class="trait" href="../../../../../../actix_web/actix/actix/trait.Actor.html" title="trait actix_web::actix::actix::Actor">Actor</a>&lt;Context = <a class="struct" href="../../../../../../actix_web/actix/actix/struct.Context.html" title="struct actix_web::actix::actix::Context">Context</a>&lt;Self&gt;&gt; + <a class="trait" href="https://doc.rust-lang.org/nightly/core/default/trait.Default.html" title="trait core::default::Default">Default</a>,&nbsp;</span></code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>Start new asynchronous actor, returns address of newly created actor.</p>
</div><h4 id='method.create' class="method"><span id='create.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../../../../../../actix_web/actix/actix/trait.Actor.html#method.create' class='fnname'>create</a>&lt;F&gt;(f: F) -&gt; <a class="struct" href="../../../../../../actix_web/actix/actix/struct.Addr.html" title="struct actix_web::actix::actix::Addr">Addr</a>&lt;Self&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;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>(&amp;mut <a class="struct" href="../../../../../../actix_web/actix/actix/struct.Context.html" title="struct actix_web::actix::actix::Context">Context</a>&lt;Self&gt;) -&gt; Self + 'static,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: <a class="trait" href="../../../../../../actix_web/actix/actix/trait.Actor.html" title="trait actix_web::actix::actix::Actor">Actor</a>&lt;Context = <a class="struct" href="../../../../../../actix_web/actix/actix/struct.Context.html" title="struct actix_web::actix::actix::Context">Context</a>&lt;Self&gt;&gt;,&nbsp;</span></code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>Use <code>create</code> method, if you need <code>Context</code> object during actor initialization. <a href="../../../../../../actix_web/actix/actix/trait.Actor.html#method.create">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>
</h2>
<div id='synthetic-implementations-list'>
<h3 id='impl-Send' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> for <a class="struct" href="../../../../../../actix_web/actix/actix/dev/actors/signal/struct.DefaultSignalsHandler.html" title="struct actix_web::actix::actix::dev::actors::signal::DefaultSignalsHandler">DefaultSignalsHandler</a></code><a href='#impl-Send' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='impl-items'></div><h3 id='impl-Sync' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> for <a class="struct" href="../../../../../../actix_web/actix/actix/dev/actors/signal/struct.DefaultSignalsHandler.html" title="struct actix_web::actix::actix::dev::actors::signal::DefaultSignalsHandler">DefaultSignalsHandler</a></code><a href='#impl-Sync' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='impl-items'></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><p>Search multiple things at once by splitting your query with comma (e.g. <code>str,u8</code> or <code>String,struct:Vec,test</code>)</p></div></div></aside><script>window.rootPath = "../../../../../../";window.currentCrate = "actix_web";</script><script src="../../../../../../aliases.js"></script><script src="../../../../../../main.js"></script><script defer src="../../../../../../search-index.js"></script></body></html>

View File

@ -0,0 +1,28 @@
<!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 `ProcessSignals` struct in crate `actix_web`."><meta name="keywords" content="rust, rustlang, rust-lang, ProcessSignals"><title>actix_web::actix::actix::dev::actors::signal::ProcessSignals - 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="../../../../../../light.css" id="themeStyle"><script src="../../../../../../storage.js"></script></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><p class='location'>Struct ProcessSignals</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#implementations">Trait Implementations</a><div class="sidebar-links"><a href="#impl-Handler%3CSubscribe%3E">Handler&lt;Subscribe&gt;</a><a href="#impl-Default">Default</a><a href="#impl-SystemService">SystemService</a><a href="#impl-Supervised">Supervised</a><a href="#impl-Actor">Actor</a></div><a class="sidebar-title" href="#synthetic-implementations">Auto Trait Implementations</a><div class="sidebar-links"><a href="#impl-Send">Send</a><a href="#impl-Sync">!Sync</a></div></div><p class='location'><a href='../../../../../index.html'>actix_web</a>::<wbr><a href='../../../../index.html'>actix</a>::<wbr><a href='../../../index.html'>actix</a>::<wbr><a href='../../index.html'>dev</a>::<wbr><a href='../index.html'>actors</a>::<wbr><a href='index.html'>signal</a></p><script>window.sidebarCurrent = {name: 'ProcessSignals', 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"><a id="settings-menu" href="../../../../../../settings.html"><img src="../../../../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='in-band'>Struct <a href='../../../../../index.html'>actix_web</a>::<wbr><a href='../../../../index.html'>actix</a>::<wbr><a href='../../../index.html'>actix</a>::<wbr><a href='../../index.html'>dev</a>::<wbr><a href='../index.html'>actors</a>::<wbr><a href='index.html'>signal</a>::<wbr><a class="struct" href=''>ProcessSignals</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></span></h1><div class="docblock type-decl"><pre class='rust struct'>pub struct ProcessSignals { /* fields omitted */ }</pre></div><div class='docblock'><p>An actor implementation of Unix signal handling</p>
</div>
<h2 id='implementations' class='small-section-header'>
Trait Implementations<a href='#implementations' class='anchor'></a>
</h2>
<div id='implementations-list'><h3 id='impl-Handler%3CSubscribe%3E' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="../../../../../../actix_web/actix/actix/dev/trait.Handler.html" title="trait actix_web::actix::actix::dev::Handler">Handler</a>&lt;<a class="struct" href="../../../../../../actix_web/actix/actix/dev/actors/signal/struct.Subscribe.html" title="struct actix_web::actix::actix::dev::actors::signal::Subscribe">Subscribe</a>&gt; for <a class="struct" href="../../../../../../actix_web/actix/actix/dev/actors/signal/struct.ProcessSignals.html" title="struct actix_web::actix::actix::dev::actors::signal::ProcessSignals">ProcessSignals</a></code><a href='#impl-Handler%3CSubscribe%3E' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='docblock'><p>Add subscriber for signals</p>
</div><div class='impl-items'><h4 id='associatedtype.Result' class="type"><span id='Result.t' class='invisible'><code>type <a href='../../../../../../actix_web/actix/actix/dev/trait.Handler.html#associatedtype.Result' class="type">Result</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 handle will return</p>
</div><h4 id='method.handle' class="method"><span id='handle.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../../../../../../actix_web/actix/actix/dev/trait.Handler.html#tymethod.handle' class='fnname'>handle</a>(&amp;mut self, msg: <a class="struct" href="../../../../../../actix_web/actix/actix/dev/actors/signal/struct.Subscribe.html" title="struct actix_web::actix::actix::dev::actors::signal::Subscribe">Subscribe</a>, &amp;mut &lt;<a class="struct" href="../../../../../../actix_web/actix/actix/dev/actors/signal/struct.ProcessSignals.html" title="struct actix_web::actix::actix::dev::actors::signal::ProcessSignals">ProcessSignals</a> as <a class="trait" href="../../../../../../actix_web/actix/actix/trait.Actor.html" title="trait actix_web::actix::actix::Actor">Actor</a>&gt;::<a class="type" href="../../../../../../actix_web/actix/actix/trait.Actor.html#associatedtype.Context" title="type actix_web::actix::actix::Actor::Context">Context</a>)</code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>Method is called for every message received by this Actor</p>
</div></div><h3 id='impl-Default' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/default/trait.Default.html" title="trait core::default::Default">Default</a> for <a class="struct" href="../../../../../../actix_web/actix/actix/dev/actors/signal/struct.ProcessSignals.html" title="struct actix_web::actix::actix::dev::actors::signal::ProcessSignals">ProcessSignals</a></code><a href='#impl-Default' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='method.default' class="method"><span id='default.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='https://doc.rust-lang.org/nightly/core/default/trait.Default.html#tymethod.default' class='fnname'>default</a>() -&gt; <a class="struct" href="../../../../../../actix_web/actix/actix/dev/actors/signal/struct.ProcessSignals.html" title="struct actix_web::actix::actix::dev::actors::signal::ProcessSignals">ProcessSignals</a></code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>Returns the &quot;default value&quot; for a type. <a href="https://doc.rust-lang.org/nightly/core/default/trait.Default.html#tymethod.default">Read more</a></p>
</div></div><h3 id='impl-SystemService' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="../../../../../../actix_web/actix/actix/trait.SystemService.html" title="trait actix_web::actix::actix::SystemService">SystemService</a> for <a class="struct" href="../../../../../../actix_web/actix/actix/dev/actors/signal/struct.ProcessSignals.html" title="struct actix_web::actix::actix::dev::actors::signal::ProcessSignals">ProcessSignals</a></code><a href='#impl-SystemService' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='method.service_started' class="method"><span id='service_started.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../../../../../../actix_web/actix/actix/trait.SystemService.html#method.service_started' class='fnname'>service_started</a>(&amp;mut self, ctx: &amp;mut &lt;<a class="struct" href="../../../../../../actix_web/actix/actix/dev/actors/signal/struct.ProcessSignals.html" title="struct actix_web::actix::actix::dev::actors::signal::ProcessSignals">ProcessSignals</a> as <a class="trait" href="../../../../../../actix_web/actix/actix/trait.Actor.html" title="trait actix_web::actix::actix::Actor">Actor</a>&gt;::<a class="type" href="../../../../../../actix_web/actix/actix/trait.Actor.html#associatedtype.Context" title="type actix_web::actix::actix::Actor::Context">Context</a>)</code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>Method is called during service initialization.</p>
</div><h4 id='method.start_service' class="method"><span id='start_service.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../../../../../../actix_web/actix/actix/trait.SystemService.html#method.start_service' class='fnname'>start_service</a>(sys: &amp;<a class="struct" href="../../../../../../actix_web/actix/actix/struct.Addr.html" title="struct actix_web::actix::actix::Addr">Addr</a>&lt;<a class="struct" href="../../../../../../actix_web/actix/actix/dev/struct.Arbiter.html" title="struct actix_web::actix::actix::dev::Arbiter">Arbiter</a>&gt;) -&gt; <a class="struct" href="../../../../../../actix_web/actix/actix/struct.Addr.html" title="struct actix_web::actix::actix::Addr">Addr</a>&lt;Self&gt;</code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>Construct and srtart system service</p>
</div><h4 id='method.from_registry' class="method"><span id='from_registry.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../../../../../../actix_web/actix/actix/trait.SystemService.html#method.from_registry' class='fnname'>from_registry</a>() -&gt; <a class="struct" href="../../../../../../actix_web/actix/actix/struct.Addr.html" title="struct actix_web::actix::actix::Addr">Addr</a>&lt;Self&gt;</code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>Get actor's address from system registry</p>
</div></div><h3 id='impl-Supervised' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="../../../../../../actix_web/actix/actix/trait.Supervised.html" title="trait actix_web::actix::actix::Supervised">Supervised</a> for <a class="struct" href="../../../../../../actix_web/actix/actix/dev/actors/signal/struct.ProcessSignals.html" title="struct actix_web::actix::actix::dev::actors::signal::ProcessSignals">ProcessSignals</a></code><a href='#impl-Supervised' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='method.restarting' class="method"><span id='restarting.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../../../../../../actix_web/actix/actix/trait.Supervised.html#method.restarting' class='fnname'>restarting</a>(&amp;mut self, ctx: &amp;mut Self::<a class="type" href="../../../../../../actix_web/actix/actix/trait.Actor.html#associatedtype.Context" title="type actix_web::actix::actix::Actor::Context">Context</a>)</code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>Method called when supervisor restarting failed actor</p>
</div></div><h3 id='impl-Actor' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="../../../../../../actix_web/actix/actix/trait.Actor.html" title="trait actix_web::actix::actix::Actor">Actor</a> for <a class="struct" href="../../../../../../actix_web/actix/actix/dev/actors/signal/struct.ProcessSignals.html" title="struct actix_web::actix::actix::dev::actors::signal::ProcessSignals">ProcessSignals</a></code><a href='#impl-Actor' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='associatedtype.Context' class="type"><span id='Context.t' class='invisible'><code>type <a href='../../../../../../actix_web/actix/actix/trait.Actor.html#associatedtype.Context' class="type">Context</a> = <a class="struct" href="../../../../../../actix_web/actix/actix/struct.Context.html" title="struct actix_web::actix::actix::Context">Context</a>&lt;<a class="struct" href="../../../../../../actix_web/actix/actix/dev/actors/signal/struct.ProcessSignals.html" title="struct actix_web::actix::actix::dev::actors::signal::ProcessSignals">ProcessSignals</a>&gt;</code></span></h4>
<div class='docblock'><p>Actor execution context type</p>
</div><h4 id='method.started' class="method"><span id='started.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../../../../../../actix_web/actix/actix/trait.Actor.html#method.started' class='fnname'>started</a>(&amp;mut self, ctx: &amp;mut Self::<a class="type" href="../../../../../../actix_web/actix/actix/trait.Actor.html#associatedtype.Context" title="type actix_web::actix::actix::Actor::Context">Context</a>)</code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>Method is called when actor get polled first time.</p>
</div><h4 id='method.stopping' class="method"><span id='stopping.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../../../../../../actix_web/actix/actix/trait.Actor.html#method.stopping' class='fnname'>stopping</a>(&amp;mut self, ctx: &amp;mut Self::<a class="type" href="../../../../../../actix_web/actix/actix/trait.Actor.html#associatedtype.Context" title="type actix_web::actix::actix::Actor::Context">Context</a>) -&gt; <a class="enum" href="../../../../../../actix_web/actix/actix/enum.Running.html" title="enum actix_web::actix::actix::Running">Running</a></code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>Method is called after an actor is in <code>Actor::Stopping</code> state. There could be several reasons for stopping. <code>Context::stop</code> get called by the actor itself. All addresses to current actor get dropped and no more evented objects left in the context. <a href="../../../../../../actix_web/actix/actix/trait.Actor.html#method.stopping">Read more</a></p>
</div><h4 id='method.stopped' class="method"><span id='stopped.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../../../../../../actix_web/actix/actix/trait.Actor.html#method.stopped' class='fnname'>stopped</a>(&amp;mut self, ctx: &amp;mut Self::<a class="type" href="../../../../../../actix_web/actix/actix/trait.Actor.html#associatedtype.Context" title="type actix_web::actix::actix::Actor::Context">Context</a>)</code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>Method is called after an actor is stopped, it can be used to perform any needed cleanup work or spawning more actors. This is final state, after this call actor get dropped. <a href="../../../../../../actix_web/actix/actix/trait.Actor.html#method.stopped">Read more</a></p>
</div><h4 id='method.start' class="method"><span id='start.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../../../../../../actix_web/actix/actix/trait.Actor.html#method.start' class='fnname'>start</a>(self) -&gt; <a class="struct" href="../../../../../../actix_web/actix/actix/struct.Addr.html" title="struct actix_web::actix::actix::Addr">Addr</a>&lt;Self&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: <a class="trait" href="../../../../../../actix_web/actix/actix/trait.Actor.html" title="trait actix_web::actix::actix::Actor">Actor</a>&lt;Context = <a class="struct" href="../../../../../../actix_web/actix/actix/struct.Context.html" title="struct actix_web::actix::actix::Context">Context</a>&lt;Self&gt;&gt;,&nbsp;</span></code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>Start new asynchronous actor, returns address of newly created actor. <a href="../../../../../../actix_web/actix/actix/trait.Actor.html#method.start">Read more</a></p>
</div><h4 id='method.start_default' class="method"><span id='start_default.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../../../../../../actix_web/actix/actix/trait.Actor.html#method.start_default' class='fnname'>start_default</a>() -&gt; <a class="struct" href="../../../../../../actix_web/actix/actix/struct.Addr.html" title="struct actix_web::actix::actix::Addr">Addr</a>&lt;Self&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: <a class="trait" href="../../../../../../actix_web/actix/actix/trait.Actor.html" title="trait actix_web::actix::actix::Actor">Actor</a>&lt;Context = <a class="struct" href="../../../../../../actix_web/actix/actix/struct.Context.html" title="struct actix_web::actix::actix::Context">Context</a>&lt;Self&gt;&gt; + <a class="trait" href="https://doc.rust-lang.org/nightly/core/default/trait.Default.html" title="trait core::default::Default">Default</a>,&nbsp;</span></code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>Start new asynchronous actor, returns address of newly created actor.</p>
</div><h4 id='method.create' class="method"><span id='create.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../../../../../../actix_web/actix/actix/trait.Actor.html#method.create' class='fnname'>create</a>&lt;F&gt;(f: F) -&gt; <a class="struct" href="../../../../../../actix_web/actix/actix/struct.Addr.html" title="struct actix_web::actix::actix::Addr">Addr</a>&lt;Self&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;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>(&amp;mut <a class="struct" href="../../../../../../actix_web/actix/actix/struct.Context.html" title="struct actix_web::actix::actix::Context">Context</a>&lt;Self&gt;) -&gt; Self + 'static,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: <a class="trait" href="../../../../../../actix_web/actix/actix/trait.Actor.html" title="trait actix_web::actix::actix::Actor">Actor</a>&lt;Context = <a class="struct" href="../../../../../../actix_web/actix/actix/struct.Context.html" title="struct actix_web::actix::actix::Context">Context</a>&lt;Self&gt;&gt;,&nbsp;</span></code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>Use <code>create</code> method, if you need <code>Context</code> object during actor initialization. <a href="../../../../../../actix_web/actix/actix/trait.Actor.html#method.create">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>
</h2>
<div id='synthetic-implementations-list'>
<h3 id='impl-Send' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> for <a class="struct" href="../../../../../../actix_web/actix/actix/dev/actors/signal/struct.ProcessSignals.html" title="struct actix_web::actix::actix::dev::actors::signal::ProcessSignals">ProcessSignals</a></code><a href='#impl-Send' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='impl-items'></div><h3 id='impl-Sync' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl !<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> for <a class="struct" href="../../../../../../actix_web/actix/actix/dev/actors/signal/struct.ProcessSignals.html" title="struct actix_web::actix::actix::dev::actors::signal::ProcessSignals">ProcessSignals</a></code><a href='#impl-Sync' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='impl-items'></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><p>Search multiple things at once by splitting your query with comma (e.g. <code>str,u8</code> or <code>String,struct:Vec,test</code>)</p></div></div></aside><script>window.rootPath = "../../../../../../";window.currentCrate = "actix_web";</script><script src="../../../../../../aliases.js"></script><script src="../../../../../../main.js"></script><script defer src="../../../../../../search-index.js"></script></body></html>

View File

@ -0,0 +1,25 @@
<!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 `Signal` struct in crate `actix_web`."><meta name="keywords" content="rust, rustlang, rust-lang, Signal"><title>actix_web::actix::actix::dev::actors::signal::Signal - 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="../../../../../../light.css" id="themeStyle"><script src="../../../../../../storage.js"></script></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><p class='location'>Struct Signal</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#implementations">Trait Implementations</a><div class="sidebar-links"><a href="#impl-Message">Message</a><a href="#impl-Handler%3CSignal%3E">Handler&lt;Signal&gt;</a><a href="#impl-Debug">Debug</a></div><a class="sidebar-title" href="#synthetic-implementations">Auto Trait Implementations</a><div class="sidebar-links"><a href="#impl-Send">Send</a><a href="#impl-Sync">Sync</a></div></div><p class='location'><a href='../../../../../index.html'>actix_web</a>::<wbr><a href='../../../../index.html'>actix</a>::<wbr><a href='../../../index.html'>actix</a>::<wbr><a href='../../index.html'>dev</a>::<wbr><a href='../index.html'>actors</a>::<wbr><a href='index.html'>signal</a></p><script>window.sidebarCurrent = {name: 'Signal', 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"><a id="settings-menu" href="../../../../../../settings.html"><img src="../../../../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='in-band'>Struct <a href='../../../../../index.html'>actix_web</a>::<wbr><a href='../../../../index.html'>actix</a>::<wbr><a href='../../../index.html'>actix</a>::<wbr><a href='../../index.html'>dev</a>::<wbr><a href='../index.html'>actors</a>::<wbr><a href='index.html'>signal</a>::<wbr><a class="struct" href=''>Signal</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></span></h1><div class="docblock type-decl"><pre class='rust struct'>pub struct Signal(pub <a class="enum" href="../../../../../../actix_web/actix/actix/dev/actors/signal/enum.SignalType.html" title="enum actix_web::actix::actix::dev::actors::signal::SignalType">SignalType</a>);</pre></div><div class='docblock'><p>Process signal message</p>
</div>
<h2 id='implementations' class='small-section-header'>
Trait Implementations<a href='#implementations' class='anchor'></a>
</h2>
<div id='implementations-list'><h3 id='impl-Message' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="../../../../../../actix_web/actix/actix/dev/trait.Message.html" title="trait actix_web::actix::actix::dev::Message">Message</a> for <a class="struct" href="../../../../../../actix_web/actix/actix/dev/actors/signal/struct.Signal.html" title="struct actix_web::actix::actix::dev::actors::signal::Signal">Signal</a></code><a href='#impl-Message' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='associatedtype.Result' class="type"><span id='Result.t' class='invisible'><code>type <a href='../../../../../../actix_web/actix/actix/dev/trait.Message.html#associatedtype.Result' class="type">Result</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 message will resolved with if it is successful. <a href="../../../../../../actix_web/actix/actix/dev/trait.Message.html#associatedtype.Result">Read more</a></p>
</div></div><h3 id='impl-Handler%3CSignal%3E' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="../../../../../../actix_web/actix/actix/dev/trait.Handler.html" title="trait actix_web::actix::actix::dev::Handler">Handler</a>&lt;<a class="struct" href="../../../../../../actix_web/actix/actix/dev/actors/signal/struct.Signal.html" title="struct actix_web::actix::actix::dev::actors::signal::Signal">Signal</a>&gt; for <a class="struct" href="../../../../../../actix_web/actix/actix/dev/actors/signal/struct.DefaultSignalsHandler.html" title="struct actix_web::actix::actix::dev::actors::signal::DefaultSignalsHandler">DefaultSignalsHandler</a></code><a href='#impl-Handler%3CSignal%3E' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='docblock'><p>Handle <code>SIGINT</code>, <code>SIGTERM</code>, <code>SIGQUIT</code> signals and send <code>SystemExit(0)</code>
message to <code>System</code> actor.</p>
</div><div class='impl-items'><h4 id='associatedtype.Result-1' class="type"><span id='Result.t-1' class='invisible'><code>type <a href='../../../../../../actix_web/actix/actix/dev/trait.Handler.html#associatedtype.Result' class="type">Result</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 handle will return</p>
</div><h4 id='method.handle' class="method"><span id='handle.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../../../../../../actix_web/actix/actix/dev/trait.Handler.html#tymethod.handle' class='fnname'>handle</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;mut self, <br>&nbsp;&nbsp;&nbsp;&nbsp;msg: <a class="struct" href="../../../../../../actix_web/actix/actix/dev/actors/signal/struct.Signal.html" title="struct actix_web::actix::actix::dev::actors::signal::Signal">Signal</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;mut &lt;<a class="struct" href="../../../../../../actix_web/actix/actix/dev/actors/signal/struct.DefaultSignalsHandler.html" title="struct actix_web::actix::actix::dev::actors::signal::DefaultSignalsHandler">DefaultSignalsHandler</a> as <a class="trait" href="../../../../../../actix_web/actix/actix/trait.Actor.html" title="trait actix_web::actix::actix::Actor">Actor</a>&gt;::<a class="type" href="../../../../../../actix_web/actix/actix/trait.Actor.html#associatedtype.Context" title="type actix_web::actix::actix::Actor::Context">Context</a><br>)</code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>Method is called for every message received by this Actor</p>
</div></div><h3 id='impl-Debug' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="struct" href="../../../../../../actix_web/actix/actix/dev/actors/signal/struct.Signal.html" title="struct actix_web::actix::actix::dev::actors::signal::Signal">Signal</a></code><a href='#impl-Debug' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='method.fmt' class="method"><span id='fmt.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt' class='fnname'>fmt</a>(&amp;self, f: &amp;mut <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Error.html" title="struct core::fmt::Error">Error</a>&gt;</code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt">Read more</a></p>
</div></div><h3 id='impl-Handler%3CSignal%3E-1' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl&lt;H:&nbsp;<a class="trait" href="../../../../../../actix_web/server/trait.IntoHttpHandler.html" title="trait actix_web::server::IntoHttpHandler">IntoHttpHandler</a>&gt; <a class="trait" href="../../../../../../actix_web/actix/actix/dev/trait.Handler.html" title="trait actix_web::actix::actix::dev::Handler">Handler</a>&lt;<a class="struct" href="../../../../../../actix_web/actix/actix/dev/actors/signal/struct.Signal.html" title="struct actix_web::actix::actix::dev::actors::signal::Signal">Signal</a>&gt; for <a class="struct" href="../../../../../../actix_web/server/struct.HttpServer.html" title="struct actix_web::server::HttpServer">HttpServer</a>&lt;H&gt;</code><a href='#impl-Handler%3CSignal%3E-1' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../../../../../src/actix_web/server/srv.rs.html#587-610' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><div class='docblock'><p>Signals support
Handle <code>SIGINT</code>, <code>SIGTERM</code>, <code>SIGQUIT</code> signals and stop actix system
message to <code>System</code> actor.</p>
</div><div class='impl-items'><h4 id='associatedtype.Result-2' class="type"><span id='Result.t-2' class='invisible'><code>type <a href='../../../../../../actix_web/actix/actix/dev/trait.Handler.html#associatedtype.Result' class="type">Result</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 handle will return</p>
</div><h4 id='method.handle-1' class="method"><span id='handle.v-1' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../../../../../../actix_web/actix/actix/dev/trait.Handler.html#tymethod.handle' class='fnname'>handle</a>(&amp;mut self, msg: <a class="struct" href="../../../../../../actix_web/actix/actix/dev/actors/signal/struct.Signal.html" title="struct actix_web::actix::actix::dev::actors::signal::Signal">Signal</a>, ctx: &amp;mut <a class="struct" href="../../../../../../actix_web/actix/actix/struct.Context.html" title="struct actix_web::actix::actix::Context">Context</a>&lt;Self&gt;)</code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../../../../../src/actix_web/server/srv.rs.html#590-609' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Method is called for every message received by this Actor</p>
</div></div></div>
<h2 id='synthetic-implementations' class='small-section-header'>
Auto Trait Implementations<a href='#synthetic-implementations' class='anchor'></a>
</h2>
<div id='synthetic-implementations-list'>
<h3 id='impl-Send' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> for <a class="struct" href="../../../../../../actix_web/actix/actix/dev/actors/signal/struct.Signal.html" title="struct actix_web::actix::actix::dev::actors::signal::Signal">Signal</a></code><a href='#impl-Send' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='impl-items'></div><h3 id='impl-Sync' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> for <a class="struct" href="../../../../../../actix_web/actix/actix/dev/actors/signal/struct.Signal.html" title="struct actix_web::actix::actix::dev::actors::signal::Signal">Signal</a></code><a href='#impl-Sync' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='impl-items'></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><p>Search multiple things at once by splitting your query with comma (e.g. <code>str,u8</code> or <code>String,struct:Vec,test</code>)</p></div></div></aside><script>window.rootPath = "../../../../../../";window.currentCrate = "actix_web";</script><script src="../../../../../../aliases.js"></script><script src="../../../../../../main.js"></script><script defer src="../../../../../../search-index.js"></script></body></html>

View File

@ -0,0 +1,17 @@
<!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 `Subscribe` struct in crate `actix_web`."><meta name="keywords" content="rust, rustlang, rust-lang, Subscribe"><title>actix_web::actix::actix::dev::actors::signal::Subscribe - 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="../../../../../../light.css" id="themeStyle"><script src="../../../../../../storage.js"></script></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><p class='location'>Struct Subscribe</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#implementations">Trait Implementations</a><div class="sidebar-links"><a href="#impl-Message">Message</a><a href="#impl-Handler%3CSubscribe%3E">Handler&lt;Subscribe&gt;</a></div><a class="sidebar-title" href="#synthetic-implementations">Auto Trait Implementations</a><div class="sidebar-links"><a href="#impl-Send">Send</a><a href="#impl-Sync">!Sync</a></div></div><p class='location'><a href='../../../../../index.html'>actix_web</a>::<wbr><a href='../../../../index.html'>actix</a>::<wbr><a href='../../../index.html'>actix</a>::<wbr><a href='../../index.html'>dev</a>::<wbr><a href='../index.html'>actors</a>::<wbr><a href='index.html'>signal</a></p><script>window.sidebarCurrent = {name: 'Subscribe', 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"><a id="settings-menu" href="../../../../../../settings.html"><img src="../../../../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='in-band'>Struct <a href='../../../../../index.html'>actix_web</a>::<wbr><a href='../../../../index.html'>actix</a>::<wbr><a href='../../../index.html'>actix</a>::<wbr><a href='../../index.html'>dev</a>::<wbr><a href='../index.html'>actors</a>::<wbr><a href='index.html'>signal</a>::<wbr><a class="struct" href=''>Subscribe</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></span></h1><div class="docblock type-decl"><pre class='rust struct'>pub struct Subscribe(pub <a class="struct" href="../../../../../../actix_web/actix/actix/dev/struct.Recipient.html" title="struct actix_web::actix::actix::dev::Recipient">Recipient</a>&lt;<a class="struct" href="../../../../../../actix_web/actix/actix/dev/actors/signal/struct.Signal.html" title="struct actix_web::actix::actix::dev::actors::signal::Signal">Signal</a>&gt;);</pre></div><div class='docblock'><p>Subscribe to process signals.</p>
</div>
<h2 id='implementations' class='small-section-header'>
Trait Implementations<a href='#implementations' class='anchor'></a>
</h2>
<div id='implementations-list'><h3 id='impl-Message' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="../../../../../../actix_web/actix/actix/dev/trait.Message.html" title="trait actix_web::actix::actix::dev::Message">Message</a> for <a class="struct" href="../../../../../../actix_web/actix/actix/dev/actors/signal/struct.Subscribe.html" title="struct actix_web::actix::actix::dev::actors::signal::Subscribe">Subscribe</a></code><a href='#impl-Message' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='associatedtype.Result' class="type"><span id='Result.t' class='invisible'><code>type <a href='../../../../../../actix_web/actix/actix/dev/trait.Message.html#associatedtype.Result' class="type">Result</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 message will resolved with if it is successful. <a href="../../../../../../actix_web/actix/actix/dev/trait.Message.html#associatedtype.Result">Read more</a></p>
</div></div><h3 id='impl-Handler%3CSubscribe%3E' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="../../../../../../actix_web/actix/actix/dev/trait.Handler.html" title="trait actix_web::actix::actix::dev::Handler">Handler</a>&lt;<a class="struct" href="../../../../../../actix_web/actix/actix/dev/actors/signal/struct.Subscribe.html" title="struct actix_web::actix::actix::dev::actors::signal::Subscribe">Subscribe</a>&gt; for <a class="struct" href="../../../../../../actix_web/actix/actix/dev/actors/signal/struct.ProcessSignals.html" title="struct actix_web::actix::actix::dev::actors::signal::ProcessSignals">ProcessSignals</a></code><a href='#impl-Handler%3CSubscribe%3E' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='docblock'><p>Add subscriber for signals</p>
</div><div class='impl-items'><h4 id='associatedtype.Result-1' class="type"><span id='Result.t-1' class='invisible'><code>type <a href='../../../../../../actix_web/actix/actix/dev/trait.Handler.html#associatedtype.Result' class="type">Result</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 handle will return</p>
</div><h4 id='method.handle' class="method"><span id='handle.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../../../../../../actix_web/actix/actix/dev/trait.Handler.html#tymethod.handle' class='fnname'>handle</a>(&amp;mut self, msg: <a class="struct" href="../../../../../../actix_web/actix/actix/dev/actors/signal/struct.Subscribe.html" title="struct actix_web::actix::actix::dev::actors::signal::Subscribe">Subscribe</a>, &amp;mut &lt;<a class="struct" href="../../../../../../actix_web/actix/actix/dev/actors/signal/struct.ProcessSignals.html" title="struct actix_web::actix::actix::dev::actors::signal::ProcessSignals">ProcessSignals</a> as <a class="trait" href="../../../../../../actix_web/actix/actix/trait.Actor.html" title="trait actix_web::actix::actix::Actor">Actor</a>&gt;::<a class="type" href="../../../../../../actix_web/actix/actix/trait.Actor.html#associatedtype.Context" title="type actix_web::actix::actix::Actor::Context">Context</a>)</code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>Method is called for every message received by this Actor</p>
</div></div></div>
<h2 id='synthetic-implementations' class='small-section-header'>
Auto Trait Implementations<a href='#synthetic-implementations' class='anchor'></a>
</h2>
<div id='synthetic-implementations-list'>
<h3 id='impl-Send' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> for <a class="struct" href="../../../../../../actix_web/actix/actix/dev/actors/signal/struct.Subscribe.html" title="struct actix_web::actix::actix::dev::actors::signal::Subscribe">Subscribe</a></code><a href='#impl-Send' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='impl-items'></div><h3 id='impl-Sync' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl !<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> for <a class="struct" href="../../../../../../actix_web/actix/actix/dev/actors/signal/struct.Subscribe.html" title="struct actix_web::actix::actix::dev::actors::signal::Subscribe">Subscribe</a></code><a href='#impl-Sync' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='impl-items'></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><p>Search multiple things at once by splitting your query with comma (e.g. <code>str,u8</code> or <code>String,struct:Vec,test</code>)</p></div></div></aside><script>window.rootPath = "../../../../../../";window.currentCrate = "actix_web";</script><script src="../../../../../../aliases.js"></script><script src="../../../../../../main.js"></script><script defer src="../../../../../../search-index.js"></script></body></html>

View File

@ -0,0 +1,10 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=struct.AndThen.html">
</head>
<body>
<p>Redirecting to <a href="struct.AndThen.html">struct.AndThen.html</a>...</p>
<script>location.replace("struct.AndThen.html" + location.search + location.hash);</script>
</body>
</html>

View File

@ -0,0 +1,10 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=struct.DropErr.html">
</head>
<body>
<p>Redirecting to <a href="struct.DropErr.html">struct.DropErr.html</a>...</p>
<script>location.replace("struct.DropErr.html" + location.search + location.hash);</script>
</body>
</html>

View File

@ -0,0 +1,10 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=enum.Either.html">
</head>
<body>
<p>Redirecting to <a href="enum.Either.html">enum.Either.html</a>...</p>
<script>location.replace("enum.Either.html" + location.search + location.hash);</script>
</body>
</html>

Some files were not shown because too many files have changed in this diff Show More