doc: 2020-04-01 11:32:45 +0200: 478563f - Adding documentation
This commit is contained in:
45
COPYRIGHT.txt
Normal file
45
COPYRIGHT.txt
Normal file
@@ -0,0 +1,45 @@
|
||||
These documentation pages include resources by third parties. This copyright
|
||||
file applies only to those resources. The following third party resources are
|
||||
included, and carry their own copyright notices and license terms:
|
||||
|
||||
* Fira Sans (FiraSans-Regular.woff, FiraSans-Medium.woff):
|
||||
|
||||
Copyright (c) 2014, Mozilla Foundation https://mozilla.org/
|
||||
with Reserved Font Name Fira Sans.
|
||||
|
||||
Copyright (c) 2014, Telefonica S.A.
|
||||
|
||||
Licensed under the SIL Open Font License, Version 1.1.
|
||||
See FiraSans-LICENSE.txt.
|
||||
|
||||
* rustdoc.css, main.js, and playpen.js:
|
||||
|
||||
Copyright 2015 The Rust Developers.
|
||||
Licensed under the Apache License, Version 2.0 (see LICENSE-APACHE.txt) or
|
||||
the MIT license (LICENSE-MIT.txt) at your option.
|
||||
|
||||
* normalize.css:
|
||||
|
||||
Copyright (c) Nicolas Gallagher and Jonathan Neal.
|
||||
Licensed under the MIT license (see LICENSE-MIT.txt).
|
||||
|
||||
* Source Code Pro (SourceCodePro-Regular.woff, SourceCodePro-Semibold.woff):
|
||||
|
||||
Copyright 2010, 2012 Adobe Systems Incorporated (http://www.adobe.com/),
|
||||
with Reserved Font Name 'Source'. All Rights Reserved. Source is a trademark
|
||||
of Adobe Systems Incorporated in the United States and/or other countries.
|
||||
|
||||
Licensed under the SIL Open Font License, Version 1.1.
|
||||
See SourceCodePro-LICENSE.txt.
|
||||
|
||||
* Source Serif Pro (SourceSerifPro-Regular.ttf.woff,
|
||||
SourceSerifPro-Bold.ttf.woff, SourceSerifPro-It.ttf.woff):
|
||||
|
||||
Copyright 2014 Adobe Systems Incorporated (http://www.adobe.com/), with
|
||||
Reserved Font Name 'Source'. All Rights Reserved. Source is a trademark of
|
||||
Adobe Systems Incorporated in the United States and/or other countries.
|
||||
|
||||
Licensed under the SIL Open Font License, Version 1.1.
|
||||
See SourceSerifPro-LICENSE.txt.
|
||||
|
||||
This copyright file is intended to be distributed with rustdoc output.
|
||||
94
FiraSans-LICENSE.txt
Normal file
94
FiraSans-LICENSE.txt
Normal file
@@ -0,0 +1,94 @@
|
||||
Digitized data copyright (c) 2012-2015, The Mozilla Foundation and Telefonica S.A.
|
||||
with Reserved Font Name < Fira >,
|
||||
|
||||
This Font Software is licensed under the SIL Open Font License, Version 1.1.
|
||||
This license is copied below, and is also available with a FAQ at:
|
||||
http://scripts.sil.org/OFL
|
||||
|
||||
|
||||
-----------------------------------------------------------
|
||||
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
|
||||
-----------------------------------------------------------
|
||||
|
||||
PREAMBLE
|
||||
The goals of the Open Font License (OFL) are to stimulate worldwide
|
||||
development of collaborative font projects, to support the font creation
|
||||
efforts of academic and linguistic communities, and to provide a free and
|
||||
open framework in which fonts may be shared and improved in partnership
|
||||
with others.
|
||||
|
||||
The OFL allows the licensed fonts to be used, studied, modified and
|
||||
redistributed freely as long as they are not sold by themselves. The
|
||||
fonts, including any derivative works, can be bundled, embedded,
|
||||
redistributed and/or sold with any software provided that any reserved
|
||||
names are not used by derivative works. The fonts and derivatives,
|
||||
however, cannot be released under any other type of license. The
|
||||
requirement for fonts to remain under this license does not apply
|
||||
to any document created using the fonts or their derivatives.
|
||||
|
||||
DEFINITIONS
|
||||
"Font Software" refers to the set of files released by the Copyright
|
||||
Holder(s) under this license and clearly marked as such. This may
|
||||
include source files, build scripts and documentation.
|
||||
|
||||
"Reserved Font Name" refers to any names specified as such after the
|
||||
copyright statement(s).
|
||||
|
||||
"Original Version" refers to the collection of Font Software components as
|
||||
distributed by the Copyright Holder(s).
|
||||
|
||||
"Modified Version" refers to any derivative made by adding to, deleting,
|
||||
or substituting -- in part or in whole -- any of the components of the
|
||||
Original Version, by changing formats or by porting the Font Software to a
|
||||
new environment.
|
||||
|
||||
"Author" refers to any designer, engineer, programmer, technical
|
||||
writer or other person who contributed to the Font Software.
|
||||
|
||||
PERMISSION & CONDITIONS
|
||||
Permission is hereby granted, free of charge, to any person obtaining
|
||||
a copy of the Font Software, to use, study, copy, merge, embed, modify,
|
||||
redistribute, and sell modified and unmodified copies of the Font
|
||||
Software, subject to the following conditions:
|
||||
|
||||
1) Neither the Font Software nor any of its individual components,
|
||||
in Original or Modified Versions, may be sold by itself.
|
||||
|
||||
2) Original or Modified Versions of the Font Software may be bundled,
|
||||
redistributed and/or sold with any software, provided that each copy
|
||||
contains the above copyright notice and this license. These can be
|
||||
included either as stand-alone text files, human-readable headers or
|
||||
in the appropriate machine-readable metadata fields within text or
|
||||
binary files as long as those fields can be easily viewed by the user.
|
||||
|
||||
3) No Modified Version of the Font Software may use the Reserved Font
|
||||
Name(s) unless explicit written permission is granted by the corresponding
|
||||
Copyright Holder. This restriction only applies to the primary font name as
|
||||
presented to the users.
|
||||
|
||||
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
|
||||
Software shall not be used to promote, endorse or advertise any
|
||||
Modified Version, except to acknowledge the contribution(s) of the
|
||||
Copyright Holder(s) and the Author(s) or with their explicit written
|
||||
permission.
|
||||
|
||||
5) The Font Software, modified or unmodified, in part or in whole,
|
||||
must be distributed entirely under this license, and must not be
|
||||
distributed under any other license. The requirement for fonts to
|
||||
remain under this license does not apply to any document created
|
||||
using the Font Software.
|
||||
|
||||
TERMINATION
|
||||
This license becomes null and void if any of the above conditions are
|
||||
not met.
|
||||
|
||||
DISCLAIMER
|
||||
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
|
||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
|
||||
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
|
||||
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
||||
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
|
||||
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
|
||||
OTHER DEALINGS IN THE FONT SOFTWARE.
|
||||
BIN
FiraSans-Medium.woff
Normal file
BIN
FiraSans-Medium.woff
Normal file
Binary file not shown.
BIN
FiraSans-Regular.woff
Normal file
BIN
FiraSans-Regular.woff
Normal file
Binary file not shown.
201
LICENSE-APACHE.txt
Normal file
201
LICENSE-APACHE.txt
Normal file
@@ -0,0 +1,201 @@
|
||||
Apache License
|
||||
Version 2.0, January 2004
|
||||
http://www.apache.org/licenses/
|
||||
|
||||
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
||||
|
||||
1. Definitions.
|
||||
|
||||
"License" shall mean the terms and conditions for use, reproduction,
|
||||
and distribution as defined by Sections 1 through 9 of this document.
|
||||
|
||||
"Licensor" shall mean the copyright owner or entity authorized by
|
||||
the copyright owner that is granting the License.
|
||||
|
||||
"Legal Entity" shall mean the union of the acting entity and all
|
||||
other entities that control, are controlled by, or are under common
|
||||
control with that entity. For the purposes of this definition,
|
||||
"control" means (i) the power, direct or indirect, to cause the
|
||||
direction or management of such entity, whether by contract or
|
||||
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
||||
outstanding shares, or (iii) beneficial ownership of such entity.
|
||||
|
||||
"You" (or "Your") shall mean an individual or Legal Entity
|
||||
exercising permissions granted by this License.
|
||||
|
||||
"Source" form shall mean the preferred form for making modifications,
|
||||
including but not limited to software source code, documentation
|
||||
source, and configuration files.
|
||||
|
||||
"Object" form shall mean any form resulting from mechanical
|
||||
transformation or translation of a Source form, including but
|
||||
not limited to compiled object code, generated documentation,
|
||||
and conversions to other media types.
|
||||
|
||||
"Work" shall mean the work of authorship, whether in Source or
|
||||
Object form, made available under the License, as indicated by a
|
||||
copyright notice that is included in or attached to the work
|
||||
(an example is provided in the Appendix below).
|
||||
|
||||
"Derivative Works" shall mean any work, whether in Source or Object
|
||||
form, that is based on (or derived from) the Work and for which the
|
||||
editorial revisions, annotations, elaborations, or other modifications
|
||||
represent, as a whole, an original work of authorship. For the purposes
|
||||
of this License, Derivative Works shall not include works that remain
|
||||
separable from, or merely link (or bind by name) to the interfaces of,
|
||||
the Work and Derivative Works thereof.
|
||||
|
||||
"Contribution" shall mean any work of authorship, including
|
||||
the original version of the Work and any modifications or additions
|
||||
to that Work or Derivative Works thereof, that is intentionally
|
||||
submitted to Licensor for inclusion in the Work by the copyright owner
|
||||
or by an individual or Legal Entity authorized to submit on behalf of
|
||||
the copyright owner. For the purposes of this definition, "submitted"
|
||||
means any form of electronic, verbal, or written communication sent
|
||||
to the Licensor or its representatives, including but not limited to
|
||||
communication on electronic mailing lists, source code control systems,
|
||||
and issue tracking systems that are managed by, or on behalf of, the
|
||||
Licensor for the purpose of discussing and improving the Work, but
|
||||
excluding communication that is conspicuously marked or otherwise
|
||||
designated in writing by the copyright owner as "Not a Contribution."
|
||||
|
||||
"Contributor" shall mean Licensor and any individual or Legal Entity
|
||||
on behalf of whom a Contribution has been received by Licensor and
|
||||
subsequently incorporated within the Work.
|
||||
|
||||
2. Grant of Copyright License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
copyright license to reproduce, prepare Derivative Works of,
|
||||
publicly display, publicly perform, sublicense, and distribute the
|
||||
Work and such Derivative Works in Source or Object form.
|
||||
|
||||
3. Grant of Patent License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
(except as stated in this section) patent license to make, have made,
|
||||
use, offer to sell, sell, import, and otherwise transfer the Work,
|
||||
where such license applies only to those patent claims licensable
|
||||
by such Contributor that are necessarily infringed by their
|
||||
Contribution(s) alone or by combination of their Contribution(s)
|
||||
with the Work to which such Contribution(s) was submitted. If You
|
||||
institute patent litigation against any entity (including a
|
||||
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
||||
or a Contribution incorporated within the Work constitutes direct
|
||||
or contributory patent infringement, then any patent licenses
|
||||
granted to You under this License for that Work shall terminate
|
||||
as of the date such litigation is filed.
|
||||
|
||||
4. Redistribution. You may reproduce and distribute copies of the
|
||||
Work or Derivative Works thereof in any medium, with or without
|
||||
modifications, and in Source or Object form, provided that You
|
||||
meet the following conditions:
|
||||
|
||||
(a) You must give any other recipients of the Work or
|
||||
Derivative Works a copy of this License; and
|
||||
|
||||
(b) You must cause any modified files to carry prominent notices
|
||||
stating that You changed the files; and
|
||||
|
||||
(c) You must retain, in the Source form of any Derivative Works
|
||||
that You distribute, all copyright, patent, trademark, and
|
||||
attribution notices from the Source form of the Work,
|
||||
excluding those notices that do not pertain to any part of
|
||||
the Derivative Works; and
|
||||
|
||||
(d) If the Work includes a "NOTICE" text file as part of its
|
||||
distribution, then any Derivative Works that You distribute must
|
||||
include a readable copy of the attribution notices contained
|
||||
within such NOTICE file, excluding those notices that do not
|
||||
pertain to any part of the Derivative Works, in at least one
|
||||
of the following places: within a NOTICE text file distributed
|
||||
as part of the Derivative Works; within the Source form or
|
||||
documentation, if provided along with the Derivative Works; or,
|
||||
within a display generated by the Derivative Works, if and
|
||||
wherever such third-party notices normally appear. The contents
|
||||
of the NOTICE file are for informational purposes only and
|
||||
do not modify the License. You may add Your own attribution
|
||||
notices within Derivative Works that You distribute, alongside
|
||||
or as an addendum to the NOTICE text from the Work, provided
|
||||
that such additional attribution notices cannot be construed
|
||||
as modifying the License.
|
||||
|
||||
You may add Your own copyright statement to Your modifications and
|
||||
may provide additional or different license terms and conditions
|
||||
for use, reproduction, or distribution of Your modifications, or
|
||||
for any such Derivative Works as a whole, provided Your use,
|
||||
reproduction, and distribution of the Work otherwise complies with
|
||||
the conditions stated in this License.
|
||||
|
||||
5. Submission of Contributions. Unless You explicitly state otherwise,
|
||||
any Contribution intentionally submitted for inclusion in the Work
|
||||
by You to the Licensor shall be under the terms and conditions of
|
||||
this License, without any additional terms or conditions.
|
||||
Notwithstanding the above, nothing herein shall supersede or modify
|
||||
the terms of any separate license agreement you may have executed
|
||||
with Licensor regarding such Contributions.
|
||||
|
||||
6. Trademarks. This License does not grant permission to use the trade
|
||||
names, trademarks, service marks, or product names of the Licensor,
|
||||
except as required for reasonable and customary use in describing the
|
||||
origin of the Work and reproducing the content of the NOTICE file.
|
||||
|
||||
7. Disclaimer of Warranty. Unless required by applicable law or
|
||||
agreed to in writing, Licensor provides the Work (and each
|
||||
Contributor provides its Contributions) on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
||||
implied, including, without limitation, any warranties or conditions
|
||||
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
||||
PARTICULAR PURPOSE. You are solely responsible for determining the
|
||||
appropriateness of using or redistributing the Work and assume any
|
||||
risks associated with Your exercise of permissions under this License.
|
||||
|
||||
8. Limitation of Liability. In no event and under no legal theory,
|
||||
whether in tort (including negligence), contract, or otherwise,
|
||||
unless required by applicable law (such as deliberate and grossly
|
||||
negligent acts) or agreed to in writing, shall any Contributor be
|
||||
liable to You for damages, including any direct, indirect, special,
|
||||
incidental, or consequential damages of any character arising as a
|
||||
result of this License or out of the use or inability to use the
|
||||
Work (including but not limited to damages for loss of goodwill,
|
||||
work stoppage, computer failure or malfunction, or any and all
|
||||
other commercial damages or losses), even if such Contributor
|
||||
has been advised of the possibility of such damages.
|
||||
|
||||
9. Accepting Warranty or Additional Liability. While redistributing
|
||||
the Work or Derivative Works thereof, You may choose to offer,
|
||||
and charge a fee for, acceptance of support, warranty, indemnity,
|
||||
or other liability obligations and/or rights consistent with this
|
||||
License. However, in accepting such obligations, You may act only
|
||||
on Your own behalf and on Your sole responsibility, not on behalf
|
||||
of any other Contributor, and only if You agree to indemnify,
|
||||
defend, and hold each Contributor harmless for any liability
|
||||
incurred by, or claims asserted against, such Contributor by reason
|
||||
of your accepting any such warranty or additional liability.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
APPENDIX: How to apply the Apache License to your work.
|
||||
|
||||
To apply the Apache License to your work, attach the following
|
||||
boilerplate notice, with the fields enclosed by brackets "[]"
|
||||
replaced with your own identifying information. (Don't include
|
||||
the brackets!) The text should be enclosed in the appropriate
|
||||
comment syntax for the file format. We also recommend that a
|
||||
file or class name and description of purpose be included on the
|
||||
same "printed page" as the copyright notice for easier
|
||||
identification within third-party archives.
|
||||
|
||||
Copyright [yyyy] [name of copyright owner]
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
23
LICENSE-MIT.txt
Normal file
23
LICENSE-MIT.txt
Normal file
@@ -0,0 +1,23 @@
|
||||
Permission is hereby granted, free of charge, to any
|
||||
person obtaining a copy of this software and associated
|
||||
documentation files (the "Software"), to deal in the
|
||||
Software without restriction, including without
|
||||
limitation the rights to use, copy, modify, merge,
|
||||
publish, distribute, sublicense, and/or sell copies of
|
||||
the Software, and to permit persons to whom the Software
|
||||
is furnished to do so, subject to the following
|
||||
conditions:
|
||||
|
||||
The above copyright notice and this permission notice
|
||||
shall be included in all copies or substantial portions
|
||||
of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF
|
||||
ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
|
||||
TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
|
||||
PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
|
||||
SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
||||
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
||||
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
|
||||
IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||
DEALINGS IN THE SOFTWARE.
|
||||
93
SourceCodePro-LICENSE.txt
Normal file
93
SourceCodePro-LICENSE.txt
Normal file
@@ -0,0 +1,93 @@
|
||||
Copyright 2010, 2012 Adobe Systems Incorporated (http://www.adobe.com/), with Reserved Font Name 'Source'. All Rights Reserved. Source is a trademark of Adobe Systems Incorporated in the United States and/or other countries.
|
||||
|
||||
This Font Software is licensed under the SIL Open Font License, Version 1.1.
|
||||
|
||||
This license is copied below, and is also available with a FAQ at: http://scripts.sil.org/OFL
|
||||
|
||||
|
||||
-----------------------------------------------------------
|
||||
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
|
||||
-----------------------------------------------------------
|
||||
|
||||
PREAMBLE
|
||||
The goals of the Open Font License (OFL) are to stimulate worldwide
|
||||
development of collaborative font projects, to support the font creation
|
||||
efforts of academic and linguistic communities, and to provide a free and
|
||||
open framework in which fonts may be shared and improved in partnership
|
||||
with others.
|
||||
|
||||
The OFL allows the licensed fonts to be used, studied, modified and
|
||||
redistributed freely as long as they are not sold by themselves. The
|
||||
fonts, including any derivative works, can be bundled, embedded,
|
||||
redistributed and/or sold with any software provided that any reserved
|
||||
names are not used by derivative works. The fonts and derivatives,
|
||||
however, cannot be released under any other type of license. The
|
||||
requirement for fonts to remain under this license does not apply
|
||||
to any document created using the fonts or their derivatives.
|
||||
|
||||
DEFINITIONS
|
||||
"Font Software" refers to the set of files released by the Copyright
|
||||
Holder(s) under this license and clearly marked as such. This may
|
||||
include source files, build scripts and documentation.
|
||||
|
||||
"Reserved Font Name" refers to any names specified as such after the
|
||||
copyright statement(s).
|
||||
|
||||
"Original Version" refers to the collection of Font Software components as
|
||||
distributed by the Copyright Holder(s).
|
||||
|
||||
"Modified Version" refers to any derivative made by adding to, deleting,
|
||||
or substituting -- in part or in whole -- any of the components of the
|
||||
Original Version, by changing formats or by porting the Font Software to a
|
||||
new environment.
|
||||
|
||||
"Author" refers to any designer, engineer, programmer, technical
|
||||
writer or other person who contributed to the Font Software.
|
||||
|
||||
PERMISSION & CONDITIONS
|
||||
Permission is hereby granted, free of charge, to any person obtaining
|
||||
a copy of the Font Software, to use, study, copy, merge, embed, modify,
|
||||
redistribute, and sell modified and unmodified copies of the Font
|
||||
Software, subject to the following conditions:
|
||||
|
||||
1) Neither the Font Software nor any of its individual components,
|
||||
in Original or Modified Versions, may be sold by itself.
|
||||
|
||||
2) Original or Modified Versions of the Font Software may be bundled,
|
||||
redistributed and/or sold with any software, provided that each copy
|
||||
contains the above copyright notice and this license. These can be
|
||||
included either as stand-alone text files, human-readable headers or
|
||||
in the appropriate machine-readable metadata fields within text or
|
||||
binary files as long as those fields can be easily viewed by the user.
|
||||
|
||||
3) No Modified Version of the Font Software may use the Reserved Font
|
||||
Name(s) unless explicit written permission is granted by the corresponding
|
||||
Copyright Holder. This restriction only applies to the primary font name as
|
||||
presented to the users.
|
||||
|
||||
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
|
||||
Software shall not be used to promote, endorse or advertise any
|
||||
Modified Version, except to acknowledge the contribution(s) of the
|
||||
Copyright Holder(s) and the Author(s) or with their explicit written
|
||||
permission.
|
||||
|
||||
5) The Font Software, modified or unmodified, in part or in whole,
|
||||
must be distributed entirely under this license, and must not be
|
||||
distributed under any other license. The requirement for fonts to
|
||||
remain under this license does not apply to any document created
|
||||
using the Font Software.
|
||||
|
||||
TERMINATION
|
||||
This license becomes null and void if any of the above conditions are
|
||||
not met.
|
||||
|
||||
DISCLAIMER
|
||||
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
|
||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
|
||||
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
|
||||
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
||||
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
|
||||
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
|
||||
OTHER DEALINGS IN THE FONT SOFTWARE.
|
||||
BIN
SourceCodePro-Regular.woff
Normal file
BIN
SourceCodePro-Regular.woff
Normal file
Binary file not shown.
BIN
SourceCodePro-Semibold.woff
Normal file
BIN
SourceCodePro-Semibold.woff
Normal file
Binary file not shown.
BIN
SourceSerifPro-Bold.ttf.woff
Normal file
BIN
SourceSerifPro-Bold.ttf.woff
Normal file
Binary file not shown.
BIN
SourceSerifPro-It.ttf.woff
Normal file
BIN
SourceSerifPro-It.ttf.woff
Normal file
Binary file not shown.
93
SourceSerifPro-LICENSE.md
Normal file
93
SourceSerifPro-LICENSE.md
Normal file
@@ -0,0 +1,93 @@
|
||||
Copyright 2014-2018 Adobe (http://www.adobe.com/), with Reserved Font Name 'Source'. All Rights Reserved. Source is a trademark of Adobe in the United States and/or other countries.
|
||||
|
||||
This Font Software is licensed under the SIL Open Font License, Version 1.1.
|
||||
|
||||
This license is copied below, and is also available with a FAQ at: http://scripts.sil.org/OFL
|
||||
|
||||
|
||||
-----------------------------------------------------------
|
||||
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
|
||||
-----------------------------------------------------------
|
||||
|
||||
PREAMBLE
|
||||
The goals of the Open Font License (OFL) are to stimulate worldwide
|
||||
development of collaborative font projects, to support the font creation
|
||||
efforts of academic and linguistic communities, and to provide a free and
|
||||
open framework in which fonts may be shared and improved in partnership
|
||||
with others.
|
||||
|
||||
The OFL allows the licensed fonts to be used, studied, modified and
|
||||
redistributed freely as long as they are not sold by themselves. The
|
||||
fonts, including any derivative works, can be bundled, embedded,
|
||||
redistributed and/or sold with any software provided that any reserved
|
||||
names are not used by derivative works. The fonts and derivatives,
|
||||
however, cannot be released under any other type of license. The
|
||||
requirement for fonts to remain under this license does not apply
|
||||
to any document created using the fonts or their derivatives.
|
||||
|
||||
DEFINITIONS
|
||||
"Font Software" refers to the set of files released by the Copyright
|
||||
Holder(s) under this license and clearly marked as such. This may
|
||||
include source files, build scripts and documentation.
|
||||
|
||||
"Reserved Font Name" refers to any names specified as such after the
|
||||
copyright statement(s).
|
||||
|
||||
"Original Version" refers to the collection of Font Software components as
|
||||
distributed by the Copyright Holder(s).
|
||||
|
||||
"Modified Version" refers to any derivative made by adding to, deleting,
|
||||
or substituting -- in part or in whole -- any of the components of the
|
||||
Original Version, by changing formats or by porting the Font Software to a
|
||||
new environment.
|
||||
|
||||
"Author" refers to any designer, engineer, programmer, technical
|
||||
writer or other person who contributed to the Font Software.
|
||||
|
||||
PERMISSION & CONDITIONS
|
||||
Permission is hereby granted, free of charge, to any person obtaining
|
||||
a copy of the Font Software, to use, study, copy, merge, embed, modify,
|
||||
redistribute, and sell modified and unmodified copies of the Font
|
||||
Software, subject to the following conditions:
|
||||
|
||||
1) Neither the Font Software nor any of its individual components,
|
||||
in Original or Modified Versions, may be sold by itself.
|
||||
|
||||
2) Original or Modified Versions of the Font Software may be bundled,
|
||||
redistributed and/or sold with any software, provided that each copy
|
||||
contains the above copyright notice and this license. These can be
|
||||
included either as stand-alone text files, human-readable headers or
|
||||
in the appropriate machine-readable metadata fields within text or
|
||||
binary files as long as those fields can be easily viewed by the user.
|
||||
|
||||
3) No Modified Version of the Font Software may use the Reserved Font
|
||||
Name(s) unless explicit written permission is granted by the corresponding
|
||||
Copyright Holder. This restriction only applies to the primary font name as
|
||||
presented to the users.
|
||||
|
||||
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
|
||||
Software shall not be used to promote, endorse or advertise any
|
||||
Modified Version, except to acknowledge the contribution(s) of the
|
||||
Copyright Holder(s) and the Author(s) or with their explicit written
|
||||
permission.
|
||||
|
||||
5) The Font Software, modified or unmodified, in part or in whole,
|
||||
must be distributed entirely under this license, and must not be
|
||||
distributed under any other license. The requirement for fonts to
|
||||
remain under this license does not apply to any document created
|
||||
using the Font Software.
|
||||
|
||||
TERMINATION
|
||||
This license becomes null and void if any of the above conditions are
|
||||
not met.
|
||||
|
||||
DISCLAIMER
|
||||
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
|
||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
|
||||
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
|
||||
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
||||
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
|
||||
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
|
||||
OTHER DEALINGS IN THE FONT SOFTWARE.
|
||||
BIN
SourceSerifPro-Regular.ttf.woff
Normal file
BIN
SourceSerifPro-Regular.ttf.woff
Normal file
Binary file not shown.
3
actix_codec/all.html
Normal file
3
actix_codec/all.html
Normal file
@@ -0,0 +1,3 @@
|
||||
<!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="List of all items in this crate"><meta name="keywords" content="rust, rustlang, rust-lang"><title>List of all items in this crate</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><noscript><link rel="stylesheet" href="../noscript.css"></noscript><link rel="shortcut icon" href="../favicon.ico"><style type="text/css">#crate-search{background-image:url("../down-arrow.svg");}</style></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">☰</div><a href='../actix_codec/index.html'><div class='logo-container'><img src='../rust-logo.png' alt='logo'></div></a></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"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><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='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span>
|
||||
</span>
|
||||
<span class='in-band'>List of all items</span></h1><h3 id='Structs'>Structs</h3><ul class='structs docblock'><li><a href='struct.BytesCodec.html'>BytesCodec</a></li><li><a href='struct.Framed.html'>Framed</a></li><li><a href='struct.FramedParts.html'>FramedParts</a></li><li><a href='struct.FramedRead.html'>FramedRead</a></li><li><a href='struct.FramedWrite.html'>FramedWrite</a></li></ul><h3 id='Traits'>Traits</h3><ul class='traits docblock'><li><a href='trait.AsyncRead.html'>AsyncRead</a></li><li><a href='trait.AsyncWrite.html'>AsyncWrite</a></li><li><a href='trait.Decoder.html'>Decoder</a></li><li><a href='trait.Encoder.html'>Encoder</a></li></ul></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../";window.currentCrate = "actix_codec";</script><script src="../aliases.js"></script><script src="../main.js"></script><script defer src="../search-index.js"></script></body></html>
|
||||
10
actix_codec/bcodec/struct.BytesCodec.html
Normal file
10
actix_codec/bcodec/struct.BytesCodec.html
Normal file
@@ -0,0 +1,10 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="refresh" content="0;URL=../../actix_codec/struct.BytesCodec.html">
|
||||
</head>
|
||||
<body>
|
||||
<p>Redirecting to <a href="../../actix_codec/struct.BytesCodec.html">../../actix_codec/struct.BytesCodec.html</a>...</p>
|
||||
<script>location.replace("../../actix_codec/struct.BytesCodec.html" + location.search + location.hash);</script>
|
||||
</body>
|
||||
</html>
|
||||
10
actix_codec/framed/struct.Framed.html
Normal file
10
actix_codec/framed/struct.Framed.html
Normal file
@@ -0,0 +1,10 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="refresh" content="0;URL=../../actix_codec/struct.Framed.html">
|
||||
</head>
|
||||
<body>
|
||||
<p>Redirecting to <a href="../../actix_codec/struct.Framed.html">../../actix_codec/struct.Framed.html</a>...</p>
|
||||
<script>location.replace("../../actix_codec/struct.Framed.html" + location.search + location.hash);</script>
|
||||
</body>
|
||||
</html>
|
||||
10
actix_codec/framed/struct.FramedParts.html
Normal file
10
actix_codec/framed/struct.FramedParts.html
Normal file
@@ -0,0 +1,10 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="refresh" content="0;URL=../../actix_codec/struct.FramedParts.html">
|
||||
</head>
|
||||
<body>
|
||||
<p>Redirecting to <a href="../../actix_codec/struct.FramedParts.html">../../actix_codec/struct.FramedParts.html</a>...</p>
|
||||
<script>location.replace("../../actix_codec/struct.FramedParts.html" + location.search + location.hash);</script>
|
||||
</body>
|
||||
</html>
|
||||
10
actix_codec/framed_read/struct.FramedRead.html
Normal file
10
actix_codec/framed_read/struct.FramedRead.html
Normal file
@@ -0,0 +1,10 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="refresh" content="0;URL=../../actix_codec/struct.FramedRead.html">
|
||||
</head>
|
||||
<body>
|
||||
<p>Redirecting to <a href="../../actix_codec/struct.FramedRead.html">../../actix_codec/struct.FramedRead.html</a>...</p>
|
||||
<script>location.replace("../../actix_codec/struct.FramedRead.html" + location.search + location.hash);</script>
|
||||
</body>
|
||||
</html>
|
||||
10
actix_codec/framed_write/struct.FramedWrite.html
Normal file
10
actix_codec/framed_write/struct.FramedWrite.html
Normal file
@@ -0,0 +1,10 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="refresh" content="0;URL=../../actix_codec/struct.FramedWrite.html">
|
||||
</head>
|
||||
<body>
|
||||
<p>Redirecting to <a href="../../actix_codec/struct.FramedWrite.html">../../actix_codec/struct.FramedWrite.html</a>...</p>
|
||||
<script>location.replace("../../actix_codec/struct.FramedWrite.html" + location.search + location.hash);</script>
|
||||
</body>
|
||||
</html>
|
||||
20
actix_codec/index.html
Normal file
20
actix_codec/index.html
Normal file
@@ -0,0 +1,20 @@
|
||||
<!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 `actix_codec` crate."><meta name="keywords" content="rust, rustlang, rust-lang, actix_codec"><title>actix_codec - 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><noscript><link rel="stylesheet" href="../noscript.css"></noscript><link rel="shortcut icon" href="../favicon.ico"><style type="text/css">#crate-search{background-image:url("../down-arrow.svg");}</style></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">☰</div><a href='../actix_codec/index.html'><div class='logo-container'><img src='../rust-logo.png' alt='logo'></div></a><p class='location'>Crate actix_codec</p><div class="sidebar-elems"><a id='all-types' href='all.html'><p>See all actix_codec's items</p></a><div class="block items"><ul><li><a href="#structs">Structs</a></li><li><a href="#traits">Traits</a></li></ul></div><p class='location'></p><script>window.sidebarCurrent = {name: 'actix_codec', ty: 'mod', relpath: '../'};</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"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><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='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../src/actix_codec/lib.rs.html#1-24' title='goto source code'>[src]</a></span><span class='in-band'>Crate <a class="mod" href=''>actix_codec</a></span></h1><div class='docblock'><p>Utilities for encoding and decoding frames.</p>
|
||||
<p>Contains adapters to go from streams of bytes, <a href="#"><code>AsyncRead</code></a> and
|
||||
<a href="#"><code>AsyncWrite</code></a>, to framed streams implementing <a href="#"><code>Sink</code></a> and <a href="#"><code>Stream</code></a>.
|
||||
Framed streams are also known as <a href="#">transports</a>.</p>
|
||||
</div><h2 id='structs' class='section-header'><a href="#structs">Structs</a></h2>
|
||||
<table><tr class='module-item'><td><a class="struct" href="struct.BytesCodec.html" title='actix_codec::BytesCodec struct'>BytesCodec</a></td><td class='docblock-short'><p>Bytes codec.</p>
|
||||
</td></tr><tr class='module-item'><td><a class="struct" href="struct.Framed.html" title='actix_codec::Framed struct'>Framed</a></td><td class='docblock-short'><p>A unified <code>Stream</code> and <code>Sink</code> interface to an underlying I/O object, using
|
||||
the <code>Encoder</code> and <code>Decoder</code> traits to encode and decode frames.</p>
|
||||
</td></tr><tr class='module-item'><td><a class="struct" href="struct.FramedParts.html" title='actix_codec::FramedParts struct'>FramedParts</a></td><td class='docblock-short'><p><code>FramedParts</code> contains an export of the data of a Framed transport.
|
||||
It can be used to construct a new <code>Framed</code> with a different codec.
|
||||
It contains all current buffers and the inner transport.</p>
|
||||
</td></tr><tr class='module-item'><td><a class="struct" href="struct.FramedRead.html" title='actix_codec::FramedRead struct'>FramedRead</a></td><td class='docblock-short'><p>A <code>Stream</code> of messages decoded from an <code>AsyncRead</code>.</p>
|
||||
</td></tr><tr class='module-item'><td><a class="struct" href="struct.FramedWrite.html" title='actix_codec::FramedWrite struct'>FramedWrite</a></td><td class='docblock-short'><p>A <code>Sink</code> of frames encoded to an <code>AsyncWrite</code>.</p>
|
||||
</td></tr></table><h2 id='traits' class='section-header'><a href="#traits">Traits</a></h2>
|
||||
<table><tr class='module-item'><td><a class="trait" href="trait.AsyncRead.html" title='actix_codec::AsyncRead trait'>AsyncRead</a></td><td class='docblock-short'><p>Read bytes asynchronously.</p>
|
||||
</td></tr><tr class='module-item'><td><a class="trait" href="trait.AsyncWrite.html" title='actix_codec::AsyncWrite trait'>AsyncWrite</a></td><td class='docblock-short'><p>Writes bytes asynchronously.</p>
|
||||
</td></tr><tr class='module-item'><td><a class="trait" href="trait.Decoder.html" title='actix_codec::Decoder trait'>Decoder</a></td><td class='docblock-short'><p>Decoding of frames via buffers.</p>
|
||||
</td></tr><tr class='module-item'><td><a class="trait" href="trait.Encoder.html" title='actix_codec::Encoder trait'>Encoder</a></td><td class='docblock-short'><p>Trait of helper objects to write out messages as bytes, for use with
|
||||
<code>FramedWrite</code>.</p>
|
||||
</td></tr></table></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../";window.currentCrate = "actix_codec";</script><script src="../aliases.js"></script><script src="../main.js"></script><script defer src="../search-index.js"></script></body></html>
|
||||
1
actix_codec/sidebar-items.js
Normal file
1
actix_codec/sidebar-items.js
Normal file
@@ -0,0 +1 @@
|
||||
initSidebarItems({"struct":[["BytesCodec","Bytes codec."],["Framed","A unified `Stream` and `Sink` interface to an underlying I/O object, using the `Encoder` and `Decoder` traits to encode and decode frames."],["FramedParts","`FramedParts` contains an export of the data of a Framed transport. It can be used to construct a new `Framed` with a different codec. It contains all current buffers and the inner transport."],["FramedRead","A `Stream` of messages decoded from an `AsyncRead`."],["FramedWrite","A `Sink` of frames encoded to an `AsyncWrite`."]],"trait":[["AsyncRead","Read bytes asynchronously."],["AsyncWrite","Writes bytes asynchronously."],["Decoder","Decoding of frames via buffers."],["Encoder","Trait of helper objects to write out messages as bytes, for use with `FramedWrite`."]]});
|
||||
27
actix_codec/struct.BytesCodec.html
Normal file
27
actix_codec/struct.BytesCodec.html
Normal file
@@ -0,0 +1,27 @@
|
||||
<!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 `BytesCodec` struct in crate `actix_codec`."><meta name="keywords" content="rust, rustlang, rust-lang, BytesCodec"><title>actix_codec::BytesCodec - 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><noscript><link rel="stylesheet" href="../noscript.css"></noscript><link rel="shortcut icon" href="../favicon.ico"><style type="text/css">#crate-search{background-image:url("../down-arrow.svg");}</style></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">☰</div><a href='../actix_codec/index.html'><div class='logo-container'><img src='../rust-logo.png' alt='logo'></div></a><p class='location'>Struct BytesCodec</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-Clone">Clone</a><a href="#impl-Copy">Copy</a><a href="#impl-Debug">Debug</a><a href="#impl-Decoder">Decoder</a><a href="#impl-Encoder">Encoder</a></div><a class="sidebar-title" href="#synthetic-implementations">Auto Trait Implementations</a><div class="sidebar-links"><a href="#impl-RefUnwindSafe">RefUnwindSafe</a><a href="#impl-Send">Send</a><a href="#impl-Sync">Sync</a><a href="#impl-Unpin">Unpin</a><a href="#impl-UnwindSafe">UnwindSafe</a></div><a class="sidebar-title" href="#blanket-implementations">Blanket Implementations</a><div class="sidebar-links"><a href="#impl-Any">Any</a><a href="#impl-Borrow%3CT%3E">Borrow<T></a><a href="#impl-BorrowMut%3CT%3E">BorrowMut<T></a><a href="#impl-From%3CT%3E">From<T></a><a href="#impl-Into%3CU%3E">Into<U></a><a href="#impl-ToOwned">ToOwned</a><a href="#impl-TryFrom%3CU%3E">TryFrom<U></a><a href="#impl-TryInto%3CU%3E">TryInto<U></a></div></div><p class='location'><a href='index.html'>actix_codec</a></p><script>window.sidebarCurrent = {name: 'BytesCodec', 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"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><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='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../src/actix_codec/bcodec.rs.html#10' title='goto source code'>[src]</a></span><span class='in-band'>Struct <a href='index.html'>actix_codec</a>::<wbr><a class="struct" href=''>BytesCodec</a></span></h1><div class="docblock type-decl hidden-by-usual-hider"><pre class='rust struct'>pub struct BytesCodec;</pre></div><div class='docblock'><p>Bytes codec.</p>
|
||||
<p>Reads/Writes chunks of bytes from a stream.</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-Clone' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> for <a class="struct" href="../actix_codec/struct.BytesCodec.html" title="struct actix_codec::BytesCodec">BytesCodec</a></code><a href='#impl-Clone' class='anchor'></a><a class='srclink' href='../src/actix_codec/bcodec.rs.html#9' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.clone' class="method hidden"><code id='clone.v'>fn <a href='https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#tymethod.clone' class='fnname'>clone</a>(&self) -> <a class="struct" href="../actix_codec/struct.BytesCodec.html" title="struct actix_codec::BytesCodec">BytesCodec</a></code><a class='srclink' href='../src/actix_codec/bcodec.rs.html#9' title='goto source code'>[src]</a></h4><div class='docblock hidden'><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 hidden"><code id='clone_from.v'>fn <a href='https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#method.clone_from' class='fnname'>clone_from</a>(&mut self, source: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>Self)</code><span class='since' title='Stable since Rust version 1.0.0'>1.0.0</span><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/clone.rs.html#131-133' title='goto source code'>[src]</a></h4><div class='docblock hidden'><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-Copy' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Copy.html" title="trait core::marker::Copy">Copy</a> for <a class="struct" href="../actix_codec/struct.BytesCodec.html" title="struct actix_codec::BytesCodec">BytesCodec</a></code><a href='#impl-Copy' class='anchor'></a><a class='srclink' href='../src/actix_codec/bcodec.rs.html#9' title='goto source code'>[src]</a></h3><div class='impl-items'></div><h3 id='impl-Debug' class='impl'><code class='in-band'>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_codec/struct.BytesCodec.html" title="struct actix_codec::BytesCodec">BytesCodec</a></code><a href='#impl-Debug' class='anchor'></a><a class='srclink' href='../src/actix_codec/bcodec.rs.html#9' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.fmt' class="method hidden"><code id='fmt.v'>fn <a href='https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt' class='fnname'>fmt</a>(&self, f: &mut <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a>) -> <a class="type" href="https://doc.rust-lang.org/nightly/core/fmt/type.Result.html" title="type core::fmt::Result">Result</a></code><a class='srclink' href='../src/actix_codec/bcodec.rs.html#9' title='goto source code'>[src]</a></h4><div class='docblock hidden'><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-Decoder' class='impl'><code class='in-band'>impl <a class="trait" href="../actix_codec/trait.Decoder.html" title="trait actix_codec::Decoder">Decoder</a> for <a class="struct" href="../actix_codec/struct.BytesCodec.html" title="struct actix_codec::BytesCodec">BytesCodec</a></code><a href='#impl-Decoder' class='anchor'></a><a class='srclink' href='../src/actix_codec/bcodec.rs.html#22-33' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Item' class="type"><code id='Item.t'>type <a href='../actix_codec/trait.Decoder.html#associatedtype.Item' class="type">Item</a> = <a class="struct" href="../bytes/bytes/struct.BytesMut.html" title="struct bytes::bytes::BytesMut">BytesMut</a></code></h4><div class='docblock'><p>The type of decoded frames.</p>
|
||||
</div><h4 id='associatedtype.Error' class="type"><code id='Error.t'>type <a href='../actix_codec/trait.Decoder.html#associatedtype.Error' class="type">Error</a> = <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></h4><div class='docblock'><p>The type of unrecoverable frame decoding errors. <a href="../actix_codec/trait.Decoder.html#associatedtype.Error">Read more</a></p>
|
||||
</div><h4 id='method.decode' class="method hidden"><code id='decode.v'>fn <a href='../actix_codec/trait.Decoder.html#tymethod.decode' class='fnname'>decode</a>(<br> &mut self, <br> src: &mut <a class="struct" href="../bytes/bytes/struct.BytesMut.html" title="struct bytes::bytes::BytesMut">BytesMut</a><br>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self::<a class="type" href="../actix_codec/trait.Decoder.html#associatedtype.Item" title="type actix_codec::Decoder::Item">Item</a>>, Self::<a class="type" href="../actix_codec/trait.Decoder.html#associatedtype.Error" title="type actix_codec::Decoder::Error">Error</a>></code><a class='srclink' href='../src/actix_codec/bcodec.rs.html#26-32' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Attempts to decode a frame from the provided buffer of bytes. <a href="../actix_codec/trait.Decoder.html#tymethod.decode">Read more</a></p>
|
||||
</div><h4 id='method.decode_eof' class="method hidden"><code id='decode_eof.v'>fn <a href='../actix_codec/trait.Decoder.html#method.decode_eof' class='fnname'>decode_eof</a>(<br> &mut self, <br> buf: &mut <a class="struct" href="../bytes/bytes/struct.BytesMut.html" title="struct bytes::bytes::BytesMut">BytesMut</a><br>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self::<a class="type" href="../actix_codec/trait.Decoder.html#associatedtype.Item" title="type actix_codec::Decoder::Item">Item</a>>, Self::<a class="type" href="../actix_codec/trait.Decoder.html#associatedtype.Error" title="type actix_codec::Decoder::Error">Error</a>></code><a class='srclink' href='../src/tokio_io/codec/decoder.rs.html#81-92' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>A default method available to be called when there are no more bytes available to be read from the underlying I/O. <a href="../actix_codec/trait.Decoder.html#method.decode_eof">Read more</a></p>
|
||||
</div><h4 id='method.framed' class="method hidden"><code id='framed.v'>fn <a href='../actix_codec/trait.Decoder.html#method.framed' class='fnname'>framed</a><T>(self, io: T) -> <a class="struct" href="../tokio_io/_tokio_codec/framed/struct.Framed.html" title="struct tokio_io::_tokio_codec::framed::Framed">Framed</a><T, Self> <span class="where fmt-newline">where<br> Self: <a class="trait" href="../actix_codec/trait.Encoder.html" title="trait actix_codec::Encoder">Encoder</a>,<br> T: <a class="trait" href="../actix_codec/trait.AsyncRead.html" title="trait actix_codec::AsyncRead">AsyncRead</a> + <a class="trait" href="../actix_codec/trait.AsyncWrite.html" title="trait actix_codec::AsyncWrite">AsyncWrite</a>, </span></code><a class='srclink' href='../src/tokio_io/codec/decoder.rs.html#111-116' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Provides a <code>Stream</code> and <code>Sink</code> interface for reading and writing to this <code>Io</code> object, using <code>Decode</code> and <code>Encode</code> to read and write the raw data. <a href="../actix_codec/trait.Decoder.html#method.framed">Read more</a></p>
|
||||
</div></div><h3 id='impl-Encoder' class='impl'><code class='in-band'>impl <a class="trait" href="../actix_codec/trait.Encoder.html" title="trait actix_codec::Encoder">Encoder</a> for <a class="struct" href="../actix_codec/struct.BytesCodec.html" title="struct actix_codec::BytesCodec">BytesCodec</a></code><a href='#impl-Encoder' class='anchor'></a><a class='srclink' href='../src/actix_codec/bcodec.rs.html#12-20' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Item-1' class="type"><code id='Item.t-1'>type <a href='../actix_codec/trait.Encoder.html#associatedtype.Item' class="type">Item</a> = <a class="struct" href="../bytes/bytes/struct.Bytes.html" title="struct bytes::bytes::Bytes">Bytes</a></code></h4><div class='docblock'><p>The type of items consumed by the <code>Encoder</code></p>
|
||||
</div><h4 id='associatedtype.Error-1' class="type"><code id='Error.t-1'>type <a href='../actix_codec/trait.Encoder.html#associatedtype.Error' class="type">Error</a> = <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></h4><div class='docblock'><p>The type of encoding errors. <a href="../actix_codec/trait.Encoder.html#associatedtype.Error">Read more</a></p>
|
||||
</div><h4 id='method.encode' class="method hidden"><code id='encode.v'>fn <a href='../actix_codec/trait.Encoder.html#tymethod.encode' class='fnname'>encode</a>(&mut self, item: <a class="struct" href="../bytes/bytes/struct.Bytes.html" title="struct bytes::bytes::Bytes">Bytes</a>, dst: &mut <a class="struct" href="../bytes/bytes/struct.BytesMut.html" title="struct bytes::bytes::BytesMut">BytesMut</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, Self::<a class="type" href="../actix_codec/trait.Encoder.html#associatedtype.Error" title="type actix_codec::Encoder::Error">Error</a>></code><a class='srclink' href='../src/actix_codec/bcodec.rs.html#16-19' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Encodes a frame into the buffer provided. <a href="../actix_codec/trait.Encoder.html#tymethod.encode">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-RefUnwindSafe' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/std/panic/trait.RefUnwindSafe.html" title="trait std::panic::RefUnwindSafe">RefUnwindSafe</a> for <a class="struct" href="../actix_codec/struct.BytesCodec.html" title="struct actix_codec::BytesCodec">BytesCodec</a></code><a href='#impl-RefUnwindSafe' class='anchor'></a></h3><div class='impl-items'></div><h3 id='impl-Send' class='impl'><code class='in-band'>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_codec/struct.BytesCodec.html" title="struct actix_codec::BytesCodec">BytesCodec</a></code><a href='#impl-Send' class='anchor'></a></h3><div class='impl-items'></div><h3 id='impl-Sync' class='impl'><code class='in-band'>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_codec/struct.BytesCodec.html" title="struct actix_codec::BytesCodec">BytesCodec</a></code><a href='#impl-Sync' class='anchor'></a></h3><div class='impl-items'></div><h3 id='impl-Unpin' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a> for <a class="struct" href="../actix_codec/struct.BytesCodec.html" title="struct actix_codec::BytesCodec">BytesCodec</a></code><a href='#impl-Unpin' class='anchor'></a></h3><div class='impl-items'></div><h3 id='impl-UnwindSafe' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/std/panic/trait.UnwindSafe.html" title="trait std::panic::UnwindSafe">UnwindSafe</a> for <a class="struct" href="../actix_codec/struct.BytesCodec.html" title="struct actix_codec::BytesCodec">BytesCodec</a></code><a href='#impl-UnwindSafe' class='anchor'></a></h3><div class='impl-items'></div></div><h2 id='blanket-implementations' class='small-section-header'>Blanket Implementations<a href='#blanket-implementations' class='anchor'></a></h2><div id='blanket-implementations-list'><h3 id='impl-Any' class='impl'><code class='in-band'>impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html" title="trait core::any::Any">Any</a> for T <span class="where fmt-newline">where<br> T: 'static + ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></code><a href='#impl-Any' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/any.rs.html#108-112' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.type_id' class="method hidden"><code id='type_id.v'>fn <a href='https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id' class='fnname'>type_id</a>(&self) -> <a class="struct" href="https://doc.rust-lang.org/nightly/core/any/struct.TypeId.html" title="struct core::any::TypeId">TypeId</a></code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/any.rs.html#109-111' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Gets the <code>TypeId</code> of <code>self</code>. <a href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id">Read more</a></p>
|
||||
</div></div><h3 id='impl-Borrow%3CT%3E' class='impl'><code class='in-band'>impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a><T> for T <span class="where fmt-newline">where<br> T: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></code><a href='#impl-Borrow%3CT%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#213-217' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.borrow' class="method hidden"><code id='borrow.v'>fn <a href='https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow' class='fnname'>borrow</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>T</code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#214-216' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Immutably borrows from an owned value. <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow">Read more</a></p>
|
||||
</div></div><h3 id='impl-BorrowMut%3CT%3E' class='impl'><code class='in-band'>impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html" title="trait core::borrow::BorrowMut">BorrowMut</a><T> for T <span class="where fmt-newline">where<br> T: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></code><a href='#impl-BorrowMut%3CT%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#220-224' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.borrow_mut' class="method hidden"><code id='borrow_mut.v'>fn <a href='https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut' class='fnname'>borrow_mut</a>(&mut self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>T</code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#221-223' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Mutably borrows from an owned value. <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read more</a></p>
|
||||
</div></div><h3 id='impl-From%3CT%3E' class='impl'><code class='in-band'>impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><T> for T</code><a href='#impl-From%3CT%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#564-568' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.from' class="method hidden"><code id='from.v'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from' class='fnname'>from</a>(t: T) -> T</code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#565-567' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||||
</div></div><h3 id='impl-Into%3CU%3E' class='impl'><code class='in-band'>impl<T, U> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><U> for T <span class="where fmt-newline">where<br> U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><T>, </span></code><a href='#impl-Into%3CU%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#553-560' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.into' class="method hidden"><code id='into.v'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.Into.html#tymethod.into' class='fnname'>into</a>(self) -> U</code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#557-559' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||||
</div></div><h3 id='impl-ToOwned' class='impl'><code class='in-band'>impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html" title="trait alloc::borrow::ToOwned">ToOwned</a> for T <span class="where fmt-newline">where<br> T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>, </span></code><a href='#impl-ToOwned' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/alloc/borrow.rs.html#80-92' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Owned' class="type"><code id='Owned.t'>type <a href='https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#associatedtype.Owned' class="type">Owned</a> = T</code></h4><div class='docblock'><p>The resulting type after obtaining ownership.</p>
|
||||
</div><h4 id='method.to_owned' class="method hidden"><code id='to_owned.v'>fn <a href='https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#tymethod.to_owned' class='fnname'>to_owned</a>(&self) -> T</code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/alloc/borrow.rs.html#85-87' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Creates owned data from borrowed data, usually by cloning. <a href="https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#tymethod.to_owned">Read more</a></p>
|
||||
</div><h4 id='method.clone_into' class="method hidden"><code id='clone_into.v'>fn <a href='https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#method.clone_into' class='fnname'>clone_into</a>(&self, target: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>T)</code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/alloc/borrow.rs.html#89-91' title='goto source code'>[src]</a></h4><div class='stability hidden'><div class='stab unstable'><details><summary><span class='emoji'>🔬</span> This is a nightly-only experimental API. (<code>toowned_clone_into</code>)</summary><p>recently added</p>
|
||||
</details></div></div><div class='docblock hidden'><p>Uses borrowed data to replace owned data, usually by cloning. <a href="https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#method.clone_into">Read more</a></p>
|
||||
</div></div><h3 id='impl-TryFrom%3CU%3E' class='impl'><code class='in-band'>impl<T, U> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><U> for T <span class="where fmt-newline">where<br> U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><T>, </span></code><a href='#impl-TryFrom%3CU%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#601-610' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Error-2' class="type"><code id='Error.t-2'>type <a href='https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error' class="type">Error</a> = <a class="enum" href="https://doc.rust-lang.org/nightly/core/convert/enum.Infallible.html" title="enum core::convert::Infallible">Infallible</a></code></h4><div class='docblock'><p>The type returned in the event of a conversion error.</p>
|
||||
</div><h4 id='method.try_from' class="method hidden"><code id='try_from.v'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#tymethod.try_from' class='fnname'>try_from</a>(value: U) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><T, <T as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><U>>::<a class="type" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>></code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#607-609' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||||
</div></div><h3 id='impl-TryInto%3CU%3E' class='impl'><code class='in-band'>impl<T, U> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html" title="trait core::convert::TryInto">TryInto</a><U> for T <span class="where fmt-newline">where<br> U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>, </span></code><a href='#impl-TryInto%3CU%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#587-596' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Error-3' class="type"><code id='Error.t-3'>type <a href='https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html#associatedtype.Error' class="type">Error</a> = <U as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>>::<a class="type" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a></code></h4><div class='docblock'><p>The type returned in the event of a conversion error.</p>
|
||||
</div><h4 id='method.try_into' class="method hidden"><code id='try_into.v'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html#tymethod.try_into' class='fnname'>try_into</a>(self) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><U, <U as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>>::<a class="type" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>></code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#593-595' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||||
</div></div></div></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../";window.currentCrate = "actix_codec";</script><script src="../aliases.js"></script><script src="../main.js"></script><script defer src="../search-index.js"></script></body></html>
|
||||
128
actix_codec/struct.Framed.html
Normal file
128
actix_codec/struct.Framed.html
Normal file
File diff suppressed because one or more lines are too long
31
actix_codec/struct.FramedParts.html
Normal file
31
actix_codec/struct.FramedParts.html
Normal file
File diff suppressed because one or more lines are too long
84
actix_codec/struct.FramedRead.html
Normal file
84
actix_codec/struct.FramedRead.html
Normal file
File diff suppressed because one or more lines are too long
87
actix_codec/struct.FramedWrite.html
Normal file
87
actix_codec/struct.FramedWrite.html
Normal file
File diff suppressed because one or more lines are too long
91
actix_codec/trait.AsyncRead.html
Normal file
91
actix_codec/trait.AsyncRead.html
Normal file
File diff suppressed because one or more lines are too long
113
actix_codec/trait.AsyncWrite.html
Normal file
113
actix_codec/trait.AsyncWrite.html
Normal file
File diff suppressed because one or more lines are too long
77
actix_codec/trait.Decoder.html
Normal file
77
actix_codec/trait.Decoder.html
Normal file
File diff suppressed because one or more lines are too long
19
actix_codec/trait.Encoder.html
Normal file
19
actix_codec/trait.Encoder.html
Normal 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 `Encoder` trait in crate `actix_codec`."><meta name="keywords" content="rust, rustlang, rust-lang, Encoder"><title>actix_codec::Encoder - 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><noscript><link rel="stylesheet" href="../noscript.css"></noscript><link rel="shortcut icon" href="../favicon.ico"><style type="text/css">#crate-search{background-image:url("../down-arrow.svg");}</style></head><body class="rustdoc trait"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../actix_codec/index.html'><div class='logo-container'><img src='../rust-logo.png' alt='logo'></div></a><p class='location'>Trait Encoder</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#associated-types">Associated Types</a><div class="sidebar-links"><a href="#associatedtype.Item">Item</a><a href="#associatedtype.Error">Error</a></div><a class="sidebar-title" href="#required-methods">Required Methods</a><div class="sidebar-links"><a href="#tymethod.encode">encode</a></div><a class="sidebar-title" href="#foreign-impls">Implementations on Foreign Types</a><div class="sidebar-links"><a href="#impl-Encoder-for-BytesCodec">BytesCodec</a><a href="#impl-Encoder-for-LinesCodec">LinesCodec</a></div><a class="sidebar-title" href="#implementors">Implementors</a></div><p class='location'><a href='index.html'>actix_codec</a></p><script>window.sidebarCurrent = {name: 'Encoder', ty: 'trait', 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"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><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='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../src/tokio_io/codec/encoder.rs.html#9-25' title='goto source code'>[src]</a></span><span class='in-band'>Trait <a href='index.html'>actix_codec</a>::<wbr><a class="trait" href=''>Encoder</a></span></h1><div class="docblock type-decl hidden-by-usual-hider"><pre class='rust trait'>pub trait Encoder {
|
||||
type <a href='#associatedtype.Item' class="type">Item</a>;
|
||||
type <a href='#associatedtype.Error' class="type">Error</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="struct" href="https://doc.rust-lang.org/nightly/std/io/error/struct.Error.html" title="struct std::io::error::Error">Error</a>>;
|
||||
fn <a href='#tymethod.encode' class='fnname'>encode</a>(<br> &mut self, <br> item: Self::<a class="type" href="../actix_codec/trait.Encoder.html#associatedtype.Item" title="type actix_codec::Encoder::Item">Item</a>, <br> dst: &mut <a class="struct" href="../bytes/bytes/struct.BytesMut.html" title="struct bytes::bytes::BytesMut">BytesMut</a><br> ) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, Self::<a class="type" href="../actix_codec/trait.Encoder.html#associatedtype.Error" title="type actix_codec::Encoder::Error">Error</a>>;
|
||||
}</pre></div><div class='docblock'><p>Trait of helper objects to write out messages as bytes, for use with
|
||||
<code>FramedWrite</code>.</p>
|
||||
</div>
|
||||
<h2 id='associated-types' class='small-section-header'>Associated Types<a href='#associated-types' class='anchor'></a></h2><div class='methods'><h3 id='associatedtype.Item' class='method'><code id='Item.t'>type <a href='#associatedtype.Item' class="type">Item</a></code></h3><div class='docblock'><p>The type of items consumed by the <code>Encoder</code></p>
|
||||
</div><h3 id='associatedtype.Error' class='method'><code id='Error.t'>type <a href='#associatedtype.Error' class="type">Error</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><<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></h3><div class='docblock'><p>The type of encoding errors.</p>
|
||||
<p><code>FramedWrite</code> requires <code>Encoder</code>s errors to implement <code>From<io::Error></code>
|
||||
in the interest letting it return <code>Error</code>s directly.</p>
|
||||
</div></div><span class='loading-content'>Loading content...</span>
|
||||
<h2 id='required-methods' class='small-section-header'>Required methods<a href='#required-methods' class='anchor'></a></h2><div class='methods'><h3 id='tymethod.encode' class='method'><code id='encode.v'>fn <a href='#tymethod.encode' class='fnname'>encode</a>(<br> &mut self, <br> item: Self::<a class="type" href="../actix_codec/trait.Encoder.html#associatedtype.Item" title="type actix_codec::Encoder::Item">Item</a>, <br> dst: &mut <a class="struct" href="../bytes/bytes/struct.BytesMut.html" title="struct bytes::bytes::BytesMut">BytesMut</a><br>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, Self::<a class="type" href="../actix_codec/trait.Encoder.html#associatedtype.Error" title="type actix_codec::Encoder::Error">Error</a>></code></h3><div class='docblock'><p>Encodes a frame into the buffer provided.</p>
|
||||
<p>This method will encode <code>item</code> into the byte buffer provided by <code>dst</code>.
|
||||
The <code>dst</code> provided is an internal buffer of the <code>Framed</code> instance and
|
||||
will be written out when possible.</p>
|
||||
</div></div><span class='loading-content'>Loading content...</span>
|
||||
<h2 id='foreign-impls' class='small-section-header'>Implementations on Foreign Types<a href='#foreign-impls' class='anchor'></a></h2><h3 id='impl-Encoder-for-LinesCodec' class='impl'><code class='in-band'>impl <a class="trait" href="../actix_codec/trait.Encoder.html" title="trait actix_codec::Encoder">Encoder</a> for <a class="struct" href="../tokio_codec/lines_codec/struct.LinesCodec.html" title="struct tokio_codec::lines_codec::LinesCodec">LinesCodec</a></code><a href='#impl-Encoder-for-LinesCodec' class='anchor'></a><a class='srclink' href='../src/tokio_codec/lines_codec.rs.html#185-195' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Item-1' class="type"><code id='Item.t-1'>type <a href='#associatedtype.Item' class="type">Item</a> = <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a></code></h4><h4 id='associatedtype.Error-1' class="type"><code id='Error.t-1'>type <a href='#associatedtype.Error' class="type">Error</a> = <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></h4><h4 id='method.encode' class="method hidden"><code id='encode.v-1'>fn <a href='#method.encode' class='fnname'>encode</a>(&mut self, line: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>, buf: &mut <a class="struct" href="../bytes/bytes/struct.BytesMut.html" title="struct bytes::bytes::BytesMut">BytesMut</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<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/std/io/error/struct.Error.html" title="struct std::io::error::Error">Error</a>></code><a class='srclink' href='../src/tokio_codec/lines_codec.rs.html#189-194' title='goto source code'>[src]</a></h4></div><h3 id='impl-Encoder-for-BytesCodec' class='impl'><code class='in-band'>impl <a class="trait" href="../actix_codec/trait.Encoder.html" title="trait actix_codec::Encoder">Encoder</a> for <a class="struct" href="../tokio_codec/bytes_codec/struct.BytesCodec.html" title="struct tokio_codec::bytes_codec::BytesCodec">BytesCodec</a></code><a href='#impl-Encoder-for-BytesCodec' class='anchor'></a><a class='srclink' href='../src/tokio_codec/bytes_codec.rs.html#30-39' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Item-2' class="type"><code id='Item.t-2'>type <a href='#associatedtype.Item' class="type">Item</a> = <a class="struct" href="../bytes/bytes/struct.Bytes.html" title="struct bytes::bytes::Bytes">Bytes</a></code></h4><h4 id='associatedtype.Error-2' class="type"><code id='Error.t-2'>type <a href='#associatedtype.Error' class="type">Error</a> = <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></h4><h4 id='method.encode-1' class="method hidden"><code id='encode.v-2'>fn <a href='#method.encode' class='fnname'>encode</a>(&mut self, data: <a class="struct" href="../bytes/bytes/struct.Bytes.html" title="struct bytes::bytes::Bytes">Bytes</a>, buf: &mut <a class="struct" href="../bytes/bytes/struct.BytesMut.html" title="struct bytes::bytes::BytesMut">BytesMut</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<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/std/io/error/struct.Error.html" title="struct std::io::error::Error">Error</a>></code><a class='srclink' href='../src/tokio_codec/bytes_codec.rs.html#34-38' title='goto source code'>[src]</a></h4></div><span class='loading-content'>Loading content...</span>
|
||||
<h2 id='implementors' class='small-section-header'>Implementors<a href='#implementors' class='anchor'></a></h2><div class='item-list' id='implementors-list'><h3 id='impl-Encoder' class='impl'><code class='in-band'>impl Encoder for actix_codec::<a class="struct" href="../actix_codec/struct.BytesCodec.html" title="struct actix_codec::BytesCodec">BytesCodec</a></code><a href='#impl-Encoder' class='anchor'></a><a class='srclink' href='../src/actix_codec/bcodec.rs.html#12-20' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Item-3' class="type"><code id='Item.t-3'>type <a href='#associatedtype.Item-3' class="type">Item</a> = <a class="struct" href="../bytes/bytes/struct.Bytes.html" title="struct bytes::bytes::Bytes">Bytes</a></code></h4><h4 id='associatedtype.Error-3' class="type"><code id='Error.t-3'>type <a href='#associatedtype.Error-3' class="type">Error</a> = <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></h4><h4 id='method.encode-2' class="method hidden"><code id='encode.v-3'>fn <a href='#method.encode-2' class='fnname'>encode</a>(&mut self, item: <a class="struct" href="../bytes/bytes/struct.Bytes.html" title="struct bytes::bytes::Bytes">Bytes</a>, dst: &mut <a class="struct" href="../bytes/bytes/struct.BytesMut.html" title="struct bytes::bytes::BytesMut">BytesMut</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, Self::<a class="type" href="../actix_codec/trait.Encoder.html#associatedtype.Error" title="type actix_codec::Encoder::Error">Error</a>></code><a class='srclink' href='../src/actix_codec/bcodec.rs.html#16-19' title='goto source code'>[src]</a></h4></div></div><span class='loading-content'>Loading content...</span><script type="text/javascript" src="../implementors/tokio_io/codec/encoder/trait.Encoder.js" async></script></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../";window.currentCrate = "actix_codec";</script><script src="../aliases.js"></script><script src="../main.js"></script><script defer src="../search-index.js"></script></body></html>
|
||||
3
actix_connect/all.html
Normal file
3
actix_connect/all.html
Normal file
@@ -0,0 +1,3 @@
|
||||
<!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="List of all items in this crate"><meta name="keywords" content="rust, rustlang, rust-lang"><title>List of all items in this crate</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><noscript><link rel="stylesheet" href="../noscript.css"></noscript><link rel="shortcut icon" href="../favicon.ico"><style type="text/css">#crate-search{background-image:url("../down-arrow.svg");}</style></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">☰</div><a href='../actix_connect/index.html'><div class='logo-container'><img src='../rust-logo.png' alt='logo'></div></a></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"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><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='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span>
|
||||
</span>
|
||||
<span class='in-band'>List of all items</span></h1><h3 id='Structs'>Structs</h3><ul class='structs docblock'><li><a href='struct.AsyncResolver.html'>AsyncResolver</a></li><li><a href='struct.Connect.html'>Connect</a></li><li><a href='struct.ConnectService.html'>ConnectService</a></li><li><a href='struct.ConnectServiceFactory.html'>ConnectServiceFactory</a></li><li><a href='struct.Connection.html'>Connection</a></li><li><a href='struct.ResolveError.html'>ResolveError</a></li><li><a href='struct.Resolver.html'>Resolver</a></li><li><a href='struct.ResolverConfig.html'>ResolverConfig</a></li><li><a href='struct.ResolverFactory.html'>ResolverFactory</a></li><li><a href='struct.ResolverOpts.html'>ResolverOpts</a></li><li><a href='struct.TcpConnectService.html'>TcpConnectService</a></li><li><a href='struct.TcpConnector.html'>TcpConnector</a></li><li><a href='struct.TcpConnectorFactory.html'>TcpConnectorFactory</a></li></ul><h3 id='Enums'>Enums</h3><ul class='enums docblock'><li><a href='enum.ConnectError.html'>ConnectError</a></li></ul><h3 id='Traits'>Traits</h3><ul class='traits docblock'><li><a href='trait.Address.html'>Address</a></li></ul><h3 id='Functions'>Functions</h3><ul class='functions docblock'><li><a href='fn.default_connector.html'>default_connector</a></li><li><a href='fn.default_connector_factory.html'>default_connector_factory</a></li><li><a href='fn.new_connector.html'>new_connector</a></li><li><a href='fn.new_connector_factory.html'>new_connector_factory</a></li><li><a href='fn.read_system_conf.html'>read_system_conf</a></li><li><a href='fn.start_default_resolver.html'>start_default_resolver</a></li><li><a href='fn.start_resolver.html'>start_resolver</a></li></ul></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../";window.currentCrate = "actix_connect";</script><script src="../aliases.js"></script><script src="../main.js"></script><script defer src="../search-index.js"></script></body></html>
|
||||
10
actix_connect/connect/struct.Connect.html
Normal file
10
actix_connect/connect/struct.Connect.html
Normal file
@@ -0,0 +1,10 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="refresh" content="0;URL=../../actix_connect/struct.Connect.html">
|
||||
</head>
|
||||
<body>
|
||||
<p>Redirecting to <a href="../../actix_connect/struct.Connect.html">../../actix_connect/struct.Connect.html</a>...</p>
|
||||
<script>location.replace("../../actix_connect/struct.Connect.html" + location.search + location.hash);</script>
|
||||
</body>
|
||||
</html>
|
||||
10
actix_connect/connect/struct.Connection.html
Normal file
10
actix_connect/connect/struct.Connection.html
Normal file
@@ -0,0 +1,10 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="refresh" content="0;URL=../../actix_connect/struct.Connection.html">
|
||||
</head>
|
||||
<body>
|
||||
<p>Redirecting to <a href="../../actix_connect/struct.Connection.html">../../actix_connect/struct.Connection.html</a>...</p>
|
||||
<script>location.replace("../../actix_connect/struct.Connection.html" + location.search + location.hash);</script>
|
||||
</body>
|
||||
</html>
|
||||
10
actix_connect/connect/trait.Address.html
Normal file
10
actix_connect/connect/trait.Address.html
Normal file
@@ -0,0 +1,10 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="refresh" content="0;URL=../../actix_connect/trait.Address.html">
|
||||
</head>
|
||||
<body>
|
||||
<p>Redirecting to <a href="../../actix_connect/trait.Address.html">../../actix_connect/trait.Address.html</a>...</p>
|
||||
<script>location.replace("../../actix_connect/trait.Address.html" + location.search + location.hash);</script>
|
||||
</body>
|
||||
</html>
|
||||
10
actix_connect/connector/struct.TcpConnector.html
Normal file
10
actix_connect/connector/struct.TcpConnector.html
Normal file
@@ -0,0 +1,10 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="refresh" content="0;URL=../../actix_connect/struct.TcpConnector.html">
|
||||
</head>
|
||||
<body>
|
||||
<p>Redirecting to <a href="../../actix_connect/struct.TcpConnector.html">../../actix_connect/struct.TcpConnector.html</a>...</p>
|
||||
<script>location.replace("../../actix_connect/struct.TcpConnector.html" + location.search + location.hash);</script>
|
||||
</body>
|
||||
</html>
|
||||
10
actix_connect/connector/struct.TcpConnectorFactory.html
Normal file
10
actix_connect/connector/struct.TcpConnectorFactory.html
Normal file
@@ -0,0 +1,10 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="refresh" content="0;URL=../../actix_connect/struct.TcpConnectorFactory.html">
|
||||
</head>
|
||||
<body>
|
||||
<p>Redirecting to <a href="../../actix_connect/struct.TcpConnectorFactory.html">../../actix_connect/struct.TcpConnectorFactory.html</a>...</p>
|
||||
<script>location.replace("../../actix_connect/struct.TcpConnectorFactory.html" + location.search + location.hash);</script>
|
||||
</body>
|
||||
</html>
|
||||
28
actix_connect/enum.ConnectError.html
Normal file
28
actix_connect/enum.ConnectError.html
Normal 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 `ConnectError` enum in crate `actix_connect`."><meta name="keywords" content="rust, rustlang, rust-lang, ConnectError"><title>actix_connect::ConnectError - 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><noscript><link rel="stylesheet" href="../noscript.css"></noscript><link rel="shortcut icon" href="../favicon.ico"><style type="text/css">#crate-search{background-image:url("../down-arrow.svg");}</style></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">☰</div><a href='../actix_connect/index.html'><div class='logo-container'><img src='../rust-logo.png' alt='logo'></div></a><p class='location'>Enum ConnectError</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.NoRecords">NoRecords</a><a href="#variant.InvalidInput">InvalidInput</a><a href="#variant.Unresolverd">Unresolverd</a><a href="#variant.Io">Io</a></div><a class="sidebar-title" href="#implementations">Trait Implementations</a><div class="sidebar-links"><a href="#impl-Debug">Debug</a><a href="#impl-Display">Display</a><a href="#impl-From%3CError%3E">From<Error></a><a href="#impl-From%3CResolveError%3E">From<ResolveError></a></div><a class="sidebar-title" href="#synthetic-implementations">Auto Trait Implementations</a><div class="sidebar-links"><a href="#impl-RefUnwindSafe">!RefUnwindSafe</a><a href="#impl-Send">Send</a><a href="#impl-Sync">Sync</a><a href="#impl-Unpin">Unpin</a><a href="#impl-UnwindSafe">!UnwindSafe</a></div><a class="sidebar-title" href="#blanket-implementations">Blanket Implementations</a><div class="sidebar-links"><a href="#impl-Any">Any</a><a href="#impl-Borrow%3CT%3E">Borrow<T></a><a href="#impl-BorrowMut%3CT%3E">BorrowMut<T></a><a href="#impl-From%3CT%3E">From<T></a><a href="#impl-Into%3CU%3E">Into<U></a><a href="#impl-ToString">ToString</a><a href="#impl-TryFrom%3CU%3E">TryFrom<U></a><a href="#impl-TryInto%3CU%3E">TryInto<U></a></div></div><p class='location'><a href='index.html'>actix_connect</a></p><script>window.sidebarCurrent = {name: 'ConnectError', 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"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><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='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../src/actix_connect/error.rs.html#7-26' title='goto source code'>[src]</a></span><span class='in-band'>Enum <a href='index.html'>actix_connect</a>::<wbr><a class="enum" href=''>ConnectError</a></span></h1><div class="docblock type-decl hidden-by-usual-hider"><pre class='rust enum'>pub enum ConnectError {
|
||||
Resolver(<a class="struct" href="../actix_connect/struct.ResolveError.html" title="struct actix_connect::ResolveError">ResolveError</a>),
|
||||
NoRecords,
|
||||
InvalidInput,
|
||||
Unresolverd,
|
||||
Io(<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>
|
||||
<div id="variant.Resolver" class="variant small-section-header"><a href="#variant.Resolver" class="anchor field"></a><code id='Resolver.v'>Resolver(<a class="struct" href="../actix_connect/struct.ResolveError.html" title="struct actix_connect::ResolveError">ResolveError</a>)</code></div><div class='docblock'><p>Failed to resolve the hostname</p>
|
||||
</div><div id="variant.NoRecords" class="variant small-section-header"><a href="#variant.NoRecords" class="anchor field"></a><code id='NoRecords.v'>NoRecords</code></div><div class='docblock'><p>No dns records</p>
|
||||
</div><div id="variant.InvalidInput" class="variant small-section-header"><a href="#variant.InvalidInput" class="anchor field"></a><code id='InvalidInput.v'>InvalidInput</code></div><div class='docblock'><p>Invalid input</p>
|
||||
</div><div id="variant.Unresolverd" class="variant small-section-header"><a href="#variant.Unresolverd" class="anchor field"></a><code id='Unresolverd.v'>Unresolverd</code></div><div class='docblock'><p>Unresolved host name</p>
|
||||
</div><div id="variant.Io" class="variant small-section-header"><a href="#variant.Io" class="anchor field"></a><code id='Io.v'>Io(<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></div><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-Debug' class='impl'><code class='in-band'>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_connect/enum.ConnectError.html" title="enum actix_connect::ConnectError">ConnectError</a></code><a href='#impl-Debug' class='anchor'></a><a class='srclink' href='../src/actix_connect/error.rs.html#6' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.fmt' class="method hidden"><code id='fmt.v'>fn <a href='https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt' class='fnname'>fmt</a>(&self, f: &mut <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a>) -> <a class="type" href="https://doc.rust-lang.org/nightly/core/fmt/type.Result.html" title="type core::fmt::Result">Result</a></code><a class='srclink' href='../src/actix_connect/error.rs.html#6' title='goto source code'>[src]</a></h4><div class='docblock hidden'><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-Display' class='impl'><code class='in-band'>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_connect/enum.ConnectError.html" title="enum actix_connect::ConnectError">ConnectError</a></code><a href='#impl-Display' class='anchor'></a><a class='srclink' href='../src/actix_connect/error.rs.html#6' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.fmt-1' class="method hidden"><code id='fmt.v-1'>fn <a href='https://doc.rust-lang.org/nightly/core/fmt/trait.Display.html#tymethod.fmt' class='fnname'>fmt</a>(&self, _derive_more_Display_formatter: &mut <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a>) -> <a class="type" href="https://doc.rust-lang.org/nightly/core/fmt/type.Result.html" title="type core::fmt::Result">Result</a></code><a class='srclink' href='../src/actix_connect/error.rs.html#6' title='goto source code'>[src]</a></h4><div class='docblock hidden'><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-From%3CError%3E' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="struct" href="https://doc.rust-lang.org/nightly/std/io/error/struct.Error.html" title="struct std::io::error::Error">Error</a>> for <a class="enum" href="../actix_connect/enum.ConnectError.html" title="enum actix_connect::ConnectError">ConnectError</a></code><a href='#impl-From%3CError%3E' class='anchor'></a><a class='srclink' href='../src/actix_connect/error.rs.html#6' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.from-1' class="method hidden"><code id='from.v-1'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from' class='fnname'>from</a>(original: <a class="struct" href="https://doc.rust-lang.org/nightly/std/io/error/struct.Error.html" title="struct std::io::error::Error">Error</a>) -> <a class="enum" href="../actix_connect/enum.ConnectError.html" title="enum actix_connect::ConnectError">ConnectError</a></code><a class='srclink' href='../src/actix_connect/error.rs.html#6' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||||
</div></div><h3 id='impl-From%3CResolveError%3E' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="struct" href="../actix_connect/struct.ResolveError.html" title="struct actix_connect::ResolveError">ResolveError</a>> for <a class="enum" href="../actix_connect/enum.ConnectError.html" title="enum actix_connect::ConnectError">ConnectError</a></code><a href='#impl-From%3CResolveError%3E' class='anchor'></a><a class='srclink' href='../src/actix_connect/error.rs.html#6' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.from' class="method hidden"><code id='from.v'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from' class='fnname'>from</a>(original: <a class="struct" href="../actix_connect/struct.ResolveError.html" title="struct actix_connect::ResolveError">ResolveError</a>) -> <a class="enum" href="../actix_connect/enum.ConnectError.html" title="enum actix_connect::ConnectError">ConnectError</a></code><a class='srclink' href='../src/actix_connect/error.rs.html#6' title='goto source code'>[src]</a></h4><div class='docblock hidden'><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-RefUnwindSafe' class='impl'><code class='in-band'>impl !<a class="trait" href="https://doc.rust-lang.org/nightly/std/panic/trait.RefUnwindSafe.html" title="trait std::panic::RefUnwindSafe">RefUnwindSafe</a> for <a class="enum" href="../actix_connect/enum.ConnectError.html" title="enum actix_connect::ConnectError">ConnectError</a></code><a href='#impl-RefUnwindSafe' class='anchor'></a></h3><div class='impl-items'></div><h3 id='impl-Send' class='impl'><code class='in-band'>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_connect/enum.ConnectError.html" title="enum actix_connect::ConnectError">ConnectError</a></code><a href='#impl-Send' class='anchor'></a></h3><div class='impl-items'></div><h3 id='impl-Sync' class='impl'><code class='in-band'>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_connect/enum.ConnectError.html" title="enum actix_connect::ConnectError">ConnectError</a></code><a href='#impl-Sync' class='anchor'></a></h3><div class='impl-items'></div><h3 id='impl-Unpin' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a> for <a class="enum" href="../actix_connect/enum.ConnectError.html" title="enum actix_connect::ConnectError">ConnectError</a></code><a href='#impl-Unpin' class='anchor'></a></h3><div class='impl-items'></div><h3 id='impl-UnwindSafe' class='impl'><code class='in-band'>impl !<a class="trait" href="https://doc.rust-lang.org/nightly/std/panic/trait.UnwindSafe.html" title="trait std::panic::UnwindSafe">UnwindSafe</a> for <a class="enum" href="../actix_connect/enum.ConnectError.html" title="enum actix_connect::ConnectError">ConnectError</a></code><a href='#impl-UnwindSafe' class='anchor'></a></h3><div class='impl-items'></div></div><h2 id='blanket-implementations' class='small-section-header'>Blanket Implementations<a href='#blanket-implementations' class='anchor'></a></h2><div id='blanket-implementations-list'><h3 id='impl-Any' class='impl'><code class='in-band'>impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html" title="trait core::any::Any">Any</a> for T <span class="where fmt-newline">where<br> T: 'static + ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></code><a href='#impl-Any' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/any.rs.html#108-112' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.type_id' class="method hidden"><code id='type_id.v'>fn <a href='https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id' class='fnname'>type_id</a>(&self) -> <a class="struct" href="https://doc.rust-lang.org/nightly/core/any/struct.TypeId.html" title="struct core::any::TypeId">TypeId</a></code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/any.rs.html#109-111' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Gets the <code>TypeId</code> of <code>self</code>. <a href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id">Read more</a></p>
|
||||
</div></div><h3 id='impl-Borrow%3CT%3E' class='impl'><code class='in-band'>impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a><T> for T <span class="where fmt-newline">where<br> T: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></code><a href='#impl-Borrow%3CT%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#213-217' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.borrow' class="method hidden"><code id='borrow.v'>fn <a href='https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow' class='fnname'>borrow</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>T</code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#214-216' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Immutably borrows from an owned value. <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow">Read more</a></p>
|
||||
</div></div><h3 id='impl-BorrowMut%3CT%3E' class='impl'><code class='in-band'>impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html" title="trait core::borrow::BorrowMut">BorrowMut</a><T> for T <span class="where fmt-newline">where<br> T: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></code><a href='#impl-BorrowMut%3CT%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#220-224' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.borrow_mut' class="method hidden"><code id='borrow_mut.v'>fn <a href='https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut' class='fnname'>borrow_mut</a>(&mut self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>T</code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#221-223' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Mutably borrows from an owned value. <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read more</a></p>
|
||||
</div></div><h3 id='impl-From%3CT%3E' class='impl'><code class='in-band'>impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><T> for T</code><a href='#impl-From%3CT%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#564-568' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.from-2' class="method hidden"><code id='from.v-2'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from' class='fnname'>from</a>(t: T) -> T</code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#565-567' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||||
</div></div><h3 id='impl-Into%3CU%3E' class='impl'><code class='in-band'>impl<T, U> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><U> for T <span class="where fmt-newline">where<br> U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><T>, </span></code><a href='#impl-Into%3CU%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#553-560' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.into' class="method hidden"><code id='into.v'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.Into.html#tymethod.into' class='fnname'>into</a>(self) -> U</code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#557-559' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||||
</div></div><h3 id='impl-ToString' class='impl'><code class='in-band'>impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/alloc/string/trait.ToString.html" title="trait alloc::string::ToString">ToString</a> for T <span class="where fmt-newline">where<br> T: <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.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></code><a href='#impl-ToString' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/alloc/string.rs.html#2160-2170' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.to_string' class="method hidden"><code id='to_string.v'>default fn <a href='https://doc.rust-lang.org/nightly/alloc/string/trait.ToString.html#tymethod.to_string' class='fnname'>to_string</a>(&self) -> <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a></code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/alloc/string.rs.html#2162-2169' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Converts the given value to a <code>String</code>. <a href="https://doc.rust-lang.org/nightly/alloc/string/trait.ToString.html#tymethod.to_string">Read more</a></p>
|
||||
</div></div><h3 id='impl-TryFrom%3CU%3E' class='impl'><code class='in-band'>impl<T, U> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><U> for T <span class="where fmt-newline">where<br> U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><T>, </span></code><a href='#impl-TryFrom%3CU%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#601-610' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Error' class="type"><code id='Error.t'>type <a href='https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error' class="type">Error</a> = <a class="enum" href="https://doc.rust-lang.org/nightly/core/convert/enum.Infallible.html" title="enum core::convert::Infallible">Infallible</a></code></h4><div class='docblock'><p>The type returned in the event of a conversion error.</p>
|
||||
</div><h4 id='method.try_from' class="method hidden"><code id='try_from.v'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#tymethod.try_from' class='fnname'>try_from</a>(value: U) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><T, <T as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><U>>::<a class="type" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>></code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#607-609' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||||
</div></div><h3 id='impl-TryInto%3CU%3E' class='impl'><code class='in-band'>impl<T, U> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html" title="trait core::convert::TryInto">TryInto</a><U> for T <span class="where fmt-newline">where<br> U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>, </span></code><a href='#impl-TryInto%3CU%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#587-596' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Error-1' class="type"><code id='Error.t-1'>type <a href='https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html#associatedtype.Error' class="type">Error</a> = <U as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>>::<a class="type" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a></code></h4><div class='docblock'><p>The type returned in the event of a conversion error.</p>
|
||||
</div><h4 id='method.try_into' class="method hidden"><code id='try_into.v'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html#tymethod.try_into' class='fnname'>try_into</a>(self) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><U, <U as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>>::<a class="type" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>></code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#593-595' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||||
</div></div></div></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../";window.currentCrate = "actix_connect";</script><script src="../aliases.js"></script><script src="../main.js"></script><script defer src="../search-index.js"></script></body></html>
|
||||
10
actix_connect/error/enum.ConnectError.html
Normal file
10
actix_connect/error/enum.ConnectError.html
Normal file
@@ -0,0 +1,10 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="refresh" content="0;URL=../../actix_connect/enum.ConnectError.html">
|
||||
</head>
|
||||
<body>
|
||||
<p>Redirecting to <a href="../../actix_connect/enum.ConnectError.html">../../actix_connect/enum.ConnectError.html</a>...</p>
|
||||
<script>location.replace("../../actix_connect/enum.ConnectError.html" + location.search + location.hash);</script>
|
||||
</body>
|
||||
</html>
|
||||
2
actix_connect/fn.default_connector.html
Normal file
2
actix_connect/fn.default_connector.html
Normal 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 `default_connector` fn in crate `actix_connect`."><meta name="keywords" content="rust, rustlang, rust-lang, default_connector"><title>actix_connect::default_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><noscript><link rel="stylesheet" href="../noscript.css"></noscript><link rel="shortcut icon" href="../favicon.ico"><style type="text/css">#crate-search{background-image:url("../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[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">☰</div><a href='../actix_connect/index.html'><div class='logo-container'><img src='../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class='location'><a href='index.html'>actix_connect</a></p><script>window.sidebarCurrent = {name: 'default_connector', ty: 'fn', 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"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><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='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../src/actix_connect/lib.rs.html#91-95' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='index.html'>actix_connect</a>::<wbr><a class="fn" href=''>default_connector</a></span></h1><pre class='rust fn'>pub fn default_connector<T: <a class="trait" href="../actix_connect/trait.Address.html" title="trait actix_connect::Address">Address</a>>(<br>) -> impl <a class="trait" href="../actix_service/trait.Service.html" title="trait actix_service::Service">Service</a><Request = <a class="struct" href="../actix_connect/struct.Connect.html" title="struct actix_connect::Connect">Connect</a><T>, Response = <a class="struct" href="../actix_connect/struct.Connection.html" title="struct actix_connect::Connection">Connection</a><T, <a class="struct" href="../tokio_tcp/stream/struct.TcpStream.html" title="struct tokio_tcp::stream::TcpStream">TcpStream</a>>, Error = <a class="enum" href="../actix_connect/enum.ConnectError.html" title="enum actix_connect::ConnectError">ConnectError</a>> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a></pre><div class='docblock'><p>Create connector service with default parameters</p>
|
||||
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../";window.currentCrate = "actix_connect";</script><script src="../aliases.js"></script><script src="../main.js"></script><script defer src="../search-index.js"></script></body></html>
|
||||
2
actix_connect/fn.default_connector_factory.html
Normal file
2
actix_connect/fn.default_connector_factory.html
Normal 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 `default_connector_factory` fn in crate `actix_connect`."><meta name="keywords" content="rust, rustlang, rust-lang, default_connector_factory"><title>actix_connect::default_connector_factory - 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><noscript><link rel="stylesheet" href="../noscript.css"></noscript><link rel="shortcut icon" href="../favicon.ico"><style type="text/css">#crate-search{background-image:url("../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[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">☰</div><a href='../actix_connect/index.html'><div class='logo-container'><img src='../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class='location'><a href='index.html'>actix_connect</a></p><script>window.sidebarCurrent = {name: 'default_connector_factory', ty: 'fn', 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"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><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='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../src/actix_connect/lib.rs.html#98-106' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='index.html'>actix_connect</a>::<wbr><a class="fn" href=''>default_connector_factory</a></span></h1><pre class='rust fn'>pub fn default_connector_factory<T: <a class="trait" href="../actix_connect/trait.Address.html" title="trait actix_connect::Address">Address</a>>(<br>) -> impl <a class="trait" href="../actix_service/trait.NewService.html" title="trait actix_service::NewService">NewService</a><Config = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, Request = <a class="struct" href="../actix_connect/struct.Connect.html" title="struct actix_connect::Connect">Connect</a><T>, Response = <a class="struct" href="../actix_connect/struct.Connection.html" title="struct actix_connect::Connection">Connection</a><T, <a class="struct" href="../tokio_tcp/stream/struct.TcpStream.html" title="struct tokio_tcp::stream::TcpStream">TcpStream</a>>, Error = <a class="enum" href="../actix_connect/enum.ConnectError.html" title="enum actix_connect::ConnectError">ConnectError</a>, InitError = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a></pre><div class='docblock'><p>Create connector service factory with default parameters</p>
|
||||
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../";window.currentCrate = "actix_connect";</script><script src="../aliases.js"></script><script src="../main.js"></script><script defer src="../search-index.js"></script></body></html>
|
||||
2
actix_connect/fn.new_connector.html
Normal file
2
actix_connect/fn.new_connector.html
Normal 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 `new_connector` fn in crate `actix_connect`."><meta name="keywords" content="rust, rustlang, rust-lang, new_connector"><title>actix_connect::new_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><noscript><link rel="stylesheet" href="../noscript.css"></noscript><link rel="shortcut icon" href="../favicon.ico"><style type="text/css">#crate-search{background-image:url("../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[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">☰</div><a href='../actix_connect/index.html'><div class='logo-container'><img src='../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class='location'><a href='index.html'>actix_connect</a></p><script>window.sidebarCurrent = {name: 'new_connector', ty: 'fn', 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"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><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='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../src/actix_connect/lib.rs.html#70-75' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='index.html'>actix_connect</a>::<wbr><a class="fn" href=''>new_connector</a></span></h1><pre class='rust fn'>pub fn new_connector<T: <a class="trait" href="../actix_connect/trait.Address.html" title="trait actix_connect::Address">Address</a>>(<br> resolver: <a class="struct" href="../actix_connect/struct.AsyncResolver.html" title="struct actix_connect::AsyncResolver">AsyncResolver</a><br>) -> impl <a class="trait" href="../actix_service/trait.Service.html" title="trait actix_service::Service">Service</a><Request = <a class="struct" href="../actix_connect/struct.Connect.html" title="struct actix_connect::Connect">Connect</a><T>, Response = <a class="struct" href="../actix_connect/struct.Connection.html" title="struct actix_connect::Connection">Connection</a><T, <a class="struct" href="../tokio_tcp/stream/struct.TcpStream.html" title="struct tokio_tcp::stream::TcpStream">TcpStream</a>>, Error = <a class="enum" href="../actix_connect/enum.ConnectError.html" title="enum actix_connect::ConnectError">ConnectError</a>> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a></pre><div class='docblock'><p>Create tcp connector service</p>
|
||||
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../";window.currentCrate = "actix_connect";</script><script src="../aliases.js"></script><script src="../main.js"></script><script defer src="../search-index.js"></script></body></html>
|
||||
2
actix_connect/fn.new_connector_factory.html
Normal file
2
actix_connect/fn.new_connector_factory.html
Normal 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 `new_connector_factory` fn in crate `actix_connect`."><meta name="keywords" content="rust, rustlang, rust-lang, new_connector_factory"><title>actix_connect::new_connector_factory - 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><noscript><link rel="stylesheet" href="../noscript.css"></noscript><link rel="shortcut icon" href="../favicon.ico"><style type="text/css">#crate-search{background-image:url("../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[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">☰</div><a href='../actix_connect/index.html'><div class='logo-container'><img src='../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class='location'><a href='index.html'>actix_connect</a></p><script>window.sidebarCurrent = {name: 'new_connector_factory', ty: 'fn', 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"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><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='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../src/actix_connect/lib.rs.html#78-88' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='index.html'>actix_connect</a>::<wbr><a class="fn" href=''>new_connector_factory</a></span></h1><pre class='rust fn'>pub fn new_connector_factory<T: <a class="trait" href="../actix_connect/trait.Address.html" title="trait actix_connect::Address">Address</a>>(<br> resolver: <a class="struct" href="../actix_connect/struct.AsyncResolver.html" title="struct actix_connect::AsyncResolver">AsyncResolver</a><br>) -> impl <a class="trait" href="../actix_service/trait.NewService.html" title="trait actix_service::NewService">NewService</a><Config = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, Request = <a class="struct" href="../actix_connect/struct.Connect.html" title="struct actix_connect::Connect">Connect</a><T>, Response = <a class="struct" href="../actix_connect/struct.Connection.html" title="struct actix_connect::Connection">Connection</a><T, <a class="struct" href="../tokio_tcp/stream/struct.TcpStream.html" title="struct tokio_tcp::stream::TcpStream">TcpStream</a>>, Error = <a class="enum" href="../actix_connect/enum.ConnectError.html" title="enum actix_connect::ConnectError">ConnectError</a>, InitError = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a></pre><div class='docblock'><p>Create tcp connector service</p>
|
||||
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../";window.currentCrate = "actix_connect";</script><script src="../aliases.js"></script><script src="../main.js"></script><script defer src="../search-index.js"></script></body></html>
|
||||
1
actix_connect/fn.read_system_conf.html
Normal file
1
actix_connect/fn.read_system_conf.html
Normal file
@@ -0,0 +1 @@
|
||||
<!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 `read_system_conf` fn in crate `actix_connect`."><meta name="keywords" content="rust, rustlang, rust-lang, read_system_conf"><title>actix_connect::read_system_conf - 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><noscript><link rel="stylesheet" href="../noscript.css"></noscript><link rel="shortcut icon" href="../favicon.ico"><style type="text/css">#crate-search{background-image:url("../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[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">☰</div><a href='../actix_connect/index.html'><div class='logo-container'><img src='../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class='location'><a href='index.html'>actix_connect</a></p><script>window.sidebarCurrent = {name: 'read_system_conf', ty: 'fn', 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"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><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='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../src/trust_dns_resolver/system_conf/unix.rs.html#29-31' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='index.html'>actix_connect</a>::<wbr><a class="fn" href=''>read_system_conf</a></span></h1><pre class='rust fn'>pub fn read_system_conf() -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a><a class="struct" href="../actix_connect/struct.ResolverConfig.html" title="struct actix_connect::ResolverConfig">ResolverConfig</a>, <a class="struct" href="../actix_connect/struct.ResolverOpts.html" title="struct actix_connect::ResolverOpts">ResolverOpts</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a>, <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></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../";window.currentCrate = "actix_connect";</script><script src="../aliases.js"></script><script src="../main.js"></script><script defer src="../search-index.js"></script></body></html>
|
||||
1
actix_connect/fn.start_default_resolver.html
Normal file
1
actix_connect/fn.start_default_resolver.html
Normal file
@@ -0,0 +1 @@
|
||||
<!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 `start_default_resolver` fn in crate `actix_connect`."><meta name="keywords" content="rust, rustlang, rust-lang, start_default_resolver"><title>actix_connect::start_default_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><noscript><link rel="stylesheet" href="../noscript.css"></noscript><link rel="shortcut icon" href="../favicon.ico"><style type="text/css">#crate-search{background-image:url("../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[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">☰</div><a href='../actix_connect/index.html'><div class='logo-container'><img src='../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class='location'><a href='index.html'>actix_connect</a></p><script>window.sidebarCurrent = {name: 'start_default_resolver', ty: 'fn', 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"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><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='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../src/actix_connect/lib.rs.html#65-67' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='index.html'>actix_connect</a>::<wbr><a class="fn" href=''>start_default_resolver</a></span></h1><pre class='rust fn'>pub fn start_default_resolver() -> <a class="struct" href="../actix_connect/struct.AsyncResolver.html" title="struct actix_connect::AsyncResolver">AsyncResolver</a></pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../";window.currentCrate = "actix_connect";</script><script src="../aliases.js"></script><script src="../main.js"></script><script defer src="../search-index.js"></script></body></html>
|
||||
1
actix_connect/fn.start_resolver.html
Normal file
1
actix_connect/fn.start_resolver.html
Normal file
@@ -0,0 +1 @@
|
||||
<!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 `start_resolver` fn in crate `actix_connect`."><meta name="keywords" content="rust, rustlang, rust-lang, start_resolver"><title>actix_connect::start_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><noscript><link rel="stylesheet" href="../noscript.css"></noscript><link rel="shortcut icon" href="../favicon.ico"><style type="text/css">#crate-search{background-image:url("../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[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">☰</div><a href='../actix_connect/index.html'><div class='logo-container'><img src='../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class='location'><a href='index.html'>actix_connect</a></p><script>window.sidebarCurrent = {name: 'start_resolver', ty: 'fn', 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"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><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='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../src/actix_connect/lib.rs.html#37-41' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='index.html'>actix_connect</a>::<wbr><a class="fn" href=''>start_resolver</a></span></h1><pre class='rust fn'>pub fn start_resolver(cfg: <a class="struct" href="../actix_connect/struct.ResolverConfig.html" title="struct actix_connect::ResolverConfig">ResolverConfig</a>, opts: <a class="struct" href="../actix_connect/struct.ResolverOpts.html" title="struct actix_connect::ResolverOpts">ResolverOpts</a>) -> <a class="struct" href="../actix_connect/struct.AsyncResolver.html" title="struct actix_connect::AsyncResolver">AsyncResolver</a></pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../";window.currentCrate = "actix_connect";</script><script src="../aliases.js"></script><script src="../main.js"></script><script defer src="../search-index.js"></script></body></html>
|
||||
27
actix_connect/index.html
Normal file
27
actix_connect/index.html
Normal file
@@ -0,0 +1,27 @@
|
||||
<!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 `actix_connect` crate."><meta name="keywords" content="rust, rustlang, rust-lang, actix_connect"><title>actix_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><noscript><link rel="stylesheet" href="../noscript.css"></noscript><link rel="shortcut icon" href="../favicon.ico"><style type="text/css">#crate-search{background-image:url("../down-arrow.svg");}</style></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">☰</div><a href='../actix_connect/index.html'><div class='logo-container'><img src='../rust-logo.png' alt='logo'></div></a><p class='location'>Crate actix_connect</p><div class="sidebar-elems"><a id='all-types' href='all.html'><p>See all actix_connect's items</p></a><div class="block items"><ul><li><a href="#modules">Modules</a></li><li><a href="#structs">Structs</a></li><li><a href="#enums">Enums</a></li><li><a href="#traits">Traits</a></li><li><a href="#functions">Functions</a></li></ul></div><p class='location'></p><script>window.sidebarCurrent = {name: 'actix_connect', ty: 'mod', relpath: '../'};</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"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><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='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../src/actix_connect/lib.rs.html#1-106' title='goto source code'>[src]</a></span><span class='in-band'>Crate <a class="mod" href=''>actix_connect</a></span></h1><div class='docblock'><p>Actix connect - tcp connector service</p>
|
||||
<h2 id="package-feature" class="section-header"><a href="#package-feature">Package feature</a></h2>
|
||||
<ul>
|
||||
<li><code>ssl</code> - enables ssl support via <code>openssl</code> crate</li>
|
||||
<li><code>rust-tls</code> - enables ssl support via <code>rustls</code> crate</li>
|
||||
</ul>
|
||||
</div><h2 id='modules' class='section-header'><a href="#modules">Modules</a></h2>
|
||||
<table><tr class='module-item'><td><a class="mod" href="ssl/index.html" title='actix_connect::ssl mod'>ssl</a></td><td class='docblock-short'><p>SSL Services</p>
|
||||
</td></tr></table><h2 id='structs' class='section-header'><a href="#structs">Structs</a></h2>
|
||||
<table><tr class='module-item'><td><a class="struct" href="struct.AsyncResolver.html" title='actix_connect::AsyncResolver struct'>AsyncResolver</a></td><td class='docblock-short'><p>A handle for resolving DNS records.</p>
|
||||
</td></tr><tr class='module-item'><td><a class="struct" href="struct.Connect.html" title='actix_connect::Connect struct'>Connect</a></td><td class='docblock-short'><p>Connect request</p>
|
||||
</td></tr><tr class='module-item'><td><a class="struct" href="struct.ConnectService.html" title='actix_connect::ConnectService struct'>ConnectService</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="struct" href="struct.ConnectServiceFactory.html" title='actix_connect::ConnectServiceFactory struct'>ConnectServiceFactory</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="struct" href="struct.Connection.html" title='actix_connect::Connection struct'>Connection</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="struct" href="struct.ResolveError.html" title='actix_connect::ResolveError struct'>ResolveError</a></td><td class='docblock-short'><p>The error type for errors that get returned in the crate</p>
|
||||
</td></tr><tr class='module-item'><td><a class="struct" href="struct.Resolver.html" title='actix_connect::Resolver struct'>Resolver</a></td><td class='docblock-short'><p>DNS Resolver Service</p>
|
||||
</td></tr><tr class='module-item'><td><a class="struct" href="struct.ResolverConfig.html" title='actix_connect::ResolverConfig struct'>ResolverConfig</a></td><td class='docblock-short'><p>Configuration for the upstream nameservers to use for resolution</p>
|
||||
</td></tr><tr class='module-item'><td><a class="struct" href="struct.ResolverFactory.html" title='actix_connect::ResolverFactory struct'>ResolverFactory</a></td><td class='docblock-short'><p>DNS Resolver Service factory</p>
|
||||
</td></tr><tr class='module-item'><td><a class="struct" href="struct.ResolverOpts.html" title='actix_connect::ResolverOpts struct'>ResolverOpts</a></td><td class='docblock-short'><p>Configuration for the Resolver</p>
|
||||
</td></tr><tr class='module-item'><td><a class="struct" href="struct.TcpConnectService.html" title='actix_connect::TcpConnectService struct'>TcpConnectService</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="struct" href="struct.TcpConnector.html" title='actix_connect::TcpConnector struct'>TcpConnector</a></td><td class='docblock-short'><p>Tcp connector service</p>
|
||||
</td></tr><tr class='module-item'><td><a class="struct" href="struct.TcpConnectorFactory.html" title='actix_connect::TcpConnectorFactory struct'>TcpConnectorFactory</a></td><td class='docblock-short'><p>Tcp connector service factory</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.ConnectError.html" title='actix_connect::ConnectError enum'>ConnectError</a></td><td class='docblock-short'></td></tr></table><h2 id='traits' class='section-header'><a href="#traits">Traits</a></h2>
|
||||
<table><tr class='module-item'><td><a class="trait" href="trait.Address.html" title='actix_connect::Address trait'>Address</a></td><td class='docblock-short'><p>Connect request</p>
|
||||
</td></tr></table><h2 id='functions' class='section-header'><a href="#functions">Functions</a></h2>
|
||||
<table><tr class='module-item'><td><a class="fn" href="fn.default_connector.html" title='actix_connect::default_connector fn'>default_connector</a></td><td class='docblock-short'><p>Create connector service with default parameters</p>
|
||||
</td></tr><tr class='module-item'><td><a class="fn" href="fn.default_connector_factory.html" title='actix_connect::default_connector_factory fn'>default_connector_factory</a></td><td class='docblock-short'><p>Create connector service factory with default parameters</p>
|
||||
</td></tr><tr class='module-item'><td><a class="fn" href="fn.new_connector.html" title='actix_connect::new_connector fn'>new_connector</a></td><td class='docblock-short'><p>Create tcp connector service</p>
|
||||
</td></tr><tr class='module-item'><td><a class="fn" href="fn.new_connector_factory.html" title='actix_connect::new_connector_factory fn'>new_connector_factory</a></td><td class='docblock-short'><p>Create tcp connector service</p>
|
||||
</td></tr><tr class='module-item'><td><a class="fn" href="fn.read_system_conf.html" title='actix_connect::read_system_conf fn'>read_system_conf</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="fn" href="fn.start_default_resolver.html" title='actix_connect::start_default_resolver fn'>start_default_resolver</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="fn" href="fn.start_resolver.html" title='actix_connect::start_resolver fn'>start_resolver</a></td><td class='docblock-short'></td></tr></table></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../";window.currentCrate = "actix_connect";</script><script src="../aliases.js"></script><script src="../main.js"></script><script defer src="../search-index.js"></script></body></html>
|
||||
10
actix_connect/resolver/struct.Resolver.html
Normal file
10
actix_connect/resolver/struct.Resolver.html
Normal file
@@ -0,0 +1,10 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="refresh" content="0;URL=../../actix_connect/struct.Resolver.html">
|
||||
</head>
|
||||
<body>
|
||||
<p>Redirecting to <a href="../../actix_connect/struct.Resolver.html">../../actix_connect/struct.Resolver.html</a>...</p>
|
||||
<script>location.replace("../../actix_connect/struct.Resolver.html" + location.search + location.hash);</script>
|
||||
</body>
|
||||
</html>
|
||||
10
actix_connect/resolver/struct.ResolverFactory.html
Normal file
10
actix_connect/resolver/struct.ResolverFactory.html
Normal file
@@ -0,0 +1,10 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="refresh" content="0;URL=../../actix_connect/struct.ResolverFactory.html">
|
||||
</head>
|
||||
<body>
|
||||
<p>Redirecting to <a href="../../actix_connect/struct.ResolverFactory.html">../../actix_connect/struct.ResolverFactory.html</a>...</p>
|
||||
<script>location.replace("../../actix_connect/struct.ResolverFactory.html" + location.search + location.hash);</script>
|
||||
</body>
|
||||
</html>
|
||||
10
actix_connect/service/struct.ConnectService.html
Normal file
10
actix_connect/service/struct.ConnectService.html
Normal file
@@ -0,0 +1,10 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="refresh" content="0;URL=../../actix_connect/struct.ConnectService.html">
|
||||
</head>
|
||||
<body>
|
||||
<p>Redirecting to <a href="../../actix_connect/struct.ConnectService.html">../../actix_connect/struct.ConnectService.html</a>...</p>
|
||||
<script>location.replace("../../actix_connect/struct.ConnectService.html" + location.search + location.hash);</script>
|
||||
</body>
|
||||
</html>
|
||||
10
actix_connect/service/struct.ConnectServiceFactory.html
Normal file
10
actix_connect/service/struct.ConnectServiceFactory.html
Normal file
@@ -0,0 +1,10 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="refresh" content="0;URL=../../actix_connect/struct.ConnectServiceFactory.html">
|
||||
</head>
|
||||
<body>
|
||||
<p>Redirecting to <a href="../../actix_connect/struct.ConnectServiceFactory.html">../../actix_connect/struct.ConnectServiceFactory.html</a>...</p>
|
||||
<script>location.replace("../../actix_connect/struct.ConnectServiceFactory.html" + location.search + location.hash);</script>
|
||||
</body>
|
||||
</html>
|
||||
10
actix_connect/service/struct.TcpConnectService.html
Normal file
10
actix_connect/service/struct.TcpConnectService.html
Normal file
@@ -0,0 +1,10 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="refresh" content="0;URL=../../actix_connect/struct.TcpConnectService.html">
|
||||
</head>
|
||||
<body>
|
||||
<p>Redirecting to <a href="../../actix_connect/struct.TcpConnectService.html">../../actix_connect/struct.TcpConnectService.html</a>...</p>
|
||||
<script>location.replace("../../actix_connect/struct.TcpConnectService.html" + location.search + location.hash);</script>
|
||||
</body>
|
||||
</html>
|
||||
1
actix_connect/sidebar-items.js
Normal file
1
actix_connect/sidebar-items.js
Normal file
@@ -0,0 +1 @@
|
||||
initSidebarItems({"enum":[["ConnectError",""]],"fn":[["default_connector","Create connector service with default parameters"],["default_connector_factory","Create connector service factory with default parameters"],["new_connector","Create tcp connector service"],["new_connector_factory","Create tcp connector service"],["read_system_conf",""],["start_default_resolver",""],["start_resolver",""]],"mod":[["ssl","SSL Services"]],"struct":[["AsyncResolver","A handle for resolving DNS records."],["Connect","Connect request"],["ConnectService",""],["ConnectServiceFactory",""],["Connection",""],["ResolveError","The error type for errors that get returned in the crate"],["Resolver","DNS Resolver Service"],["ResolverConfig","Configuration for the upstream nameservers to use for resolution"],["ResolverFactory","DNS Resolver Service factory"],["ResolverOpts","Configuration for the Resolver"],["TcpConnectService",""],["TcpConnector","Tcp connector service"],["TcpConnectorFactory","Tcp connector service factory"]],"trait":[["Address","Connect request"]]});
|
||||
2
actix_connect/ssl/index.html
Normal file
2
actix_connect/ssl/index.html
Normal 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 `ssl` mod in crate `actix_connect`."><meta name="keywords" content="rust, rustlang, rust-lang, ssl"><title>actix_connect::ssl - 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><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="shortcut icon" href="../../favicon.ico"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></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">☰</div><a href='../../actix_connect/index.html'><div class='logo-container'><img src='../../rust-logo.png' alt='logo'></div></a><p class='location'>Module ssl</p><div class="sidebar-elems"><p class='location'><a href='../index.html'>actix_connect</a></p><script>window.sidebarCurrent = {name: 'ssl', 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"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><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='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../../src/actix_connect/ssl/mod.rs.html#1-12' title='goto source code'>[src]</a></span><span class='in-band'>Module <a href='../index.html'>actix_connect</a>::<wbr><a class="mod" href=''>ssl</a></span></h1><div class='docblock'><p>SSL Services</p>
|
||||
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../";window.currentCrate = "actix_connect";</script><script src="../../aliases.js"></script><script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
|
||||
1
actix_connect/ssl/sidebar-items.js
Normal file
1
actix_connect/ssl/sidebar-items.js
Normal file
@@ -0,0 +1 @@
|
||||
initSidebarItems({});
|
||||
110
actix_connect/struct.AsyncResolver.html
Normal file
110
actix_connect/struct.AsyncResolver.html
Normal file
@@ -0,0 +1,110 @@
|
||||
<!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 `AsyncResolver` struct in crate `actix_connect`."><meta name="keywords" content="rust, rustlang, rust-lang, AsyncResolver"><title>actix_connect::AsyncResolver - 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><noscript><link rel="stylesheet" href="../noscript.css"></noscript><link rel="shortcut icon" href="../favicon.ico"><style type="text/css">#crate-search{background-image:url("../down-arrow.svg");}</style></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">☰</div><a href='../actix_connect/index.html'><div class='logo-container'><img src='../rust-logo.png' alt='logo'></div></a><p class='location'>Struct AsyncResolver</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#methods">Methods</a><div class="sidebar-links"><a href="#method.from_system_conf">from_system_conf</a><a href="#method.ipv4_lookup">ipv4_lookup</a><a href="#method.ipv6_lookup">ipv6_lookup</a><a href="#method.lookup">lookup</a><a href="#method.lookup_ip">lookup_ip</a><a href="#method.lookup_service">lookup_service</a><a href="#method.lookup_srv">lookup_srv</a><a href="#method.mx_lookup">mx_lookup</a><a href="#method.new">new</a><a href="#method.reverse_lookup">reverse_lookup</a><a href="#method.srv_lookup">srv_lookup</a><a href="#method.txt_lookup">txt_lookup</a></div><a class="sidebar-title" href="#implementations">Trait Implementations</a><div class="sidebar-links"><a href="#impl-Clone">Clone</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-RefUnwindSafe">!RefUnwindSafe</a><a href="#impl-Send">Send</a><a href="#impl-Sync">Sync</a><a href="#impl-Unpin">Unpin</a><a href="#impl-UnwindSafe">!UnwindSafe</a></div><a class="sidebar-title" href="#blanket-implementations">Blanket Implementations</a><div class="sidebar-links"><a href="#impl-Any">Any</a><a href="#impl-Borrow%3CT%3E">Borrow<T></a><a href="#impl-BorrowMut%3CT%3E">BorrowMut<T></a><a href="#impl-From%3CT%3E">From<T></a><a href="#impl-Into%3CU%3E">Into<U></a><a href="#impl-ToOwned">ToOwned</a><a href="#impl-TryFrom%3CU%3E">TryFrom<U></a><a href="#impl-TryInto%3CU%3E">TryInto<U></a></div></div><p class='location'><a href='index.html'>actix_connect</a></p><script>window.sidebarCurrent = {name: 'AsyncResolver', 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"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><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='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../src/trust_dns_resolver/async_resolver/mod.rs.html#59-61' title='goto source code'>[src]</a></span><span class='in-band'>Struct <a href='index.html'>actix_connect</a>::<wbr><a class="struct" href=''>AsyncResolver</a></span></h1><div class="docblock type-decl hidden-by-usual-hider"><pre class='rust struct'>pub struct AsyncResolver { /* fields omitted */ }</pre></div><div class='docblock'><p>A handle for resolving DNS records.</p>
|
||||
<p>Creating a <code>AsyncResolver</code> returns a new handle and a future that should
|
||||
be spawned on an executor to drive the background work. The lookup methods
|
||||
on <code>AsyncResolver</code> request lookups from the background task.</p>
|
||||
<p>The futures returned by a <code>AsyncResolver</code> and the corresponding background
|
||||
task need not be spawned on the same executor, or be in the same thread.
|
||||
Additionally, one background task may have any number of handles; calling
|
||||
<code>clone()</code> on a handle will create a new handle linked to the same
|
||||
background task.</p>
|
||||
<p><em>NOTE</em> If lookup futures returned by a <code>AsyncResolver</code> and the background
|
||||
future are spawned on two separate <code>CurrentThread</code> executors, one thread
|
||||
cannot run both executors simultaneously, so the <code>run</code> or <code>block_on</code>
|
||||
functions will cause the thread to deadlock. If both the background work
|
||||
and the lookup futures are intended to be run on the same thread, they
|
||||
should be spawned on the same executor.</p>
|
||||
<p>The background task manages the name server pool and other state used
|
||||
to drive lookups. When this future is spawned on an executor, it will
|
||||
first construct and configure the necessary client state, before checking
|
||||
for any incoming lookup requests, handling them, and and yielding. It will
|
||||
continue to do so as long as there are still any [<code>AsyncResolver</code>] handle
|
||||
linked to it. When all of its [<code>AsyncResolver</code>]s have been dropped, the
|
||||
background future will finish.</p>
|
||||
</div><h2 id='methods' class='small-section-header'>Methods<a href='#methods' class='anchor'></a></h2><h3 id='impl' class='impl'><code class='in-band'>impl <a class="struct" href="../actix_connect/struct.AsyncResolver.html" title="struct actix_connect::AsyncResolver">AsyncResolver</a></code><a href='#impl' class='anchor'></a><a class='srclink' href='../src/trust_dns_resolver/async_resolver/mod.rs.html#143-320' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.new' class="method"><code id='new.v'>pub fn <a href='#method.new' class='fnname'>new</a>(<br> config: <a class="struct" href="../actix_connect/struct.ResolverConfig.html" title="struct actix_connect::ResolverConfig">ResolverConfig</a>, <br> options: <a class="struct" href="../actix_connect/struct.ResolverOpts.html" title="struct actix_connect::ResolverOpts">ResolverOpts</a><br>) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a><a class="struct" href="../actix_connect/struct.AsyncResolver.html" title="struct actix_connect::AsyncResolver">AsyncResolver</a>, impl <a class="trait" href="../futures/future/trait.Future.html" title="trait futures::future::Future">Future</a><Item = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, Error = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a></code><a class='srclink' href='../src/trust_dns_resolver/async_resolver/mod.rs.html#157-165' title='goto source code'>[src]</a></h4><div class='docblock'><p>Construct a new <code>AsyncResolver</code> with the provided configuration.</p>
|
||||
<h1 id="arguments" class="section-header"><a href="#arguments">Arguments</a></h1>
|
||||
<ul>
|
||||
<li><code>config</code> - configuration, name_servers, etc. for the Resolver</li>
|
||||
<li><code>options</code> - basic lookup options for the resolver</li>
|
||||
</ul>
|
||||
<h1 id="returns" class="section-header"><a href="#returns">Returns</a></h1>
|
||||
<p>A tuple containing the new <code>AsyncResolver</code> and a future that drives the
|
||||
background task that runs resolutions for the <code>AsyncResolver</code>. See the
|
||||
documentation for <code>AsyncResolver</code> for more information on how to use
|
||||
the background future.</p>
|
||||
</div><h4 id='method.from_system_conf' class="method"><code id='from_system_conf.v'>pub fn <a href='#method.from_system_conf' class='fnname'>from_system_conf</a>(<br>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a><a class="struct" href="../actix_connect/struct.AsyncResolver.html" title="struct actix_connect::AsyncResolver">AsyncResolver</a>, impl <a class="trait" href="../futures/future/trait.Future.html" title="trait futures::future::Future">Future</a><Item = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, Error = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a>, <a class="struct" href="../actix_connect/struct.ResolveError.html" title="struct actix_connect::ResolveError">ResolveError</a>></code><a class='srclink' href='../src/trust_dns_resolver/async_resolver/mod.rs.html#196-199' title='goto source code'>[src]</a></h4><div class='docblock'><p>Constructs a new Resolver with the system configuration.</p>
|
||||
<p>This will use <code>/etc/resolv.conf</code> on Unix OSes and the registry on Windows.</p>
|
||||
</div><h4 id='method.lookup' class="method"><code id='lookup.v'>pub fn <a href='#method.lookup' class='fnname'>lookup</a><N>(<br> &self, <br> name: N, <br> record_type: <a class="enum" href="../trust_dns_proto/rr/record_type/enum.RecordType.html" title="enum trust_dns_proto::rr::record_type::RecordType">RecordType</a><br>) -> <a class="struct" href="../trust_dns_resolver/async_resolver/struct.Background.html" title="struct trust_dns_resolver::async_resolver::Background">Background</a><LookupFuture<LookupEither<ConnectionHandle, StandardConnection>>, LookupFuture<LookupEither<ConnectionHandle, StandardConnection>>> <span class="where fmt-newline">where<br> N: <a class="trait" href="../trust_dns_proto/rr/domain/name/trait.IntoName.html" title="trait trust_dns_proto::rr::domain::name::IntoName">IntoName</a>, </span></code><a class='srclink' href='../src/trust_dns_resolver/async_resolver/mod.rs.html#213-220' title='goto source code'>[src]</a></h4><div class='docblock'><p>Generic lookup for any RecordType</p>
|
||||
<p><em>WARNING</em> this interface may change in the future, see if one of the specializations would be better.</p>
|
||||
<h1 id="arguments-1" class="section-header"><a href="#arguments-1">Arguments</a></h1>
|
||||
<ul>
|
||||
<li><code>name</code> - name of the record to lookup, if name is not a valid domain name, an error will be returned</li>
|
||||
<li><code>record_type</code> - type of record to lookup, all RecordData responses will be filtered to this type</li>
|
||||
</ul>
|
||||
<h1 id="returns-1" class="section-header"><a href="#returns-1">Returns</a></h1></div><h4 id='method.lookup_ip' class="method"><code id='lookup_ip.v'>pub fn <a href='#method.lookup_ip' class='fnname'>lookup_ip</a><N>(<br> &self, <br> host: N<br>) -> <a class="struct" href="../trust_dns_resolver/async_resolver/struct.Background.html" title="struct trust_dns_resolver::async_resolver::Background">Background</a><<a class="struct" href="../trust_dns_resolver/lookup_ip/struct.LookupIpFuture.html" title="struct trust_dns_resolver::lookup_ip::LookupIpFuture">LookupIpFuture</a><LookupEither<ConnectionHandle, StandardConnection>>, <a class="struct" href="../trust_dns_resolver/lookup_ip/struct.LookupIpFuture.html" title="struct trust_dns_resolver::lookup_ip::LookupIpFuture">LookupIpFuture</a><LookupEither<ConnectionHandle, StandardConnection>>> <span class="where fmt-newline">where<br> N: <a class="trait" href="../trust_dns_proto/rr/domain/name/trait.IntoName.html" title="trait trust_dns_proto::rr::domain::name::IntoName">IntoName</a> + <a class="trait" href="../trust_dns_proto/rr/domain/try_parse_ip/trait.TryParseIp.html" title="trait trust_dns_proto::rr::domain::try_parse_ip::TryParseIp">TryParseIp</a>, </span></code><a class='srclink' href='../src/trust_dns_resolver/async_resolver/mod.rs.html#258-276' title='goto source code'>[src]</a></h4><div class='docblock'><p>Performs a dual-stack DNS lookup for the IP for the given hostname.</p>
|
||||
<p>See the configuration and options parameters for controlling the way in which A(Ipv4) and AAAA(Ipv6) lookups will be performed. For the least expensive query a fully-qualified-domain-name, FQDN, which ends in a final <code>.</code>, e.g. <code>www.example.com.</code>, will only issue one query. Anything else will always incur the cost of querying the <code>ResolverConfig::domain</code> and <code>ResolverConfig::search</code>.</p>
|
||||
<h1 id="arguments-2" class="section-header"><a href="#arguments-2">Arguments</a></h1>
|
||||
<ul>
|
||||
<li><code>host</code> - string hostname, if this is an invalid hostname, an error will be returned.</li>
|
||||
</ul>
|
||||
</div><h4 id='method.lookup_service' class="method"><code id='lookup_service.v'>pub fn <a href='#method.lookup_service' class='fnname'>lookup_service</a>(<br> &self, <br> service: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>, <br> protocol: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>, <br> name: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a><br>) -> <a class="struct" href="../trust_dns_resolver/async_resolver/struct.Background.html" title="struct trust_dns_resolver::async_resolver::Background">Background</a><LookupFuture<LookupEither<ConnectionHandle, StandardConnection>>, <a class="struct" href="../trust_dns_resolver/lookup/struct.SrvLookupFuture.html" title="struct trust_dns_resolver::lookup::SrvLookupFuture">SrvLookupFuture</a>></code><a class='srclink' href='../src/trust_dns_resolver/async_resolver/mod.rs.html#288-296' title='goto source code'>[src]</a></h4><div class='stability'><div class='stab deprecated'>Deprecated: <p>use lookup_srv instead, this interface is none ideal</p>
|
||||
</div></div><div class='docblock'><p>Performs a DNS lookup for an SRV record for the specified service type and protocol at the given name.</p>
|
||||
<p>This is a convenience method over <code>lookup_srv</code>, it combines the service, protocol and name into a single name: <code>_service._protocol.name</code>.</p>
|
||||
<h1 id="arguments-3" class="section-header"><a href="#arguments-3">Arguments</a></h1>
|
||||
<ul>
|
||||
<li><code>service</code> - service to lookup, e.g. ldap or http</li>
|
||||
<li><code>protocol</code> - wire protocol, e.g. udp or tcp</li>
|
||||
<li><code>name</code> - zone or other name at which the service is located.</li>
|
||||
</ul>
|
||||
</div><h4 id='method.lookup_srv' class="method"><code id='lookup_srv.v'>pub fn <a href='#method.lookup_srv' class='fnname'>lookup_srv</a><N>(<br> &self, <br> name: N<br>) -> <a class="struct" href="../trust_dns_resolver/async_resolver/struct.Background.html" title="struct trust_dns_resolver::async_resolver::Background">Background</a><LookupFuture<LookupEither<ConnectionHandle, StandardConnection>>, <a class="struct" href="../trust_dns_resolver/lookup/struct.SrvLookupFuture.html" title="struct trust_dns_resolver::lookup::SrvLookupFuture">SrvLookupFuture</a>> <span class="where fmt-newline">where<br> N: <a class="trait" href="../trust_dns_proto/rr/domain/name/trait.IntoName.html" title="trait trust_dns_proto::rr::domain::name::IntoName">IntoName</a>, </span></code><a class='srclink' href='../src/trust_dns_resolver/async_resolver/mod.rs.html#299-306' title='goto source code'>[src]</a></h4><div class='docblock'><p>Lookup an SRV record.</p>
|
||||
</div><h4 id='method.reverse_lookup' class="method"><code id='reverse_lookup.v'>pub fn <a href='#method.reverse_lookup' class='fnname'>reverse_lookup</a>(<br> &self, <br> query: <a class="enum" href="https://doc.rust-lang.org/nightly/std/net/ip/enum.IpAddr.html" title="enum std::net::ip::IpAddr">IpAddr</a><br>) -> <a class="struct" href="../trust_dns_resolver/async_resolver/struct.Background.html" title="struct trust_dns_resolver::async_resolver::Background">Background</a><LookupFuture<LookupEither<ConnectionHandle, StandardConnection>>, <a class="struct" href="../trust_dns_resolver/lookup/struct.ReverseLookupFuture.html" title="struct trust_dns_resolver::lookup::ReverseLookupFuture">ReverseLookupFuture</a>></code><a class='srclink' href='../src/trust_dns_resolver/async_resolver/mod.rs.html#136-139' title='goto source code'>[src]</a></h4><div class='docblock'><p>Performs a lookup for the associated type.</p>
|
||||
<h1 id="arguments-4" class="section-header"><a href="#arguments-4">Arguments</a></h1>
|
||||
<ul>
|
||||
<li><code>query</code> - a type which can be converted to <code>Name</code> via <code>From</code>.</li>
|
||||
</ul>
|
||||
</div><h4 id='method.ipv4_lookup' class="method"><code id='ipv4_lookup.v'>pub fn <a href='#method.ipv4_lookup' class='fnname'>ipv4_lookup</a><N>(<br> &self, <br> query: N<br>) -> <a class="struct" href="../trust_dns_resolver/async_resolver/struct.Background.html" title="struct trust_dns_resolver::async_resolver::Background">Background</a><LookupFuture<LookupEither<ConnectionHandle, StandardConnection>>, <a class="struct" href="../trust_dns_resolver/lookup/struct.Ipv4LookupFuture.html" title="struct trust_dns_resolver::lookup::Ipv4LookupFuture">Ipv4LookupFuture</a>> <span class="where fmt-newline">where<br> N: <a class="trait" href="../trust_dns_proto/rr/domain/name/trait.IntoName.html" title="trait trust_dns_proto::rr::domain::name::IntoName">IntoName</a>, </span></code><a class='srclink' href='../src/trust_dns_resolver/async_resolver/mod.rs.html#119-128' title='goto source code'>[src]</a></h4><div class='docblock'><p>Performs a lookup for the associated type.</p>
|
||||
<p><em>hint</em> queries that end with a '.' are fully qualified names and are cheaper lookups</p>
|
||||
<h1 id="arguments-5" class="section-header"><a href="#arguments-5">Arguments</a></h1>
|
||||
<ul>
|
||||
<li><code>query</code> - a string which parses to a domain name, failure to parse will return an error</li>
|
||||
</ul>
|
||||
</div><h4 id='method.ipv6_lookup' class="method"><code id='ipv6_lookup.v'>pub fn <a href='#method.ipv6_lookup' class='fnname'>ipv6_lookup</a><N>(<br> &self, <br> query: N<br>) -> <a class="struct" href="../trust_dns_resolver/async_resolver/struct.Background.html" title="struct trust_dns_resolver::async_resolver::Background">Background</a><LookupFuture<LookupEither<ConnectionHandle, StandardConnection>>, <a class="struct" href="../trust_dns_resolver/lookup/struct.Ipv6LookupFuture.html" title="struct trust_dns_resolver::lookup::Ipv6LookupFuture">Ipv6LookupFuture</a>> <span class="where fmt-newline">where<br> N: <a class="trait" href="../trust_dns_proto/rr/domain/name/trait.IntoName.html" title="trait trust_dns_proto::rr::domain::name::IntoName">IntoName</a>, </span></code><a class='srclink' href='../src/trust_dns_resolver/async_resolver/mod.rs.html#119-128' title='goto source code'>[src]</a></h4><div class='docblock'><p>Performs a lookup for the associated type.</p>
|
||||
<p><em>hint</em> queries that end with a '.' are fully qualified names and are cheaper lookups</p>
|
||||
<h1 id="arguments-6" class="section-header"><a href="#arguments-6">Arguments</a></h1>
|
||||
<ul>
|
||||
<li><code>query</code> - a string which parses to a domain name, failure to parse will return an error</li>
|
||||
</ul>
|
||||
</div><h4 id='method.mx_lookup' class="method"><code id='mx_lookup.v'>pub fn <a href='#method.mx_lookup' class='fnname'>mx_lookup</a><N>(<br> &self, <br> query: N<br>) -> <a class="struct" href="../trust_dns_resolver/async_resolver/struct.Background.html" title="struct trust_dns_resolver::async_resolver::Background">Background</a><LookupFuture<LookupEither<ConnectionHandle, StandardConnection>>, <a class="struct" href="../trust_dns_resolver/lookup/struct.MxLookupFuture.html" title="struct trust_dns_resolver::lookup::MxLookupFuture">MxLookupFuture</a>> <span class="where fmt-newline">where<br> N: <a class="trait" href="../trust_dns_proto/rr/domain/name/trait.IntoName.html" title="trait trust_dns_proto::rr::domain::name::IntoName">IntoName</a>, </span></code><a class='srclink' href='../src/trust_dns_resolver/async_resolver/mod.rs.html#119-128' title='goto source code'>[src]</a></h4><div class='docblock'><p>Performs a lookup for the associated type.</p>
|
||||
<p><em>hint</em> queries that end with a '.' are fully qualified names and are cheaper lookups</p>
|
||||
<h1 id="arguments-7" class="section-header"><a href="#arguments-7">Arguments</a></h1>
|
||||
<ul>
|
||||
<li><code>query</code> - a string which parses to a domain name, failure to parse will return an error</li>
|
||||
</ul>
|
||||
</div><h4 id='method.srv_lookup' class="method"><code id='srv_lookup.v'>pub fn <a href='#method.srv_lookup' class='fnname'>srv_lookup</a><N>(<br> &self, <br> query: N<br>) -> <a class="struct" href="../trust_dns_resolver/async_resolver/struct.Background.html" title="struct trust_dns_resolver::async_resolver::Background">Background</a><LookupFuture<LookupEither<ConnectionHandle, StandardConnection>>, <a class="struct" href="../trust_dns_resolver/lookup/struct.SrvLookupFuture.html" title="struct trust_dns_resolver::lookup::SrvLookupFuture">SrvLookupFuture</a>> <span class="where fmt-newline">where<br> N: <a class="trait" href="../trust_dns_proto/rr/domain/name/trait.IntoName.html" title="trait trust_dns_proto::rr::domain::name::IntoName">IntoName</a>, </span></code><a class='srclink' href='../src/trust_dns_resolver/async_resolver/mod.rs.html#119-128' title='goto source code'>[src]</a></h4><div class='docblock'><p>Performs a lookup for the associated type.</p>
|
||||
<p><em>hint</em> queries that end with a '.' are fully qualified names and are cheaper lookups</p>
|
||||
<h1 id="arguments-8" class="section-header"><a href="#arguments-8">Arguments</a></h1>
|
||||
<ul>
|
||||
<li><code>query</code> - a string which parses to a domain name, failure to parse will return an error</li>
|
||||
</ul>
|
||||
</div><h4 id='method.txt_lookup' class="method"><code id='txt_lookup.v'>pub fn <a href='#method.txt_lookup' class='fnname'>txt_lookup</a><N>(<br> &self, <br> query: N<br>) -> <a class="struct" href="../trust_dns_resolver/async_resolver/struct.Background.html" title="struct trust_dns_resolver::async_resolver::Background">Background</a><LookupFuture<LookupEither<ConnectionHandle, StandardConnection>>, <a class="struct" href="../trust_dns_resolver/lookup/struct.TxtLookupFuture.html" title="struct trust_dns_resolver::lookup::TxtLookupFuture">TxtLookupFuture</a>> <span class="where fmt-newline">where<br> N: <a class="trait" href="../trust_dns_proto/rr/domain/name/trait.IntoName.html" title="trait trust_dns_proto::rr::domain::name::IntoName">IntoName</a>, </span></code><a class='srclink' href='../src/trust_dns_resolver/async_resolver/mod.rs.html#119-128' title='goto source code'>[src]</a></h4><div class='docblock'><p>Performs a lookup for the associated type.</p>
|
||||
<p><em>hint</em> queries that end with a '.' are fully qualified names and are cheaper lookups</p>
|
||||
<h1 id="arguments-9" class="section-header"><a href="#arguments-9">Arguments</a></h1>
|
||||
<ul>
|
||||
<li><code>query</code> - a string which parses to a domain name, failure to parse will return an error</li>
|
||||
</ul>
|
||||
</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-Clone' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> for <a class="struct" href="../actix_connect/struct.AsyncResolver.html" title="struct actix_connect::AsyncResolver">AsyncResolver</a></code><a href='#impl-Clone' class='anchor'></a><a class='srclink' href='../src/trust_dns_resolver/async_resolver/mod.rs.html#58' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.clone' class="method hidden"><code id='clone.v'>fn <a href='https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#tymethod.clone' class='fnname'>clone</a>(&self) -> <a class="struct" href="../actix_connect/struct.AsyncResolver.html" title="struct actix_connect::AsyncResolver">AsyncResolver</a></code><a class='srclink' href='../src/trust_dns_resolver/async_resolver/mod.rs.html#58' title='goto source code'>[src]</a></h4><div class='docblock hidden'><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 hidden"><code id='clone_from.v'>fn <a href='https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#method.clone_from' class='fnname'>clone_from</a>(&mut self, source: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>Self)</code><span class='since' title='Stable since Rust version 1.0.0'>1.0.0</span><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/clone.rs.html#131-133' title='goto source code'>[src]</a></h4><div class='docblock hidden'><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-Debug' class='impl'><code class='in-band'>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_connect/struct.AsyncResolver.html" title="struct actix_connect::AsyncResolver">AsyncResolver</a></code><a href='#impl-Debug' class='anchor'></a><a class='srclink' href='../src/trust_dns_resolver/async_resolver/mod.rs.html#322-331' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.fmt' class="method hidden"><code id='fmt.v'>fn <a href='https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt' class='fnname'>fmt</a>(&self, f: &mut <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<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>></code><a class='srclink' href='../src/trust_dns_resolver/async_resolver/mod.rs.html#323-330' title='goto source code'>[src]</a></h4><div class='docblock hidden'><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></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-RefUnwindSafe' class='impl'><code class='in-band'>impl !<a class="trait" href="https://doc.rust-lang.org/nightly/std/panic/trait.RefUnwindSafe.html" title="trait std::panic::RefUnwindSafe">RefUnwindSafe</a> for <a class="struct" href="../actix_connect/struct.AsyncResolver.html" title="struct actix_connect::AsyncResolver">AsyncResolver</a></code><a href='#impl-RefUnwindSafe' class='anchor'></a></h3><div class='impl-items'></div><h3 id='impl-Send' class='impl'><code class='in-band'>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_connect/struct.AsyncResolver.html" title="struct actix_connect::AsyncResolver">AsyncResolver</a></code><a href='#impl-Send' class='anchor'></a></h3><div class='impl-items'></div><h3 id='impl-Sync' class='impl'><code class='in-band'>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_connect/struct.AsyncResolver.html" title="struct actix_connect::AsyncResolver">AsyncResolver</a></code><a href='#impl-Sync' class='anchor'></a></h3><div class='impl-items'></div><h3 id='impl-Unpin' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a> for <a class="struct" href="../actix_connect/struct.AsyncResolver.html" title="struct actix_connect::AsyncResolver">AsyncResolver</a></code><a href='#impl-Unpin' class='anchor'></a></h3><div class='impl-items'></div><h3 id='impl-UnwindSafe' class='impl'><code class='in-band'>impl !<a class="trait" href="https://doc.rust-lang.org/nightly/std/panic/trait.UnwindSafe.html" title="trait std::panic::UnwindSafe">UnwindSafe</a> for <a class="struct" href="../actix_connect/struct.AsyncResolver.html" title="struct actix_connect::AsyncResolver">AsyncResolver</a></code><a href='#impl-UnwindSafe' class='anchor'></a></h3><div class='impl-items'></div></div><h2 id='blanket-implementations' class='small-section-header'>Blanket Implementations<a href='#blanket-implementations' class='anchor'></a></h2><div id='blanket-implementations-list'><h3 id='impl-Any' class='impl'><code class='in-band'>impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html" title="trait core::any::Any">Any</a> for T <span class="where fmt-newline">where<br> T: 'static + ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></code><a href='#impl-Any' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/any.rs.html#108-112' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.type_id' class="method hidden"><code id='type_id.v'>fn <a href='https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id' class='fnname'>type_id</a>(&self) -> <a class="struct" href="https://doc.rust-lang.org/nightly/core/any/struct.TypeId.html" title="struct core::any::TypeId">TypeId</a></code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/any.rs.html#109-111' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Gets the <code>TypeId</code> of <code>self</code>. <a href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id">Read more</a></p>
|
||||
</div></div><h3 id='impl-Borrow%3CT%3E' class='impl'><code class='in-band'>impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a><T> for T <span class="where fmt-newline">where<br> T: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></code><a href='#impl-Borrow%3CT%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#213-217' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.borrow' class="method hidden"><code id='borrow.v'>fn <a href='https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow' class='fnname'>borrow</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>T</code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#214-216' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Immutably borrows from an owned value. <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow">Read more</a></p>
|
||||
</div></div><h3 id='impl-BorrowMut%3CT%3E' class='impl'><code class='in-band'>impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html" title="trait core::borrow::BorrowMut">BorrowMut</a><T> for T <span class="where fmt-newline">where<br> T: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></code><a href='#impl-BorrowMut%3CT%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#220-224' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.borrow_mut' class="method hidden"><code id='borrow_mut.v'>fn <a href='https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut' class='fnname'>borrow_mut</a>(&mut self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>T</code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#221-223' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Mutably borrows from an owned value. <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read more</a></p>
|
||||
</div></div><h3 id='impl-From%3CT%3E' class='impl'><code class='in-band'>impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><T> for T</code><a href='#impl-From%3CT%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#564-568' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.from' class="method hidden"><code id='from.v'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from' class='fnname'>from</a>(t: T) -> T</code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#565-567' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||||
</div></div><h3 id='impl-Into%3CU%3E' class='impl'><code class='in-band'>impl<T, U> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><U> for T <span class="where fmt-newline">where<br> U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><T>, </span></code><a href='#impl-Into%3CU%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#553-560' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.into' class="method hidden"><code id='into.v'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.Into.html#tymethod.into' class='fnname'>into</a>(self) -> U</code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#557-559' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||||
</div></div><h3 id='impl-ToOwned' class='impl'><code class='in-band'>impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html" title="trait alloc::borrow::ToOwned">ToOwned</a> for T <span class="where fmt-newline">where<br> T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>, </span></code><a href='#impl-ToOwned' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/alloc/borrow.rs.html#80-92' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Owned' class="type"><code id='Owned.t'>type <a href='https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#associatedtype.Owned' class="type">Owned</a> = T</code></h4><div class='docblock'><p>The resulting type after obtaining ownership.</p>
|
||||
</div><h4 id='method.to_owned' class="method hidden"><code id='to_owned.v'>fn <a href='https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#tymethod.to_owned' class='fnname'>to_owned</a>(&self) -> T</code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/alloc/borrow.rs.html#85-87' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Creates owned data from borrowed data, usually by cloning. <a href="https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#tymethod.to_owned">Read more</a></p>
|
||||
</div><h4 id='method.clone_into' class="method hidden"><code id='clone_into.v'>fn <a href='https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#method.clone_into' class='fnname'>clone_into</a>(&self, target: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>T)</code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/alloc/borrow.rs.html#89-91' title='goto source code'>[src]</a></h4><div class='stability hidden'><div class='stab unstable'><details><summary><span class='emoji'>🔬</span> This is a nightly-only experimental API. (<code>toowned_clone_into</code>)</summary><p>recently added</p>
|
||||
</details></div></div><div class='docblock hidden'><p>Uses borrowed data to replace owned data, usually by cloning. <a href="https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#method.clone_into">Read more</a></p>
|
||||
</div></div><h3 id='impl-TryFrom%3CU%3E' class='impl'><code class='in-band'>impl<T, U> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><U> for T <span class="where fmt-newline">where<br> U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><T>, </span></code><a href='#impl-TryFrom%3CU%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#601-610' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Error' class="type"><code id='Error.t'>type <a href='https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error' class="type">Error</a> = <a class="enum" href="https://doc.rust-lang.org/nightly/core/convert/enum.Infallible.html" title="enum core::convert::Infallible">Infallible</a></code></h4><div class='docblock'><p>The type returned in the event of a conversion error.</p>
|
||||
</div><h4 id='method.try_from' class="method hidden"><code id='try_from.v'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#tymethod.try_from' class='fnname'>try_from</a>(value: U) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><T, <T as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><U>>::<a class="type" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>></code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#607-609' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||||
</div></div><h3 id='impl-TryInto%3CU%3E' class='impl'><code class='in-band'>impl<T, U> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html" title="trait core::convert::TryInto">TryInto</a><U> for T <span class="where fmt-newline">where<br> U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>, </span></code><a href='#impl-TryInto%3CU%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#587-596' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Error-1' class="type"><code id='Error.t-1'>type <a href='https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html#associatedtype.Error' class="type">Error</a> = <U as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>>::<a class="type" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a></code></h4><div class='docblock'><p>The type returned in the event of a conversion error.</p>
|
||||
</div><h4 id='method.try_into' class="method hidden"><code id='try_into.v'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html#tymethod.try_into' class='fnname'>try_into</a>(self) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><U, <U as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>>::<a class="type" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>></code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#593-595' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||||
</div></div></div></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../";window.currentCrate = "actix_connect";</script><script src="../aliases.js"></script><script src="../main.js"></script><script defer src="../search-index.js"></script></body></html>
|
||||
29
actix_connect/struct.Connect.html
Normal file
29
actix_connect/struct.Connect.html
Normal file
File diff suppressed because one or more lines are too long
29
actix_connect/struct.ConnectService.html
Normal file
29
actix_connect/struct.ConnectService.html
Normal file
File diff suppressed because one or more lines are too long
40
actix_connect/struct.ConnectServiceFactory.html
Normal file
40
actix_connect/struct.ConnectServiceFactory.html
Normal file
File diff suppressed because one or more lines are too long
20
actix_connect/struct.Connection.html
Normal file
20
actix_connect/struct.Connection.html
Normal file
File diff suppressed because one or more lines are too long
40
actix_connect/struct.ResolveError.html
Normal file
40
actix_connect/struct.ResolveError.html
Normal file
@@ -0,0 +1,40 @@
|
||||
<!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 `ResolveError` struct in crate `actix_connect`."><meta name="keywords" content="rust, rustlang, rust-lang, ResolveError"><title>actix_connect::ResolveError - 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><noscript><link rel="stylesheet" href="../noscript.css"></noscript><link rel="shortcut icon" href="../favicon.ico"><style type="text/css">#crate-search{background-image:url("../down-arrow.svg");}</style></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">☰</div><a href='../actix_connect/index.html'><div class='logo-container'><img src='../rust-logo.png' alt='logo'></div></a><p class='location'>Struct ResolveError</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#methods">Methods</a><div class="sidebar-links"><a href="#method.kind">kind</a></div><a class="sidebar-title" href="#implementations">Trait Implementations</a><div class="sidebar-links"><a href="#impl-Clone">Clone</a><a href="#impl-Debug">Debug</a><a href="#impl-Display">Display</a><a href="#impl-Fail">Fail</a><a href="#impl-From%3C%26%27static%20str%3E">From<&'static str></a><a href="#impl-From%3CContext%3CResolveErrorKind%3E%3E">From<Context<ResolveErrorKind>></a><a href="#impl-From%3CError%3E">From<Error></a><a href="#impl-From%3CPoisonError%3CT%3E%3E">From<PoisonError<T>></a><a href="#impl-From%3CProtoError%3E">From<ProtoError></a><a href="#impl-From%3CResolveError%3E">From<ResolveError></a><a href="#impl-From%3CResolveErrorKind%3E">From<ResolveErrorKind></a><a href="#impl-From%3CString%3E">From<String></a></div><a class="sidebar-title" href="#synthetic-implementations">Auto Trait Implementations</a><div class="sidebar-links"><a href="#impl-RefUnwindSafe">!RefUnwindSafe</a><a href="#impl-Send">Send</a><a href="#impl-Sync">Sync</a><a href="#impl-Unpin">Unpin</a><a href="#impl-UnwindSafe">!UnwindSafe</a></div><a class="sidebar-title" href="#blanket-implementations">Blanket Implementations</a><div class="sidebar-links"><a href="#impl-Any">Any</a><a href="#impl-AsFail">AsFail</a><a href="#impl-Borrow%3CT%3E">Borrow<T></a><a href="#impl-BorrowMut%3CT%3E">BorrowMut<T></a><a href="#impl-Fail">Fail</a><a href="#impl-From%3CT%3E">From<T></a><a href="#impl-FromProtoError">FromProtoError</a><a href="#impl-Into%3CU%3E">Into<U></a><a href="#impl-ToOwned">ToOwned</a><a href="#impl-ToString">ToString</a><a href="#impl-TryFrom%3CU%3E">TryFrom<U></a><a href="#impl-TryInto%3CU%3E">TryInto<U></a></div></div><p class='location'><a href='index.html'>actix_connect</a></p><script>window.sidebarCurrent = {name: 'ResolveError', 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"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><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='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../src/trust_dns_resolver/error.rs.html#74-76' title='goto source code'>[src]</a></span><span class='in-band'>Struct <a href='index.html'>actix_connect</a>::<wbr><a class="struct" href=''>ResolveError</a></span></h1><div class="docblock type-decl hidden-by-usual-hider"><pre class='rust struct'>pub struct ResolveError { /* fields omitted */ }</pre></div><div class='docblock'><p>The error type for errors that get returned in the crate</p>
|
||||
</div><h2 id='methods' class='small-section-header'>Methods<a href='#methods' class='anchor'></a></h2><h3 id='impl' class='impl'><code class='in-band'>impl <a class="struct" href="../actix_connect/struct.ResolveError.html" title="struct actix_connect::ResolveError">ResolveError</a></code><a href='#impl' class='anchor'></a><a class='srclink' href='../src/trust_dns_resolver/error.rs.html#78-83' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.kind' class="method"><code id='kind.v'>pub fn <a href='#method.kind' class='fnname'>kind</a>(&self) -> &<a class="enum" href="../trust_dns_resolver/error/enum.ResolveErrorKind.html" title="enum trust_dns_resolver::error::ResolveErrorKind">ResolveErrorKind</a></code><a class='srclink' href='../src/trust_dns_resolver/error.rs.html#80-82' title='goto source code'>[src]</a></h4><div class='docblock'><p>Get the kind of the error</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-Clone' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> for <a class="struct" href="../actix_connect/struct.ResolveError.html" title="struct actix_connect::ResolveError">ResolveError</a></code><a href='#impl-Clone' class='anchor'></a><a class='srclink' href='../src/trust_dns_resolver/error.rs.html#85-91' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.clone' class="method hidden"><code id='clone.v'>fn <a href='https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#tymethod.clone' class='fnname'>clone</a>(&self) -> <a class="struct" href="../actix_connect/struct.ResolveError.html" title="struct actix_connect::ResolveError">ResolveError</a></code><a class='srclink' href='../src/trust_dns_resolver/error.rs.html#86-90' title='goto source code'>[src]</a></h4><div class='docblock hidden'><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 hidden"><code id='clone_from.v'>fn <a href='https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#method.clone_from' class='fnname'>clone_from</a>(&mut self, source: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>Self)</code><span class='since' title='Stable since Rust version 1.0.0'>1.0.0</span><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/clone.rs.html#131-133' title='goto source code'>[src]</a></h4><div class='docblock hidden'><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-Debug' class='impl'><code class='in-band'>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_connect/struct.ResolveError.html" title="struct actix_connect::ResolveError">ResolveError</a></code><a href='#impl-Debug' class='anchor'></a><a class='srclink' href='../src/trust_dns_resolver/error.rs.html#73' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.fmt' class="method hidden"><code id='fmt.v'>fn <a href='https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt' class='fnname'>fmt</a>(&self, f: &mut <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<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>></code><a class='srclink' href='../src/trust_dns_resolver/error.rs.html#73' title='goto source code'>[src]</a></h4><div class='docblock hidden'><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-Display' class='impl'><code class='in-band'>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="struct" href="../actix_connect/struct.ResolveError.html" title="struct actix_connect::ResolveError">ResolveError</a></code><a href='#impl-Display' class='anchor'></a><a class='srclink' href='../src/trust_dns_resolver/error.rs.html#103-107' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.fmt-1' class="method hidden"><code id='fmt.v-1'>fn <a href='https://doc.rust-lang.org/nightly/core/fmt/trait.Display.html#tymethod.fmt' class='fnname'>fmt</a>(&self, f: &mut <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<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>></code><a class='srclink' href='../src/trust_dns_resolver/error.rs.html#104-106' title='goto source code'>[src]</a></h4><div class='docblock hidden'><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-Fail' class='impl'><code class='in-band'>impl <a class="trait" href="../failure/trait.Fail.html" title="trait failure::Fail">Fail</a> for <a class="struct" href="../actix_connect/struct.ResolveError.html" title="struct actix_connect::ResolveError">ResolveError</a></code><a href='#impl-Fail' class='anchor'></a><a class='srclink' href='../src/trust_dns_resolver/error.rs.html#93-101' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.cause' class="method hidden"><code id='cause.v'>fn <a href='../failure/trait.Fail.html#method.cause' class='fnname'>cause</a>(&self) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><&(dyn <a class="trait" href="../failure/trait.Fail.html" title="trait failure::Fail">Fail</a> + 'static)></code><a class='srclink' href='../src/trust_dns_resolver/error.rs.html#94-96' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Returns a reference to the underlying cause of this failure, if it is an error that wraps other errors. <a href="../failure/trait.Fail.html#method.cause">Read more</a></p>
|
||||
</div><h4 id='method.backtrace' class="method hidden"><code id='backtrace.v'>fn <a href='../failure/trait.Fail.html#method.backtrace' class='fnname'>backtrace</a>(&self) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><&<a class="struct" href="../failure/backtrace/struct.Backtrace.html" title="struct failure::backtrace::Backtrace">Backtrace</a>></code><a class='srclink' href='../src/trust_dns_resolver/error.rs.html#98-100' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Returns a reference to the <code>Backtrace</code> carried by this failure, if it carries one. <a href="../failure/trait.Fail.html#method.backtrace">Read more</a></p>
|
||||
</div><h4 id='method.name' class="method hidden"><code id='name.v'>fn <a href='../failure/trait.Fail.html#method.name' class='fnname'>name</a>(&self) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><&<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>></code><a class='srclink' href='../src/failure/lib.rs.html#115-117' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Returns the "name" of the error. <a href="../failure/trait.Fail.html#method.name">Read more</a></p>
|
||||
</div><h4 id='method.context' class="method hidden"><code id='context.v'>fn <a href='../failure/trait.Fail.html#method.context' class='fnname'>context</a><D>(self, context: D) -> <a class="struct" href="../failure/context/struct.Context.html" title="struct failure::context::Context">Context</a><D> <span class="where fmt-newline">where<br> 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, </span></code><a class='srclink' href='../src/failure/lib.rs.html#155-161' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Provides context for this failure. <a href="../failure/trait.Fail.html#method.context">Read more</a></p>
|
||||
</div><h4 id='method.compat' class="method hidden"><code id='compat.v'>fn <a href='../failure/trait.Fail.html#method.compat' class='fnname'>compat</a>(self) -> <a class="struct" href="../failure/compat/struct.Compat.html" title="struct failure::compat::Compat">Compat</a><Self></code><a class='srclink' href='../src/failure/lib.rs.html#168-173' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Wraps this failure in a compatibility wrapper that implements <code>std::error::Error</code>. <a href="../failure/trait.Fail.html#method.compat">Read more</a></p>
|
||||
</div></div><h3 id='impl-From%3C%26%27static%20str%3E' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><&'static <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>> for <a class="struct" href="../actix_connect/struct.ResolveError.html" title="struct actix_connect::ResolveError">ResolveError</a></code><a href='#impl-From%3C%26%27static%20str%3E' class='anchor'></a><a class='srclink' href='../src/trust_dns_resolver/error.rs.html#123-127' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.from-6' class="method hidden"><code id='from.v-6'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from' class='fnname'>from</a>(msg: &'static <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>) -> <a class="struct" href="../actix_connect/struct.ResolveError.html" title="struct actix_connect::ResolveError">ResolveError</a></code><a class='srclink' href='../src/trust_dns_resolver/error.rs.html#124-126' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||||
</div></div><h3 id='impl-From%3CContext%3CResolveErrorKind%3E%3E' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="struct" href="../failure/context/struct.Context.html" title="struct failure::context::Context">Context</a><<a class="enum" href="../trust_dns_resolver/error/enum.ResolveErrorKind.html" title="enum trust_dns_resolver::error::ResolveErrorKind">ResolveErrorKind</a>>> for <a class="struct" href="../actix_connect/struct.ResolveError.html" title="struct actix_connect::ResolveError">ResolveError</a></code><a href='#impl-From%3CContext%3CResolveErrorKind%3E%3E' class='anchor'></a><a class='srclink' href='../src/trust_dns_resolver/error.rs.html#117-121' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.from-3' class="method hidden"><code id='from.v-3'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from' class='fnname'>from</a>(inner: <a class="struct" href="../failure/context/struct.Context.html" title="struct failure::context::Context">Context</a><<a class="enum" href="../trust_dns_resolver/error/enum.ResolveErrorKind.html" title="enum trust_dns_resolver::error::ResolveErrorKind">ResolveErrorKind</a>>) -> <a class="struct" href="../actix_connect/struct.ResolveError.html" title="struct actix_connect::ResolveError">ResolveError</a></code><a class='srclink' href='../src/trust_dns_resolver/error.rs.html#118-120' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||||
</div></div><h3 id='impl-From%3CError%3E' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="struct" href="https://doc.rust-lang.org/nightly/std/io/error/struct.Error.html" title="struct std::io::error::Error">Error</a>> for <a class="struct" href="../actix_connect/struct.ResolveError.html" title="struct actix_connect::ResolveError">ResolveError</a></code><a href='#impl-From%3CError%3E' class='anchor'></a><a class='srclink' href='../src/trust_dns_resolver/error.rs.html#143-150' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.from-4' class="method hidden"><code id='from.v-4'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from' class='fnname'>from</a>(e: <a class="struct" href="https://doc.rust-lang.org/nightly/std/io/error/struct.Error.html" title="struct std::io::error::Error">Error</a>) -> <a class="struct" href="../actix_connect/struct.ResolveError.html" title="struct actix_connect::ResolveError">ResolveError</a></code><a class='srclink' href='../src/trust_dns_resolver/error.rs.html#144-149' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||||
</div></div><h3 id='impl-From%3CPoisonError%3CT%3E%3E' class='impl'><code class='in-band'>impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="struct" href="https://doc.rust-lang.org/nightly/std/sys_common/poison/struct.PoisonError.html" title="struct std::sys_common::poison::PoisonError">PoisonError</a><T>> for <a class="struct" href="../actix_connect/struct.ResolveError.html" title="struct actix_connect::ResolveError">ResolveError</a></code><a href='#impl-From%3CPoisonError%3CT%3E%3E' class='anchor'></a><a class='srclink' href='../src/trust_dns_resolver/error.rs.html#170-174' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.from-5' class="method hidden"><code id='from.v-5'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from' class='fnname'>from</a>(e: <a class="struct" href="https://doc.rust-lang.org/nightly/std/sys_common/poison/struct.PoisonError.html" title="struct std::sys_common::poison::PoisonError">PoisonError</a><T>) -> <a class="struct" href="../actix_connect/struct.ResolveError.html" title="struct actix_connect::ResolveError">ResolveError</a></code><a class='srclink' href='../src/trust_dns_resolver/error.rs.html#171-173' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||||
</div></div><h3 id='impl-From%3CProtoError%3E' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="struct" href="../trust_dns_proto/error/struct.ProtoError.html" title="struct trust_dns_proto::error::ProtoError">ProtoError</a>> for <a class="struct" href="../actix_connect/struct.ResolveError.html" title="struct actix_connect::ResolveError">ResolveError</a></code><a href='#impl-From%3CProtoError%3E' class='anchor'></a><a class='srclink' href='../src/trust_dns_resolver/error.rs.html#152-159' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.from' class="method hidden"><code id='from.v'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from' class='fnname'>from</a>(e: <a class="struct" href="../trust_dns_proto/error/struct.ProtoError.html" title="struct trust_dns_proto::error::ProtoError">ProtoError</a>) -> <a class="struct" href="../actix_connect/struct.ResolveError.html" title="struct actix_connect::ResolveError">ResolveError</a></code><a class='srclink' href='../src/trust_dns_resolver/error.rs.html#153-158' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||||
</div></div><h3 id='impl-From%3CResolveError%3E' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="struct" href="../actix_connect/struct.ResolveError.html" title="struct actix_connect::ResolveError">ResolveError</a>> for <a class="enum" href="../actix_connect/enum.ConnectError.html" title="enum actix_connect::ConnectError">ConnectError</a></code><a href='#impl-From%3CResolveError%3E' class='anchor'></a><a class='srclink' href='../src/actix_connect/error.rs.html#6' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.from-7' class="method hidden"><code id='from.v-7'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from' class='fnname'>from</a>(original: <a class="struct" href="../actix_connect/struct.ResolveError.html" title="struct actix_connect::ResolveError">ResolveError</a>) -> <a class="enum" href="../actix_connect/enum.ConnectError.html" title="enum actix_connect::ConnectError">ConnectError</a></code><a class='srclink' href='../src/actix_connect/error.rs.html#6' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||||
</div></div><h3 id='impl-From%3CResolveErrorKind%3E' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="enum" href="../trust_dns_resolver/error/enum.ResolveErrorKind.html" title="enum trust_dns_resolver::error::ResolveErrorKind">ResolveErrorKind</a>> for <a class="struct" href="../actix_connect/struct.ResolveError.html" title="struct actix_connect::ResolveError">ResolveError</a></code><a href='#impl-From%3CResolveErrorKind%3E' class='anchor'></a><a class='srclink' href='../src/trust_dns_resolver/error.rs.html#109-115' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.from-2' class="method hidden"><code id='from.v-2'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from' class='fnname'>from</a>(kind: <a class="enum" href="../trust_dns_resolver/error/enum.ResolveErrorKind.html" title="enum trust_dns_resolver::error::ResolveErrorKind">ResolveErrorKind</a>) -> <a class="struct" href="../actix_connect/struct.ResolveError.html" title="struct actix_connect::ResolveError">ResolveError</a></code><a class='srclink' href='../src/trust_dns_resolver/error.rs.html#110-114' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||||
</div></div><h3 id='impl-From%3CString%3E' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>> for <a class="struct" href="../actix_connect/struct.ResolveError.html" title="struct actix_connect::ResolveError">ResolveError</a></code><a href='#impl-From%3CString%3E' class='anchor'></a><a class='srclink' href='../src/trust_dns_resolver/error.rs.html#137-141' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.from-1' class="method hidden"><code id='from.v-1'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from' class='fnname'>from</a>(msg: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>) -> <a class="struct" href="../actix_connect/struct.ResolveError.html" title="struct actix_connect::ResolveError">ResolveError</a></code><a class='srclink' href='../src/trust_dns_resolver/error.rs.html#138-140' title='goto source code'>[src]</a></h4><div class='docblock hidden'><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-RefUnwindSafe' class='impl'><code class='in-band'>impl !<a class="trait" href="https://doc.rust-lang.org/nightly/std/panic/trait.RefUnwindSafe.html" title="trait std::panic::RefUnwindSafe">RefUnwindSafe</a> for <a class="struct" href="../actix_connect/struct.ResolveError.html" title="struct actix_connect::ResolveError">ResolveError</a></code><a href='#impl-RefUnwindSafe' class='anchor'></a></h3><div class='impl-items'></div><h3 id='impl-Send' class='impl'><code class='in-band'>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_connect/struct.ResolveError.html" title="struct actix_connect::ResolveError">ResolveError</a></code><a href='#impl-Send' class='anchor'></a></h3><div class='impl-items'></div><h3 id='impl-Sync' class='impl'><code class='in-band'>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_connect/struct.ResolveError.html" title="struct actix_connect::ResolveError">ResolveError</a></code><a href='#impl-Sync' class='anchor'></a></h3><div class='impl-items'></div><h3 id='impl-Unpin' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a> for <a class="struct" href="../actix_connect/struct.ResolveError.html" title="struct actix_connect::ResolveError">ResolveError</a></code><a href='#impl-Unpin' class='anchor'></a></h3><div class='impl-items'></div><h3 id='impl-UnwindSafe' class='impl'><code class='in-band'>impl !<a class="trait" href="https://doc.rust-lang.org/nightly/std/panic/trait.UnwindSafe.html" title="trait std::panic::UnwindSafe">UnwindSafe</a> for <a class="struct" href="../actix_connect/struct.ResolveError.html" title="struct actix_connect::ResolveError">ResolveError</a></code><a href='#impl-UnwindSafe' class='anchor'></a></h3><div class='impl-items'></div></div><h2 id='blanket-implementations' class='small-section-header'>Blanket Implementations<a href='#blanket-implementations' class='anchor'></a></h2><div id='blanket-implementations-list'><h3 id='impl-Any' class='impl'><code class='in-band'>impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html" title="trait core::any::Any">Any</a> for T <span class="where fmt-newline">where<br> T: 'static + ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></code><a href='#impl-Any' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/any.rs.html#108-112' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.type_id' class="method hidden"><code id='type_id.v'>fn <a href='https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id' class='fnname'>type_id</a>(&self) -> <a class="struct" href="https://doc.rust-lang.org/nightly/core/any/struct.TypeId.html" title="struct core::any::TypeId">TypeId</a></code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/any.rs.html#109-111' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Gets the <code>TypeId</code> of <code>self</code>. <a href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id">Read more</a></p>
|
||||
</div></div><h3 id='impl-AsFail' class='impl'><code class='in-band'>impl<T> <a class="trait" href="../failure/as_fail/trait.AsFail.html" title="trait failure::as_fail::AsFail">AsFail</a> for T <span class="where fmt-newline">where<br> T: <a class="trait" href="../failure/trait.Fail.html" title="trait failure::Fail">Fail</a>, </span></code><a href='#impl-AsFail' class='anchor'></a><a class='srclink' href='../src/failure/as_fail.rs.html#14-21' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.as_fail' class="method hidden"><code id='as_fail.v'>fn <a href='../failure/as_fail/trait.AsFail.html#tymethod.as_fail' class='fnname'>as_fail</a>(&self) -> &(dyn <a class="trait" href="../failure/trait.Fail.html" title="trait failure::Fail">Fail</a> + 'static)</code><a class='srclink' href='../src/failure/as_fail.rs.html#18-20' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Converts a reference to <code>Self</code> into a dynamic trait object of <code>Fail</code>.</p>
|
||||
</div></div><h3 id='impl-Borrow%3CT%3E' class='impl'><code class='in-band'>impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a><T> for T <span class="where fmt-newline">where<br> T: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></code><a href='#impl-Borrow%3CT%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#213-217' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.borrow' class="method hidden"><code id='borrow.v'>fn <a href='https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow' class='fnname'>borrow</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>T</code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#214-216' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Immutably borrows from an owned value. <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow">Read more</a></p>
|
||||
</div></div><h3 id='impl-BorrowMut%3CT%3E' class='impl'><code class='in-band'>impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html" title="trait core::borrow::BorrowMut">BorrowMut</a><T> for T <span class="where fmt-newline">where<br> T: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></code><a href='#impl-BorrowMut%3CT%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#220-224' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.borrow_mut' class="method hidden"><code id='borrow_mut.v'>fn <a href='https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut' class='fnname'>borrow_mut</a>(&mut self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>T</code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#221-223' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Mutably borrows from an owned value. <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read more</a></p>
|
||||
</div></div><h3 id='impl-Fail-1' class='impl'><code class='in-band'>impl<E> <a class="trait" href="../failure/trait.Fail.html" title="trait failure::Fail">Fail</a> for E <span class="where fmt-newline">where<br> E: 'static + <a class="trait" href="https://doc.rust-lang.org/nightly/std/error/trait.Error.html" title="trait std::error::Error">Error</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>, </span></code><a href='#impl-Fail-1' class='anchor'></a><a class='srclink' href='../src/failure/lib.rs.html#273' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.name-1' class="method hidden"><code id='name.v-1'>fn <a href='../failure/trait.Fail.html#method.name' class='fnname'>name</a>(&self) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><&<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>></code><a class='srclink' href='../src/failure/lib.rs.html#115-117' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Returns the "name" of the error. <a href="../failure/trait.Fail.html#method.name">Read more</a></p>
|
||||
</div><h4 id='method.cause-1' class="method hidden"><code id='cause.v-1'>fn <a href='../failure/trait.Fail.html#method.cause' class='fnname'>cause</a>(&self) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><&(dyn <a class="trait" href="../failure/trait.Fail.html" title="trait failure::Fail">Fail</a> + 'static)></code><a class='srclink' href='../src/failure/lib.rs.html#129-131' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Returns a reference to the underlying cause of this failure, if it is an error that wraps other errors. <a href="../failure/trait.Fail.html#method.cause">Read more</a></p>
|
||||
</div><h4 id='method.backtrace-1' class="method hidden"><code id='backtrace.v-1'>fn <a href='../failure/trait.Fail.html#method.backtrace' class='fnname'>backtrace</a>(&self) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><&<a class="struct" href="../failure/backtrace/struct.Backtrace.html" title="struct failure::backtrace::Backtrace">Backtrace</a>></code><a class='srclink' href='../src/failure/lib.rs.html#138-140' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Returns a reference to the <code>Backtrace</code> carried by this failure, if it carries one. <a href="../failure/trait.Fail.html#method.backtrace">Read more</a></p>
|
||||
</div><h4 id='method.context-1' class="method hidden"><code id='context.v-1'>fn <a href='../failure/trait.Fail.html#method.context' class='fnname'>context</a><D>(self, context: D) -> <a class="struct" href="../failure/context/struct.Context.html" title="struct failure::context::Context">Context</a><D> <span class="where fmt-newline">where<br> 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, </span></code><a class='srclink' href='../src/failure/lib.rs.html#155-161' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Provides context for this failure. <a href="../failure/trait.Fail.html#method.context">Read more</a></p>
|
||||
</div><h4 id='method.compat-1' class="method hidden"><code id='compat.v-1'>fn <a href='../failure/trait.Fail.html#method.compat' class='fnname'>compat</a>(self) -> <a class="struct" href="../failure/compat/struct.Compat.html" title="struct failure::compat::Compat">Compat</a><Self></code><a class='srclink' href='../src/failure/lib.rs.html#168-173' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Wraps this failure in a compatibility wrapper that implements <code>std::error::Error</code>. <a href="../failure/trait.Fail.html#method.compat">Read more</a></p>
|
||||
</div></div><h3 id='impl-From%3CT%3E' class='impl'><code class='in-band'>impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><T> for T</code><a href='#impl-From%3CT%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#564-568' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.from-8' class="method hidden"><code id='from.v-8'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from' class='fnname'>from</a>(t: T) -> T</code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#565-567' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||||
</div></div><h3 id='impl-FromProtoError' class='impl'><code class='in-band'>impl<E> <a class="trait" href="../trust_dns_proto/error/trait.FromProtoError.html" title="trait trust_dns_proto::error::FromProtoError">FromProtoError</a> for E <span class="where fmt-newline">where<br> E: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="struct" href="../trust_dns_proto/error/struct.ProtoError.html" title="struct trust_dns_proto::error::ProtoError">ProtoError</a>> + <a class="trait" href="../failure/trait.Fail.html" title="trait failure::Fail">Fail</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>, </span></code><a href='#impl-FromProtoError' class='anchor'></a><a class='srclink' href='../src/trust_dns_proto/error.rs.html#441' title='goto source code'>[src]</a></h3><div class='impl-items'></div><h3 id='impl-Into%3CU%3E' class='impl'><code class='in-band'>impl<T, U> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><U> for T <span class="where fmt-newline">where<br> U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><T>, </span></code><a href='#impl-Into%3CU%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#553-560' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.into' class="method hidden"><code id='into.v'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.Into.html#tymethod.into' class='fnname'>into</a>(self) -> U</code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#557-559' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||||
</div></div><h3 id='impl-ToOwned' class='impl'><code class='in-band'>impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html" title="trait alloc::borrow::ToOwned">ToOwned</a> for T <span class="where fmt-newline">where<br> T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>, </span></code><a href='#impl-ToOwned' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/alloc/borrow.rs.html#80-92' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Owned' class="type"><code id='Owned.t'>type <a href='https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#associatedtype.Owned' class="type">Owned</a> = T</code></h4><div class='docblock'><p>The resulting type after obtaining ownership.</p>
|
||||
</div><h4 id='method.to_owned' class="method hidden"><code id='to_owned.v'>fn <a href='https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#tymethod.to_owned' class='fnname'>to_owned</a>(&self) -> T</code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/alloc/borrow.rs.html#85-87' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Creates owned data from borrowed data, usually by cloning. <a href="https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#tymethod.to_owned">Read more</a></p>
|
||||
</div><h4 id='method.clone_into' class="method hidden"><code id='clone_into.v'>fn <a href='https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#method.clone_into' class='fnname'>clone_into</a>(&self, target: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>T)</code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/alloc/borrow.rs.html#89-91' title='goto source code'>[src]</a></h4><div class='stability hidden'><div class='stab unstable'><details><summary><span class='emoji'>🔬</span> This is a nightly-only experimental API. (<code>toowned_clone_into</code>)</summary><p>recently added</p>
|
||||
</details></div></div><div class='docblock hidden'><p>Uses borrowed data to replace owned data, usually by cloning. <a href="https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#method.clone_into">Read more</a></p>
|
||||
</div></div><h3 id='impl-ToString' class='impl'><code class='in-band'>impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/alloc/string/trait.ToString.html" title="trait alloc::string::ToString">ToString</a> for T <span class="where fmt-newline">where<br> T: <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.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></code><a href='#impl-ToString' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/alloc/string.rs.html#2160-2170' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.to_string' class="method hidden"><code id='to_string.v'>default fn <a href='https://doc.rust-lang.org/nightly/alloc/string/trait.ToString.html#tymethod.to_string' class='fnname'>to_string</a>(&self) -> <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a></code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/alloc/string.rs.html#2162-2169' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Converts the given value to a <code>String</code>. <a href="https://doc.rust-lang.org/nightly/alloc/string/trait.ToString.html#tymethod.to_string">Read more</a></p>
|
||||
</div></div><h3 id='impl-TryFrom%3CU%3E' class='impl'><code class='in-band'>impl<T, U> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><U> for T <span class="where fmt-newline">where<br> U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><T>, </span></code><a href='#impl-TryFrom%3CU%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#601-610' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Error' class="type"><code id='Error.t'>type <a href='https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error' class="type">Error</a> = <a class="enum" href="https://doc.rust-lang.org/nightly/core/convert/enum.Infallible.html" title="enum core::convert::Infallible">Infallible</a></code></h4><div class='docblock'><p>The type returned in the event of a conversion error.</p>
|
||||
</div><h4 id='method.try_from' class="method hidden"><code id='try_from.v'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#tymethod.try_from' class='fnname'>try_from</a>(value: U) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><T, <T as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><U>>::<a class="type" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>></code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#607-609' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||||
</div></div><h3 id='impl-TryInto%3CU%3E' class='impl'><code class='in-band'>impl<T, U> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html" title="trait core::convert::TryInto">TryInto</a><U> for T <span class="where fmt-newline">where<br> U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>, </span></code><a href='#impl-TryInto%3CU%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#587-596' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Error-1' class="type"><code id='Error.t-1'>type <a href='https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html#associatedtype.Error' class="type">Error</a> = <U as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>>::<a class="type" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a></code></h4><div class='docblock'><p>The type returned in the event of a conversion error.</p>
|
||||
</div><h4 id='method.try_into' class="method hidden"><code id='try_into.v'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html#tymethod.try_into' class='fnname'>try_into</a>(self) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><U, <U as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>>::<a class="type" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>></code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#593-595' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||||
</div></div></div></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../";window.currentCrate = "actix_connect";</script><script src="../aliases.js"></script><script src="../main.js"></script><script defer src="../search-index.js"></script></body></html>
|
||||
32
actix_connect/struct.Resolver.html
Normal file
32
actix_connect/struct.Resolver.html
Normal 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 `Resolver` struct in crate `actix_connect`."><meta name="keywords" content="rust, rustlang, rust-lang, Resolver"><title>actix_connect::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><noscript><link rel="stylesheet" href="../noscript.css"></noscript><link rel="shortcut icon" href="../favicon.ico"><style type="text/css">#crate-search{background-image:url("../down-arrow.svg");}</style></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">☰</div><a href='../actix_connect/index.html'><div class='logo-container'><img src='../rust-logo.png' alt='logo'></div></a><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-Clone">Clone</a><a href="#impl-Default">Default</a><a href="#impl-Service">Service</a></div><a class="sidebar-title" href="#synthetic-implementations">Auto Trait Implementations</a><div class="sidebar-links"><a href="#impl-RefUnwindSafe">!RefUnwindSafe</a><a href="#impl-Send">Send</a><a href="#impl-Sync">Sync</a><a href="#impl-Unpin">Unpin</a><a href="#impl-UnwindSafe">!UnwindSafe</a></div><a class="sidebar-title" href="#blanket-implementations">Blanket Implementations</a><div class="sidebar-links"><a href="#impl-Any">Any</a><a href="#impl-Borrow%3CT%3E">Borrow<T></a><a href="#impl-BorrowMut%3CT%3E">BorrowMut<T></a><a href="#impl-From%3CT%3E">From<T></a><a href="#impl-Into%3CU%3E">Into<U></a><a href="#impl-IntoService%3CT%3E">IntoService<T></a><a href="#impl-ServiceExt">ServiceExt</a><a href="#impl-ToOwned">ToOwned</a><a href="#impl-TryFrom%3CU%3E">TryFrom<U></a><a href="#impl-TryInto%3CU%3E">TryInto<U></a></div></div><p class='location'><a href='index.html'>actix_connect</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"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><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='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../src/actix_connect/resolver.rs.html#70-73' title='goto source code'>[src]</a></span><span class='in-band'>Struct <a href='index.html'>actix_connect</a>::<wbr><a class="struct" href=''>Resolver</a></span></h1><div class="docblock type-decl hidden-by-usual-hider"><pre class='rust struct'>pub struct Resolver<T> { /* fields omitted */ }</pre></div><div class='docblock'><p>DNS Resolver Service</p>
|
||||
</div><h2 id='methods' class='small-section-header'>Methods<a href='#methods' class='anchor'></a></h2><h3 id='impl' class='impl'><code class='in-band'>impl<T> <a class="struct" href="../actix_connect/struct.Resolver.html" title="struct actix_connect::Resolver">Resolver</a><T></code><a href='#impl' class='anchor'></a><a class='srclink' href='../src/actix_connect/resolver.rs.html#75-83' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.new' class="method"><code id='new.v'>pub fn <a href='#method.new' class='fnname'>new</a>(resolver: <a class="struct" href="../actix_connect/struct.AsyncResolver.html" title="struct actix_connect::AsyncResolver">AsyncResolver</a>) -> Self</code><a class='srclink' href='../src/actix_connect/resolver.rs.html#77-82' title='goto source code'>[src]</a></h4><div class='docblock'><p>Create new resolver instance with custom configuration and options.</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-Clone' class='impl'><code class='in-band'>impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> for <a class="struct" href="../actix_connect/struct.Resolver.html" title="struct actix_connect::Resolver">Resolver</a><T></code><a href='#impl-Clone' class='anchor'></a><a class='srclink' href='../src/actix_connect/resolver.rs.html#94-101' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.clone' class="method hidden"><code id='clone.v'>fn <a href='https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#tymethod.clone' class='fnname'>clone</a>(&self) -> Self</code><a class='srclink' href='../src/actix_connect/resolver.rs.html#95-100' title='goto source code'>[src]</a></h4><div class='docblock hidden'><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 hidden"><code id='clone_from.v'>fn <a href='https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#method.clone_from' class='fnname'>clone_from</a>(&mut self, source: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>Self)</code><span class='since' title='Stable since Rust version 1.0.0'>1.0.0</span><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/clone.rs.html#131-133' title='goto source code'>[src]</a></h4><div class='docblock hidden'><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-Default' class='impl'><code class='in-band'>impl<T> <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_connect/struct.Resolver.html" title="struct actix_connect::Resolver">Resolver</a><T></code><a href='#impl-Default' class='anchor'></a><a class='srclink' href='../src/actix_connect/resolver.rs.html#85-92' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.default' class="method hidden"><code id='default.v'>fn <a href='https://doc.rust-lang.org/nightly/core/default/trait.Default.html#tymethod.default' class='fnname'>default</a>() -> Self</code><a class='srclink' href='../src/actix_connect/resolver.rs.html#86-91' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Returns the "default value" 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-Service' class='impl'><code class='in-band'>impl<T: <a class="trait" href="../actix_connect/trait.Address.html" title="trait actix_connect::Address">Address</a>> <a class="trait" href="../actix_service/trait.Service.html" title="trait actix_service::Service">Service</a> for <a class="struct" href="../actix_connect/struct.Resolver.html" title="struct actix_connect::Resolver">Resolver</a><T></code><a href='#impl-Service' class='anchor'></a><a class='srclink' href='../src/actix_connect/resolver.rs.html#103-127' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Request' class="type"><code id='Request.t'>type <a href='../actix_service/trait.Service.html#associatedtype.Request' class="type">Request</a> = <a class="struct" href="../actix_connect/struct.Connect.html" title="struct actix_connect::Connect">Connect</a><T></code></h4><div class='docblock'><p>Requests handled by the service.</p>
|
||||
</div><h4 id='associatedtype.Response' class="type"><code id='Response.t'>type <a href='../actix_service/trait.Service.html#associatedtype.Response' class="type">Response</a> = <a class="struct" href="../actix_connect/struct.Connect.html" title="struct actix_connect::Connect">Connect</a><T></code></h4><div class='docblock'><p>Responses given by the service.</p>
|
||||
</div><h4 id='associatedtype.Error' class="type"><code id='Error.t'>type <a href='../actix_service/trait.Service.html#associatedtype.Error' class="type">Error</a> = <a class="enum" href="../actix_connect/enum.ConnectError.html" title="enum actix_connect::ConnectError">ConnectError</a></code></h4><div class='docblock'><p>Errors produced by the service.</p>
|
||||
</div><h4 id='associatedtype.Future' class="type"><code id='Future.t'>type <a href='../actix_service/trait.Service.html#associatedtype.Future' class="type">Future</a> = <a class="enum" href="../futures/future/either/enum.Either.html" title="enum futures::future::either::Either">Either</a><ResolverFuture<T>, <a class="struct" href="../futures/future/result_/struct.FutureResult.html" title="struct futures::future::result_::FutureResult">FutureResult</a><<a class="struct" href="../actix_connect/struct.Connect.html" title="struct actix_connect::Connect">Connect</a><T>, Self::<a class="type" href="../actix_service/trait.Service.html#associatedtype.Error" title="type actix_service::Service::Error">Error</a>>></code></h4><div class='docblock'><p>The future response value.</p>
|
||||
</div><h4 id='method.poll_ready' class="method hidden"><code id='poll_ready.v'>fn <a href='../actix_service/trait.Service.html#tymethod.poll_ready' class='fnname'>poll_ready</a>(&mut self) -> <a class="type" href="../futures/poll/type.Poll.html" title="type futures::poll::Poll">Poll</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, Self::<a class="type" href="../actix_service/trait.Service.html#associatedtype.Error" title="type actix_service::Service::Error">Error</a>></code><a class='srclink' href='../src/actix_connect/resolver.rs.html#109-111' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Returns <code>Ready</code> when the service is able to process requests. <a href="../actix_service/trait.Service.html#tymethod.poll_ready">Read more</a></p>
|
||||
</div><h4 id='method.call' class="method hidden"><code id='call.v'>fn <a href='../actix_service/trait.Service.html#tymethod.call' class='fnname'>call</a>(&mut self, req: <a class="struct" href="../actix_connect/struct.Connect.html" title="struct actix_connect::Connect">Connect</a><T>) -> Self::<a class="type" href="../actix_service/trait.Service.html#associatedtype.Future" title="type actix_service::Service::Future">Future</a></code><a class='srclink' href='../src/actix_connect/resolver.rs.html#113-126' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Process the request and return the response asynchronously. <a href="../actix_service/trait.Service.html#tymethod.call">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-RefUnwindSafe' class='impl'><code class='in-band'>impl<T> !<a class="trait" href="https://doc.rust-lang.org/nightly/std/panic/trait.RefUnwindSafe.html" title="trait std::panic::RefUnwindSafe">RefUnwindSafe</a> for <a class="struct" href="../actix_connect/struct.Resolver.html" title="struct actix_connect::Resolver">Resolver</a><T></code><a href='#impl-RefUnwindSafe' class='anchor'></a></h3><div class='impl-items'></div><h3 id='impl-Send' class='impl'><code class='in-band'>impl<T> <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_connect/struct.Resolver.html" title="struct actix_connect::Resolver">Resolver</a><T> <span class="where fmt-newline">where<br> T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a>, </span></code><a href='#impl-Send' class='anchor'></a></h3><div class='impl-items'></div><h3 id='impl-Sync' class='impl'><code class='in-band'>impl<T> <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_connect/struct.Resolver.html" title="struct actix_connect::Resolver">Resolver</a><T> <span class="where fmt-newline">where<br> T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a>, </span></code><a href='#impl-Sync' class='anchor'></a></h3><div class='impl-items'></div><h3 id='impl-Unpin' class='impl'><code class='in-band'>impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a> for <a class="struct" href="../actix_connect/struct.Resolver.html" title="struct actix_connect::Resolver">Resolver</a><T> <span class="where fmt-newline">where<br> T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a>, </span></code><a href='#impl-Unpin' class='anchor'></a></h3><div class='impl-items'></div><h3 id='impl-UnwindSafe' class='impl'><code class='in-band'>impl<T> !<a class="trait" href="https://doc.rust-lang.org/nightly/std/panic/trait.UnwindSafe.html" title="trait std::panic::UnwindSafe">UnwindSafe</a> for <a class="struct" href="../actix_connect/struct.Resolver.html" title="struct actix_connect::Resolver">Resolver</a><T></code><a href='#impl-UnwindSafe' class='anchor'></a></h3><div class='impl-items'></div></div><h2 id='blanket-implementations' class='small-section-header'>Blanket Implementations<a href='#blanket-implementations' class='anchor'></a></h2><div id='blanket-implementations-list'><h3 id='impl-Any' class='impl'><code class='in-band'>impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html" title="trait core::any::Any">Any</a> for T <span class="where fmt-newline">where<br> T: 'static + ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></code><a href='#impl-Any' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/any.rs.html#108-112' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.type_id' class="method hidden"><code id='type_id.v'>fn <a href='https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id' class='fnname'>type_id</a>(&self) -> <a class="struct" href="https://doc.rust-lang.org/nightly/core/any/struct.TypeId.html" title="struct core::any::TypeId">TypeId</a></code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/any.rs.html#109-111' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Gets the <code>TypeId</code> of <code>self</code>. <a href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id">Read more</a></p>
|
||||
</div></div><h3 id='impl-Borrow%3CT%3E' class='impl'><code class='in-band'>impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a><T> for T <span class="where fmt-newline">where<br> T: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></code><a href='#impl-Borrow%3CT%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#213-217' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.borrow' class="method hidden"><code id='borrow.v'>fn <a href='https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow' class='fnname'>borrow</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>T</code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#214-216' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Immutably borrows from an owned value. <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow">Read more</a></p>
|
||||
</div></div><h3 id='impl-BorrowMut%3CT%3E' class='impl'><code class='in-band'>impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html" title="trait core::borrow::BorrowMut">BorrowMut</a><T> for T <span class="where fmt-newline">where<br> T: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></code><a href='#impl-BorrowMut%3CT%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#220-224' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.borrow_mut' class="method hidden"><code id='borrow_mut.v'>fn <a href='https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut' class='fnname'>borrow_mut</a>(&mut self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>T</code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#221-223' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Mutably borrows from an owned value. <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read more</a></p>
|
||||
</div></div><h3 id='impl-From%3CT%3E' class='impl'><code class='in-band'>impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><T> for T</code><a href='#impl-From%3CT%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#564-568' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.from' class="method hidden"><code id='from.v'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from' class='fnname'>from</a>(t: T) -> T</code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#565-567' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||||
</div></div><h3 id='impl-Into%3CU%3E' class='impl'><code class='in-band'>impl<T, U> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><U> for T <span class="where fmt-newline">where<br> U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><T>, </span></code><a href='#impl-Into%3CU%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#553-560' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.into' class="method hidden"><code id='into.v'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.Into.html#tymethod.into' class='fnname'>into</a>(self) -> U</code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#557-559' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||||
</div></div><h3 id='impl-IntoService%3CT%3E' class='impl'><code class='in-band'>impl<T> <a class="trait" href="../actix_service/trait.IntoService.html" title="trait actix_service::IntoService">IntoService</a><T> for T <span class="where fmt-newline">where<br> T: <a class="trait" href="../actix_service/trait.Service.html" title="trait actix_service::Service">Service</a>, </span></code><a href='#impl-IntoService%3CT%3E' class='anchor'></a><a class='srclink' href='../src/actix_service/lib.rs.html#443-450' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.into_service' class="method hidden"><code id='into_service.v'>fn <a href='../actix_service/trait.IntoService.html#tymethod.into_service' class='fnname'>into_service</a>(self) -> T</code><a class='srclink' href='../src/actix_service/lib.rs.html#447-449' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Convert to a <code>Service</code></p>
|
||||
</div></div><h3 id='impl-ServiceExt' class='impl'><code class='in-band'>impl<T> <a class="trait" href="../actix_service/trait.ServiceExt.html" title="trait actix_service::ServiceExt">ServiceExt</a> for T <span class="where fmt-newline">where<br> T: <a class="trait" href="../actix_service/trait.Service.html" title="trait actix_service::Service">Service</a> + ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></code><a href='#impl-ServiceExt' class='anchor'></a><a class='srclink' href='../src/actix_service/lib.rs.html#174' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.apply_fn' class="method hidden"><code id='apply_fn.v'>fn <a href='../actix_service/trait.ServiceExt.html#method.apply_fn' class='fnname'>apply_fn</a><F, B, B1, Out>(<br> self, <br> service: B1, <br> f: F<br>) -> AndThenApply<Self, B, F, Out> <span class="where fmt-newline">where<br> B: <a class="trait" href="../actix_service/trait.Service.html" title="trait actix_service::Service">Service</a><Error = Self::<a class="type" href="../actix_service/trait.Service.html#associatedtype.Error" title="type actix_service::Service::Error">Error</a>>,<br> B1: <a class="trait" href="../actix_service/trait.IntoService.html" title="trait actix_service::IntoService">IntoService</a><B>,<br> F: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(Self::<a class="type" href="../actix_service/trait.Service.html#associatedtype.Response" title="type actix_service::Service::Response">Response</a>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>B) -> Out,<br> Out: <a class="trait" href="../futures/future/trait.IntoFuture.html" title="trait futures::future::IntoFuture">IntoFuture</a>,<br> <Out as <a class="trait" href="../futures/future/trait.IntoFuture.html" title="trait futures::future::IntoFuture">IntoFuture</a>>::<a class="type" href="../futures/future/trait.IntoFuture.html#associatedtype.Error" title="type futures::future::IntoFuture::Error">Error</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><Self::<a class="type" href="../actix_service/trait.Service.html#associatedtype.Error" title="type actix_service::Service::Error">Error</a>>, </span></code><a class='srclink' href='../src/actix_service/lib.rs.html#84-94' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Apply function to specified service and use it as a next service in chain. <a href="../actix_service/trait.ServiceExt.html#method.apply_fn">Read more</a></p>
|
||||
</div><h4 id='method.and_then' class="method hidden"><code id='and_then.v'>fn <a href='../actix_service/trait.ServiceExt.html#method.and_then' class='fnname'>and_then</a><F, B>(self, service: F) -> <a class="struct" href="../actix_service/and_then/struct.AndThen.html" title="struct actix_service::and_then::AndThen">AndThen</a><Self, B> <span class="where fmt-newline">where<br> B: <a class="trait" href="../actix_service/trait.Service.html" title="trait actix_service::Service">Service</a><Request = Self::<a class="type" href="../actix_service/trait.Service.html#associatedtype.Response" title="type actix_service::Service::Response">Response</a>, Error = Self::<a class="type" href="../actix_service/trait.Service.html#associatedtype.Error" title="type actix_service::Service::Error">Error</a>>,<br> F: <a class="trait" href="../actix_service/trait.IntoService.html" title="trait actix_service::IntoService">IntoService</a><B>, </span></code><a class='srclink' href='../src/actix_service/lib.rs.html#105-112' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Call another service after call to this one has resolved successfully. <a href="../actix_service/trait.ServiceExt.html#method.and_then">Read more</a></p>
|
||||
</div><h4 id='method.from_err' class="method hidden"><code id='from_err.v'>fn <a href='../actix_service/trait.ServiceExt.html#method.from_err' class='fnname'>from_err</a><E>(self) -> <a class="struct" href="../actix_service/from_err/struct.FromErr.html" title="struct actix_service::from_err::FromErr">FromErr</a><Self, E> <span class="where fmt-newline">where<br> E: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><Self::<a class="type" href="../actix_service/trait.Service.html#associatedtype.Error" title="type actix_service::Service::Error">Error</a>>, </span></code><a class='srclink' href='../src/actix_service/lib.rs.html#119-125' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Map this service's error to any error implementing <code>From</code> for this service<code>s </code>Error`. <a href="../actix_service/trait.ServiceExt.html#method.from_err">Read more</a></p>
|
||||
</div><h4 id='method.then' class="method hidden"><code id='then.v'>fn <a href='../actix_service/trait.ServiceExt.html#method.then' class='fnname'>then</a><B>(self, service: B) -> <a class="struct" href="../actix_service/then/struct.Then.html" title="struct actix_service::then::Then">Then</a><Self, B> <span class="where fmt-newline">where<br> B: <a class="trait" href="../actix_service/trait.Service.html" title="trait actix_service::Service">Service</a><Request = <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><Self::<a class="type" href="../actix_service/trait.Service.html#associatedtype.Response" title="type actix_service::Service::Response">Response</a>, Self::<a class="type" href="../actix_service/trait.Service.html#associatedtype.Error" title="type actix_service::Service::Error">Error</a>>, Error = Self::<a class="type" href="../actix_service/trait.Service.html#associatedtype.Error" title="type actix_service::Service::Error">Error</a>>, </span></code><a class='srclink' href='../src/actix_service/lib.rs.html#132-138' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Chain on a computation for when a call to the service finished, passing the result of the call to the next service <code>B</code>. <a href="../actix_service/trait.ServiceExt.html#method.then">Read more</a></p>
|
||||
</div><h4 id='method.map' class="method hidden"><code id='map.v'>fn <a href='../actix_service/trait.ServiceExt.html#method.map' class='fnname'>map</a><F, R>(self, f: F) -> <a class="struct" href="../actix_service/map/struct.Map.html" title="struct actix_service::map::Map">Map</a><Self, F, R> <span class="where fmt-newline">where<br> F: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(Self::<a class="type" href="../actix_service/trait.Service.html#associatedtype.Response" title="type actix_service::Service::Response">Response</a>) -> R, </span></code><a class='srclink' href='../src/actix_service/lib.rs.html#149-155' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Map this service's output to a different type, returning a new service of the resulting type. <a href="../actix_service/trait.ServiceExt.html#method.map">Read more</a></p>
|
||||
</div><h4 id='method.map_err' class="method hidden"><code id='map_err.v'>fn <a href='../actix_service/trait.ServiceExt.html#method.map_err' class='fnname'>map_err</a><F, E>(self, f: F) -> <a class="struct" href="../actix_service/map_err/struct.MapErr.html" title="struct actix_service::map_err::MapErr">MapErr</a><Self, F, E> <span class="where fmt-newline">where<br> F: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.Fn.html" title="trait core::ops::function::Fn">Fn</a>(Self::<a class="type" href="../actix_service/trait.Service.html#associatedtype.Error" title="type actix_service::Service::Error">Error</a>) -> E, </span></code><a class='srclink' href='../src/actix_service/lib.rs.html#165-171' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Map this service's error to a different error, returning a new service. <a href="../actix_service/trait.ServiceExt.html#method.map_err">Read more</a></p>
|
||||
</div></div><h3 id='impl-ToOwned' class='impl'><code class='in-band'>impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html" title="trait alloc::borrow::ToOwned">ToOwned</a> for T <span class="where fmt-newline">where<br> T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>, </span></code><a href='#impl-ToOwned' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/alloc/borrow.rs.html#80-92' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Owned' class="type"><code id='Owned.t'>type <a href='https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#associatedtype.Owned' class="type">Owned</a> = T</code></h4><div class='docblock'><p>The resulting type after obtaining ownership.</p>
|
||||
</div><h4 id='method.to_owned' class="method hidden"><code id='to_owned.v'>fn <a href='https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#tymethod.to_owned' class='fnname'>to_owned</a>(&self) -> T</code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/alloc/borrow.rs.html#85-87' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Creates owned data from borrowed data, usually by cloning. <a href="https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#tymethod.to_owned">Read more</a></p>
|
||||
</div><h4 id='method.clone_into' class="method hidden"><code id='clone_into.v'>fn <a href='https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#method.clone_into' class='fnname'>clone_into</a>(&self, target: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>T)</code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/alloc/borrow.rs.html#89-91' title='goto source code'>[src]</a></h4><div class='stability hidden'><div class='stab unstable'><details><summary><span class='emoji'>🔬</span> This is a nightly-only experimental API. (<code>toowned_clone_into</code>)</summary><p>recently added</p>
|
||||
</details></div></div><div class='docblock hidden'><p>Uses borrowed data to replace owned data, usually by cloning. <a href="https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#method.clone_into">Read more</a></p>
|
||||
</div></div><h3 id='impl-TryFrom%3CU%3E' class='impl'><code class='in-band'>impl<T, U> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><U> for T <span class="where fmt-newline">where<br> U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><T>, </span></code><a href='#impl-TryFrom%3CU%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#601-610' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Error-1' class="type"><code id='Error.t-1'>type <a href='https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error' class="type">Error</a> = <a class="enum" href="https://doc.rust-lang.org/nightly/core/convert/enum.Infallible.html" title="enum core::convert::Infallible">Infallible</a></code></h4><div class='docblock'><p>The type returned in the event of a conversion error.</p>
|
||||
</div><h4 id='method.try_from' class="method hidden"><code id='try_from.v'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#tymethod.try_from' class='fnname'>try_from</a>(value: U) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><T, <T as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><U>>::<a class="type" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>></code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#607-609' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||||
</div></div><h3 id='impl-TryInto%3CU%3E' class='impl'><code class='in-band'>impl<T, U> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html" title="trait core::convert::TryInto">TryInto</a><U> for T <span class="where fmt-newline">where<br> U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>, </span></code><a href='#impl-TryInto%3CU%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#587-596' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Error-2' class="type"><code id='Error.t-2'>type <a href='https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html#associatedtype.Error' class="type">Error</a> = <U as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>>::<a class="type" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a></code></h4><div class='docblock'><p>The type returned in the event of a conversion error.</p>
|
||||
</div><h4 id='method.try_into' class="method hidden"><code id='try_into.v'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html#tymethod.try_into' class='fnname'>try_into</a>(self) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><U, <U as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>>::<a class="type" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>></code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#593-595' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||||
</div></div></div></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../";window.currentCrate = "actix_connect";</script><script src="../aliases.js"></script><script src="../main.js"></script><script defer src="../search-index.js"></script></body></html>
|
||||
47
actix_connect/struct.ResolverConfig.html
Normal file
47
actix_connect/struct.ResolverConfig.html
Normal file
@@ -0,0 +1,47 @@
|
||||
<!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 `ResolverConfig` struct in crate `actix_connect`."><meta name="keywords" content="rust, rustlang, rust-lang, ResolverConfig"><title>actix_connect::ResolverConfig - 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><noscript><link rel="stylesheet" href="../noscript.css"></noscript><link rel="shortcut icon" href="../favicon.ico"><style type="text/css">#crate-search{background-image:url("../down-arrow.svg");}</style></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">☰</div><a href='../actix_connect/index.html'><div class='logo-container'><img src='../rust-logo.png' alt='logo'></div></a><p class='location'>Struct ResolverConfig</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#methods">Methods</a><div class="sidebar-links"><a href="#method.add_name_server">add_name_server</a><a href="#method.add_search">add_search</a><a href="#method.cloudflare">cloudflare</a><a href="#method.domain">domain</a><a href="#method.from_parts">from_parts</a><a href="#method.google">google</a><a href="#method.name_servers">name_servers</a><a href="#method.new">new</a><a href="#method.quad9">quad9</a><a href="#method.search">search</a><a href="#method.set_domain">set_domain</a></div><a class="sidebar-title" href="#implementations">Trait Implementations</a><div class="sidebar-links"><a href="#impl-Clone">Clone</a><a href="#impl-Debug">Debug</a><a href="#impl-Default">Default</a><a href="#impl-Eq">Eq</a><a href="#impl-PartialEq%3CResolverConfig%3E">PartialEq<ResolverConfig></a><a href="#impl-StructuralEq">StructuralEq</a><a href="#impl-StructuralPartialEq">StructuralPartialEq</a></div><a class="sidebar-title" href="#synthetic-implementations">Auto Trait Implementations</a><div class="sidebar-links"><a href="#impl-RefUnwindSafe">RefUnwindSafe</a><a href="#impl-Send">Send</a><a href="#impl-Sync">Sync</a><a href="#impl-Unpin">Unpin</a><a href="#impl-UnwindSafe">UnwindSafe</a></div><a class="sidebar-title" href="#blanket-implementations">Blanket Implementations</a><div class="sidebar-links"><a href="#impl-Any">Any</a><a href="#impl-Borrow%3CT%3E">Borrow<T></a><a href="#impl-BorrowMut%3CT%3E">BorrowMut<T></a><a href="#impl-From%3CT%3E">From<T></a><a href="#impl-Into%3CU%3E">Into<U></a><a href="#impl-ToOwned">ToOwned</a><a href="#impl-TryFrom%3CU%3E">TryFrom<U></a><a href="#impl-TryInto%3CU%3E">TryInto<U></a></div></div><p class='location'><a href='index.html'>actix_connect</a></p><script>window.sidebarCurrent = {name: 'ResolverConfig', 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"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><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='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../src/trust_dns_resolver/config.rs.html#18-25' title='goto source code'>[src]</a></span><span class='in-band'>Struct <a href='index.html'>actix_connect</a>::<wbr><a class="struct" href=''>ResolverConfig</a></span></h1><div class="docblock type-decl hidden-by-usual-hider"><pre class='rust struct'>pub struct ResolverConfig { /* fields omitted */ }</pre></div><div class='docblock'><p>Configuration for the upstream nameservers to use for resolution</p>
|
||||
</div><h2 id='methods' class='small-section-header'>Methods<a href='#methods' class='anchor'></a></h2><h3 id='impl' class='impl'><code class='in-band'>impl <a class="struct" href="../actix_connect/struct.ResolverConfig.html" title="struct actix_connect::ResolverConfig">ResolverConfig</a></code><a href='#impl' class='anchor'></a><a class='srclink' href='../src/trust_dns_resolver/config.rs.html#27-179' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.new' class="method"><code id='new.v'>pub fn <a href='#method.new' class='fnname'>new</a>() -> <a class="struct" href="../actix_connect/struct.ResolverConfig.html" title="struct actix_connect::ResolverConfig">ResolverConfig</a></code><a class='srclink' href='../src/trust_dns_resolver/config.rs.html#29-36' title='goto source code'>[src]</a></h4><div class='docblock'><p>Creates a new empty configuration</p>
|
||||
</div><h4 id='method.google' class="method"><code id='google.v'>pub fn <a href='#method.google' class='fnname'>google</a>() -> <a class="struct" href="../actix_connect/struct.ResolverConfig.html" title="struct actix_connect::ResolverConfig">ResolverConfig</a></code><a class='srclink' href='../src/trust_dns_resolver/config.rs.html#43-50' title='goto source code'>[src]</a></h4><div class='docblock'><p>Creates a default configuration, using <code>8.8.8.8</code>, <code>8.8.4.4</code> and <code>2001:4860:4860::8888</code>, <code>2001:4860:4860::8844</code> (thank you, Google).</p>
|
||||
<p>Please see Google's <a href="https://developers.google.com/speed/public-dns/privacy">privacy statement</a> for important information about what they track, many ISP's track similar information in DNS. To use the the system configuration see: <code>Resolver::from_system_conf</code> and <code>ResolverFuture::from_system_conf</code></p>
|
||||
<p>NameServerConfigGroups can be combined to use a set of different providers, see <code>NameServerConfigGroup</code> and <code>ResolverConfig::from_parts</code></p>
|
||||
</div><h4 id='method.cloudflare' class="method"><code id='cloudflare.v'>pub fn <a href='#method.cloudflare' class='fnname'>cloudflare</a>() -> <a class="struct" href="../actix_connect/struct.ResolverConfig.html" title="struct actix_connect::ResolverConfig">ResolverConfig</a></code><a class='srclink' href='../src/trust_dns_resolver/config.rs.html#57-64' title='goto source code'>[src]</a></h4><div class='docblock'><p>Creates a default configuration, using <code>1.1.1.1</code>, <code>1.0.0.1</code> and <code>2606:4700:4700::1111</code>, <code>2606:4700:4700::1001</code> (thank you, Cloudflare).</p>
|
||||
<p>Please see: https://www.cloudflare.com/dns/</p>
|
||||
<p>NameServerConfigGroups can be combined to use a set of different providers, see <code>NameServerConfigGroup</code> and <code>ResolverConfig::from_parts</code></p>
|
||||
</div><h4 id='method.quad9' class="method"><code id='quad9.v'>pub fn <a href='#method.quad9' class='fnname'>quad9</a>() -> <a class="struct" href="../actix_connect/struct.ResolverConfig.html" title="struct actix_connect::ResolverConfig">ResolverConfig</a></code><a class='srclink' href='../src/trust_dns_resolver/config.rs.html#101-108' title='goto source code'>[src]</a></h4><div class='docblock'><p>Creates a configuration, using <code>9.9.9.9</code> and <code>2620:fe::fe</code>, the "secure" variants of the quad9 settings (thank you, Quad9).</p>
|
||||
<p>Please see: https://www.quad9.net/faq/</p>
|
||||
<p>NameServerConfigGroups can be combined to use a set of different providers, see <code>NameServerConfigGroup</code> and <code>ResolverConfig::from_parts</code></p>
|
||||
</div><h4 id='method.from_parts' class="method"><code id='from_parts.v'>pub fn <a href='#method.from_parts' class='fnname'>from_parts</a><G>(<br> domain: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../trust_dns_proto/rr/domain/name/struct.Name.html" title="struct trust_dns_proto::rr::domain::name::Name">Name</a>>, <br> search: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="../trust_dns_proto/rr/domain/name/struct.Name.html" title="struct trust_dns_proto::rr::domain::name::Name">Name</a>>, <br> name_servers: G<br>) -> <a class="struct" href="../actix_connect/struct.ResolverConfig.html" title="struct actix_connect::ResolverConfig">ResolverConfig</a> <span class="where fmt-newline">where<br> G: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="struct" href="../trust_dns_resolver/config/struct.NameServerConfigGroup.html" title="struct trust_dns_resolver::config::NameServerConfigGroup">NameServerConfigGroup</a>>, </span></code><a class='srclink' href='../src/trust_dns_resolver/config.rs.html#132-142' title='goto source code'>[src]</a></h4><div class='docblock'><p>Create a ResolverConfig with all parts specified</p>
|
||||
<h1 id="arguments" class="section-header"><a href="#arguments">Arguments</a></h1>
|
||||
<ul>
|
||||
<li><code>domain</code> - domain of the entity querying results. If the <code>Name</code> being looked up is not an FQDN, then this is the first part appended to attempt a lookup. <code>ndots</code> in the <code>ResolverOption</code> does take precedence over this.</li>
|
||||
<li><code>search</code> - additional search domains that are attempted if the <code>Name</code> is not found in <code>domain</code>, defaults to <code>vec![]</code></li>
|
||||
<li><code>name_servers</code> - set of name servers to use for lookups, defaults are Google: <code>8.8.8.8</code>, <code>8.8.4.4</code> and <code>2001:4860:4860::8888</code>, <code>2001:4860:4860::8844</code></li>
|
||||
</ul>
|
||||
</div><h4 id='method.domain' class="method"><code id='domain.v'>pub fn <a href='#method.domain' class='fnname'>domain</a>(&self) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><&<a class="struct" href="../trust_dns_proto/rr/domain/name/struct.Name.html" title="struct trust_dns_proto::rr::domain::name::Name">Name</a>></code><a class='srclink' href='../src/trust_dns_resolver/config.rs.html#147-149' title='goto source code'>[src]</a></h4><div class='docblock'><p>Returns the local domain</p>
|
||||
<p>By default any names will be appended to all non-fully-qualified-domain names, and searched for after any ndots rules</p>
|
||||
</div><h4 id='method.set_domain' class="method"><code id='set_domain.v'>pub fn <a href='#method.set_domain' class='fnname'>set_domain</a>(&mut self, domain: <a class="struct" href="../trust_dns_proto/rr/domain/name/struct.Name.html" title="struct trust_dns_proto::rr::domain::name::Name">Name</a>)</code><a class='srclink' href='../src/trust_dns_resolver/config.rs.html#152-155' title='goto source code'>[src]</a></h4><div class='docblock'><p>Set the domain of the entity querying results.</p>
|
||||
</div><h4 id='method.search' class="method"><code id='search.v'>pub fn <a href='#method.search' class='fnname'>search</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">&[</a><a class="struct" href="../trust_dns_proto/rr/domain/name/struct.Name.html" title="struct trust_dns_proto::rr::domain::name::Name">Name</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">]</a></code><a class='srclink' href='../src/trust_dns_resolver/config.rs.html#160-162' title='goto source code'>[src]</a></h4><div class='docblock'><p>Returns the search domains</p>
|
||||
<p>These will be queried after any local domain and then in the order of the set of search domains</p>
|
||||
</div><h4 id='method.add_search' class="method"><code id='add_search.v'>pub fn <a href='#method.add_search' class='fnname'>add_search</a>(&mut self, search: <a class="struct" href="../trust_dns_proto/rr/domain/name/struct.Name.html" title="struct trust_dns_proto::rr::domain::name::Name">Name</a>)</code><a class='srclink' href='../src/trust_dns_resolver/config.rs.html#165-167' title='goto source code'>[src]</a></h4><div class='docblock'><p>Add a search domain</p>
|
||||
</div><h4 id='method.add_name_server' class="method"><code id='add_name_server.v'>pub fn <a href='#method.add_name_server' class='fnname'>add_name_server</a>(&mut self, name_server: <a class="struct" href="../trust_dns_resolver/config/struct.NameServerConfig.html" title="struct trust_dns_resolver::config::NameServerConfig">NameServerConfig</a>)</code><a class='srclink' href='../src/trust_dns_resolver/config.rs.html#171-173' title='goto source code'>[src]</a></h4><div class='docblock'><p>Add the configuration for a name server</p>
|
||||
</div><h4 id='method.name_servers' class="method"><code id='name_servers.v'>pub fn <a href='#method.name_servers' class='fnname'>name_servers</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">&[</a><a class="struct" href="../trust_dns_resolver/config/struct.NameServerConfig.html" title="struct trust_dns_resolver::config::NameServerConfig">NameServerConfig</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">]</a></code><a class='srclink' href='../src/trust_dns_resolver/config.rs.html#176-178' title='goto source code'>[src]</a></h4><div class='docblock'><p>Returns a reference to the name servers</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-Clone' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> for <a class="struct" href="../actix_connect/struct.ResolverConfig.html" title="struct actix_connect::ResolverConfig">ResolverConfig</a></code><a href='#impl-Clone' class='anchor'></a><a class='srclink' href='../src/trust_dns_resolver/config.rs.html#16' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.clone' class="method hidden"><code id='clone.v'>fn <a href='https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#tymethod.clone' class='fnname'>clone</a>(&self) -> <a class="struct" href="../actix_connect/struct.ResolverConfig.html" title="struct actix_connect::ResolverConfig">ResolverConfig</a></code><a class='srclink' href='../src/trust_dns_resolver/config.rs.html#16' title='goto source code'>[src]</a></h4><div class='docblock hidden'><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 hidden"><code id='clone_from.v'>fn <a href='https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#method.clone_from' class='fnname'>clone_from</a>(&mut self, source: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>Self)</code><span class='since' title='Stable since Rust version 1.0.0'>1.0.0</span><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/clone.rs.html#131-133' title='goto source code'>[src]</a></h4><div class='docblock hidden'><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-Debug' class='impl'><code class='in-band'>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_connect/struct.ResolverConfig.html" title="struct actix_connect::ResolverConfig">ResolverConfig</a></code><a href='#impl-Debug' class='anchor'></a><a class='srclink' href='../src/trust_dns_resolver/config.rs.html#16' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.fmt' class="method hidden"><code id='fmt.v'>fn <a href='https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt' class='fnname'>fmt</a>(&self, f: &mut <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<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>></code><a class='srclink' href='../src/trust_dns_resolver/config.rs.html#16' title='goto source code'>[src]</a></h4><div class='docblock hidden'><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-Default' class='impl'><code class='in-band'>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_connect/struct.ResolverConfig.html" title="struct actix_connect::ResolverConfig">ResolverConfig</a></code><a href='#impl-Default' class='anchor'></a><a class='srclink' href='../src/trust_dns_resolver/config.rs.html#181-188' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.default' class="method"><code id='default.v'>fn <a href='https://doc.rust-lang.org/nightly/core/default/trait.Default.html#tymethod.default' class='fnname'>default</a>() -> <a class="struct" href="../actix_connect/struct.ResolverConfig.html" title="struct actix_connect::ResolverConfig">ResolverConfig</a></code><a class='srclink' href='../src/trust_dns_resolver/config.rs.html#185-187' title='goto source code'>[src]</a></h4><div class='docblock'><p>Creates a default configuration, using <code>8.8.8.8</code>, <code>8.8.4.4</code> and <code>2001:4860:4860::8888</code>, <code>2001:4860:4860::8844</code> (thank you, Google).</p>
|
||||
<p>Please see Google's <a href="https://developers.google.com/speed/public-dns/privacy">privacy statement</a> for important information about what they track, many ISP's track similar information in DNS. To use the the system configuration see: <code>Resolver::from_system_conf</code> and <code>ResolverFuture::from_system_conf</code></p>
|
||||
</div></div><h3 id='impl-Eq' class='impl'><code class='in-band'>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_connect/struct.ResolverConfig.html" title="struct actix_connect::ResolverConfig">ResolverConfig</a></code><a href='#impl-Eq' class='anchor'></a><a class='srclink' href='../src/trust_dns_resolver/config.rs.html#16' title='goto source code'>[src]</a></h3><div class='impl-items'></div><h3 id='impl-PartialEq%3CResolverConfig%3E' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a><<a class="struct" href="../actix_connect/struct.ResolverConfig.html" title="struct actix_connect::ResolverConfig">ResolverConfig</a>> for <a class="struct" href="../actix_connect/struct.ResolverConfig.html" title="struct actix_connect::ResolverConfig">ResolverConfig</a></code><a href='#impl-PartialEq%3CResolverConfig%3E' class='anchor'></a><a class='srclink' href='../src/trust_dns_resolver/config.rs.html#16' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.eq' class="method hidden"><code id='eq.v'>fn <a href='https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html#tymethod.eq' class='fnname'>eq</a>(&self, other: &<a class="struct" href="../actix_connect/struct.ResolverConfig.html" title="struct actix_connect::ResolverConfig">ResolverConfig</a>) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><a class='srclink' href='../src/trust_dns_resolver/config.rs.html#16' title='goto source code'>[src]</a></h4><div class='docblock hidden'><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 hidden"><code id='ne.v'>fn <a href='https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html#method.ne' class='fnname'>ne</a>(&self, other: &<a class="struct" href="../actix_connect/struct.ResolverConfig.html" title="struct actix_connect::ResolverConfig">ResolverConfig</a>) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><a class='srclink' href='../src/trust_dns_resolver/config.rs.html#16' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>This method tests for <code>!=</code>.</p>
|
||||
</div></div><h3 id='impl-StructuralEq' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.StructuralEq.html" title="trait core::marker::StructuralEq">StructuralEq</a> for <a class="struct" href="../actix_connect/struct.ResolverConfig.html" title="struct actix_connect::ResolverConfig">ResolverConfig</a></code><a href='#impl-StructuralEq' class='anchor'></a><a class='srclink' href='../src/trust_dns_resolver/config.rs.html#16' title='goto source code'>[src]</a></h3><div class='impl-items'></div><h3 id='impl-StructuralPartialEq' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.StructuralPartialEq.html" title="trait core::marker::StructuralPartialEq">StructuralPartialEq</a> for <a class="struct" href="../actix_connect/struct.ResolverConfig.html" title="struct actix_connect::ResolverConfig">ResolverConfig</a></code><a href='#impl-StructuralPartialEq' class='anchor'></a><a class='srclink' href='../src/trust_dns_resolver/config.rs.html#16' title='goto source code'>[src]</a></h3><div class='impl-items'></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-RefUnwindSafe' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/std/panic/trait.RefUnwindSafe.html" title="trait std::panic::RefUnwindSafe">RefUnwindSafe</a> for <a class="struct" href="../actix_connect/struct.ResolverConfig.html" title="struct actix_connect::ResolverConfig">ResolverConfig</a></code><a href='#impl-RefUnwindSafe' class='anchor'></a></h3><div class='impl-items'></div><h3 id='impl-Send' class='impl'><code class='in-band'>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_connect/struct.ResolverConfig.html" title="struct actix_connect::ResolverConfig">ResolverConfig</a></code><a href='#impl-Send' class='anchor'></a></h3><div class='impl-items'></div><h3 id='impl-Sync' class='impl'><code class='in-band'>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_connect/struct.ResolverConfig.html" title="struct actix_connect::ResolverConfig">ResolverConfig</a></code><a href='#impl-Sync' class='anchor'></a></h3><div class='impl-items'></div><h3 id='impl-Unpin' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a> for <a class="struct" href="../actix_connect/struct.ResolverConfig.html" title="struct actix_connect::ResolverConfig">ResolverConfig</a></code><a href='#impl-Unpin' class='anchor'></a></h3><div class='impl-items'></div><h3 id='impl-UnwindSafe' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/std/panic/trait.UnwindSafe.html" title="trait std::panic::UnwindSafe">UnwindSafe</a> for <a class="struct" href="../actix_connect/struct.ResolverConfig.html" title="struct actix_connect::ResolverConfig">ResolverConfig</a></code><a href='#impl-UnwindSafe' class='anchor'></a></h3><div class='impl-items'></div></div><h2 id='blanket-implementations' class='small-section-header'>Blanket Implementations<a href='#blanket-implementations' class='anchor'></a></h2><div id='blanket-implementations-list'><h3 id='impl-Any' class='impl'><code class='in-band'>impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html" title="trait core::any::Any">Any</a> for T <span class="where fmt-newline">where<br> T: 'static + ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></code><a href='#impl-Any' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/any.rs.html#108-112' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.type_id' class="method hidden"><code id='type_id.v'>fn <a href='https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id' class='fnname'>type_id</a>(&self) -> <a class="struct" href="https://doc.rust-lang.org/nightly/core/any/struct.TypeId.html" title="struct core::any::TypeId">TypeId</a></code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/any.rs.html#109-111' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Gets the <code>TypeId</code> of <code>self</code>. <a href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id">Read more</a></p>
|
||||
</div></div><h3 id='impl-Borrow%3CT%3E' class='impl'><code class='in-band'>impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a><T> for T <span class="where fmt-newline">where<br> T: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></code><a href='#impl-Borrow%3CT%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#213-217' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.borrow' class="method hidden"><code id='borrow.v'>fn <a href='https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow' class='fnname'>borrow</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>T</code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#214-216' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Immutably borrows from an owned value. <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow">Read more</a></p>
|
||||
</div></div><h3 id='impl-BorrowMut%3CT%3E' class='impl'><code class='in-band'>impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html" title="trait core::borrow::BorrowMut">BorrowMut</a><T> for T <span class="where fmt-newline">where<br> T: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></code><a href='#impl-BorrowMut%3CT%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#220-224' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.borrow_mut' class="method hidden"><code id='borrow_mut.v'>fn <a href='https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut' class='fnname'>borrow_mut</a>(&mut self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>T</code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#221-223' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Mutably borrows from an owned value. <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read more</a></p>
|
||||
</div></div><h3 id='impl-From%3CT%3E' class='impl'><code class='in-band'>impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><T> for T</code><a href='#impl-From%3CT%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#564-568' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.from' class="method hidden"><code id='from.v'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from' class='fnname'>from</a>(t: T) -> T</code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#565-567' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||||
</div></div><h3 id='impl-Into%3CU%3E' class='impl'><code class='in-band'>impl<T, U> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><U> for T <span class="where fmt-newline">where<br> U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><T>, </span></code><a href='#impl-Into%3CU%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#553-560' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.into' class="method hidden"><code id='into.v'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.Into.html#tymethod.into' class='fnname'>into</a>(self) -> U</code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#557-559' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||||
</div></div><h3 id='impl-ToOwned' class='impl'><code class='in-band'>impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html" title="trait alloc::borrow::ToOwned">ToOwned</a> for T <span class="where fmt-newline">where<br> T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>, </span></code><a href='#impl-ToOwned' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/alloc/borrow.rs.html#80-92' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Owned' class="type"><code id='Owned.t'>type <a href='https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#associatedtype.Owned' class="type">Owned</a> = T</code></h4><div class='docblock'><p>The resulting type after obtaining ownership.</p>
|
||||
</div><h4 id='method.to_owned' class="method hidden"><code id='to_owned.v'>fn <a href='https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#tymethod.to_owned' class='fnname'>to_owned</a>(&self) -> T</code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/alloc/borrow.rs.html#85-87' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Creates owned data from borrowed data, usually by cloning. <a href="https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#tymethod.to_owned">Read more</a></p>
|
||||
</div><h4 id='method.clone_into' class="method hidden"><code id='clone_into.v'>fn <a href='https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#method.clone_into' class='fnname'>clone_into</a>(&self, target: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>T)</code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/alloc/borrow.rs.html#89-91' title='goto source code'>[src]</a></h4><div class='stability hidden'><div class='stab unstable'><details><summary><span class='emoji'>🔬</span> This is a nightly-only experimental API. (<code>toowned_clone_into</code>)</summary><p>recently added</p>
|
||||
</details></div></div><div class='docblock hidden'><p>Uses borrowed data to replace owned data, usually by cloning. <a href="https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#method.clone_into">Read more</a></p>
|
||||
</div></div><h3 id='impl-TryFrom%3CU%3E' class='impl'><code class='in-band'>impl<T, U> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><U> for T <span class="where fmt-newline">where<br> U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><T>, </span></code><a href='#impl-TryFrom%3CU%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#601-610' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Error' class="type"><code id='Error.t'>type <a href='https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error' class="type">Error</a> = <a class="enum" href="https://doc.rust-lang.org/nightly/core/convert/enum.Infallible.html" title="enum core::convert::Infallible">Infallible</a></code></h4><div class='docblock'><p>The type returned in the event of a conversion error.</p>
|
||||
</div><h4 id='method.try_from' class="method hidden"><code id='try_from.v'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#tymethod.try_from' class='fnname'>try_from</a>(value: U) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><T, <T as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><U>>::<a class="type" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>></code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#607-609' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||||
</div></div><h3 id='impl-TryInto%3CU%3E' class='impl'><code class='in-band'>impl<T, U> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html" title="trait core::convert::TryInto">TryInto</a><U> for T <span class="where fmt-newline">where<br> U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>, </span></code><a href='#impl-TryInto%3CU%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#587-596' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Error-1' class="type"><code id='Error.t-1'>type <a href='https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html#associatedtype.Error' class="type">Error</a> = <U as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>>::<a class="type" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a></code></h4><div class='docblock'><p>The type returned in the event of a conversion error.</p>
|
||||
</div><h4 id='method.try_into' class="method hidden"><code id='try_into.v'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html#tymethod.try_into' class='fnname'>try_into</a>(self) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><U, <U as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>>::<a class="type" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>></code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#593-595' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||||
</div></div></div></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../";window.currentCrate = "actix_connect";</script><script src="../aliases.js"></script><script src="../main.js"></script><script defer src="../search-index.js"></script></body></html>
|
||||
38
actix_connect/struct.ResolverFactory.html
Normal file
38
actix_connect/struct.ResolverFactory.html
Normal file
@@ -0,0 +1,38 @@
|
||||
<!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 `ResolverFactory` struct in crate `actix_connect`."><meta name="keywords" content="rust, rustlang, rust-lang, ResolverFactory"><title>actix_connect::ResolverFactory - 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><noscript><link rel="stylesheet" href="../noscript.css"></noscript><link rel="shortcut icon" href="../favicon.ico"><style type="text/css">#crate-search{background-image:url("../down-arrow.svg");}</style></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">☰</div><a href='../actix_connect/index.html'><div class='logo-container'><img src='../rust-logo.png' alt='logo'></div></a><p class='location'>Struct ResolverFactory</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.service">service</a></div><a class="sidebar-title" href="#implementations">Trait Implementations</a><div class="sidebar-links"><a href="#impl-Clone">Clone</a><a href="#impl-Default">Default</a><a href="#impl-NewService">NewService</a></div><a class="sidebar-title" href="#synthetic-implementations">Auto Trait Implementations</a><div class="sidebar-links"><a href="#impl-RefUnwindSafe">!RefUnwindSafe</a><a href="#impl-Send">Send</a><a href="#impl-Sync">Sync</a><a href="#impl-Unpin">Unpin</a><a href="#impl-UnwindSafe">!UnwindSafe</a></div><a class="sidebar-title" href="#blanket-implementations">Blanket Implementations</a><div class="sidebar-links"><a href="#impl-Any">Any</a><a href="#impl-Borrow%3CT%3E">Borrow<T></a><a href="#impl-BorrowMut%3CT%3E">BorrowMut<T></a><a href="#impl-From%3CT%3E">From<T></a><a href="#impl-Into%3CU%3E">Into<U></a><a href="#impl-IntoNewService%3CT%3E">IntoNewService<T></a><a href="#impl-ToOwned">ToOwned</a><a href="#impl-TryFrom%3CU%3E">TryFrom<U></a><a href="#impl-TryInto%3CU%3E">TryInto<U></a></div></div><p class='location'><a href='index.html'>actix_connect</a></p><script>window.sidebarCurrent = {name: 'ResolverFactory', 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"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><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='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../src/actix_connect/resolver.rs.html#15-18' title='goto source code'>[src]</a></span><span class='in-band'>Struct <a href='index.html'>actix_connect</a>::<wbr><a class="struct" href=''>ResolverFactory</a></span></h1><div class="docblock type-decl hidden-by-usual-hider"><pre class='rust struct'>pub struct ResolverFactory<T> { /* fields omitted */ }</pre></div><div class='docblock'><p>DNS Resolver Service factory</p>
|
||||
</div><h2 id='methods' class='small-section-header'>Methods<a href='#methods' class='anchor'></a></h2><h3 id='impl' class='impl'><code class='in-band'>impl<T> <a class="struct" href="../actix_connect/struct.ResolverFactory.html" title="struct actix_connect::ResolverFactory">ResolverFactory</a><T></code><a href='#impl' class='anchor'></a><a class='srclink' href='../src/actix_connect/resolver.rs.html#20-35' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.new' class="method"><code id='new.v'>pub fn <a href='#method.new' class='fnname'>new</a>(resolver: <a class="struct" href="../actix_connect/struct.AsyncResolver.html" title="struct actix_connect::AsyncResolver">AsyncResolver</a>) -> Self</code><a class='srclink' href='../src/actix_connect/resolver.rs.html#22-27' title='goto source code'>[src]</a></h4><div class='docblock'><p>Create new resolver instance with custom configuration and options.</p>
|
||||
</div><h4 id='method.service' class="method"><code id='service.v'>pub fn <a href='#method.service' class='fnname'>service</a>(&self) -> <a class="struct" href="../actix_connect/struct.Resolver.html" title="struct actix_connect::Resolver">Resolver</a><T></code><a class='srclink' href='../src/actix_connect/resolver.rs.html#29-34' title='goto source code'>[src]</a></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-Clone' class='impl'><code class='in-band'>impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> for <a class="struct" href="../actix_connect/struct.ResolverFactory.html" title="struct actix_connect::ResolverFactory">ResolverFactory</a><T></code><a href='#impl-Clone' class='anchor'></a><a class='srclink' href='../src/actix_connect/resolver.rs.html#46-53' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.clone' class="method hidden"><code id='clone.v'>fn <a href='https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#tymethod.clone' class='fnname'>clone</a>(&self) -> Self</code><a class='srclink' href='../src/actix_connect/resolver.rs.html#47-52' title='goto source code'>[src]</a></h4><div class='docblock hidden'><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 hidden"><code id='clone_from.v'>fn <a href='https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#method.clone_from' class='fnname'>clone_from</a>(&mut self, source: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>Self)</code><span class='since' title='Stable since Rust version 1.0.0'>1.0.0</span><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/clone.rs.html#131-133' title='goto source code'>[src]</a></h4><div class='docblock hidden'><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-Default' class='impl'><code class='in-band'>impl<T> <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_connect/struct.ResolverFactory.html" title="struct actix_connect::ResolverFactory">ResolverFactory</a><T></code><a href='#impl-Default' class='anchor'></a><a class='srclink' href='../src/actix_connect/resolver.rs.html#37-44' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.default' class="method hidden"><code id='default.v'>fn <a href='https://doc.rust-lang.org/nightly/core/default/trait.Default.html#tymethod.default' class='fnname'>default</a>() -> Self</code><a class='srclink' href='../src/actix_connect/resolver.rs.html#38-43' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Returns the "default value" 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-NewService' class='impl'><code class='in-band'>impl<T: <a class="trait" href="../actix_connect/trait.Address.html" title="trait actix_connect::Address">Address</a>> <a class="trait" href="../actix_service/trait.NewService.html" title="trait actix_service::NewService">NewService</a> for <a class="struct" href="../actix_connect/struct.ResolverFactory.html" title="struct actix_connect::ResolverFactory">ResolverFactory</a><T></code><a href='#impl-NewService' class='anchor'></a><a class='srclink' href='../src/actix_connect/resolver.rs.html#55-67' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Request' class="type"><code id='Request.t'>type <a href='../actix_service/trait.NewService.html#associatedtype.Request' class="type">Request</a> = <a class="struct" href="../actix_connect/struct.Connect.html" title="struct actix_connect::Connect">Connect</a><T></code></h4><div class='docblock'><p>Requests handled by the service.</p>
|
||||
</div><h4 id='associatedtype.Response' class="type"><code id='Response.t'>type <a href='../actix_service/trait.NewService.html#associatedtype.Response' class="type">Response</a> = <a class="struct" href="../actix_connect/struct.Connect.html" title="struct actix_connect::Connect">Connect</a><T></code></h4><div class='docblock'><p>Responses given by the service</p>
|
||||
</div><h4 id='associatedtype.Error' class="type"><code id='Error.t'>type <a href='../actix_service/trait.NewService.html#associatedtype.Error' class="type">Error</a> = <a class="enum" href="../actix_connect/enum.ConnectError.html" title="enum actix_connect::ConnectError">ConnectError</a></code></h4><div class='docblock'><p>Errors produced by the service</p>
|
||||
</div><h4 id='associatedtype.Config' class="type"><code id='Config.t'>type <a href='../actix_service/trait.NewService.html#associatedtype.Config' class="type">Config</a> = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a></code></h4><div class='docblock'><p>Service factory configuration</p>
|
||||
</div><h4 id='associatedtype.Service' class="type"><code id='Service.t'>type <a href='../actix_service/trait.NewService.html#associatedtype.Service' class="type">Service</a> = <a class="struct" href="../actix_connect/struct.Resolver.html" title="struct actix_connect::Resolver">Resolver</a><T></code></h4><div class='docblock'><p>The <code>Service</code> value created by this factory</p>
|
||||
</div><h4 id='associatedtype.InitError' class="type"><code id='InitError.t'>type <a href='../actix_service/trait.NewService.html#associatedtype.InitError' class="type">InitError</a> = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a></code></h4><div class='docblock'><p>Errors produced while building a service.</p>
|
||||
</div><h4 id='associatedtype.Future' class="type"><code id='Future.t'>type <a href='../actix_service/trait.NewService.html#associatedtype.Future' class="type">Future</a> = <a class="struct" href="../futures/future/result_/struct.FutureResult.html" title="struct futures::future::result_::FutureResult">FutureResult</a><Self::<a class="type" href="../actix_service/trait.NewService.html#associatedtype.Service" title="type actix_service::NewService::Service">Service</a>, Self::<a class="type" href="../actix_service/trait.NewService.html#associatedtype.InitError" title="type actix_service::NewService::InitError">InitError</a>></code></h4><div class='docblock'><p>The future of the <code>Service</code> instance.</p>
|
||||
</div><h4 id='method.new_service' class="method hidden"><code id='new_service.v'>fn <a href='../actix_service/trait.NewService.html#tymethod.new_service' class='fnname'>new_service</a>(&self, _: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>) -> Self::<a class="type" href="../actix_service/trait.NewService.html#associatedtype.Future" title="type actix_service::NewService::Future">Future</a></code><a class='srclink' href='../src/actix_connect/resolver.rs.html#64-66' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Create and return a new service value asynchronously.</p>
|
||||
</div><h4 id='method.apply' class="method hidden"><code id='apply.v'>fn <a href='../actix_service/trait.NewService.html#method.apply' class='fnname'>apply</a><T, T1, B, B1>(<br> self, <br> transform: T1, <br> service: B1<br>) -> AndThenTransform<T, Self, B> <span class="where fmt-newline">where<br> B: <a class="trait" href="../actix_service/trait.NewService.html" title="trait actix_service::NewService">NewService</a><Config = Self::<a class="type" href="../actix_service/trait.NewService.html#associatedtype.Config" title="type actix_service::NewService::Config">Config</a>, InitError = Self::<a class="type" href="../actix_service/trait.NewService.html#associatedtype.InitError" title="type actix_service::NewService::InitError">InitError</a>>,<br> B1: <a class="trait" href="../actix_service/trait.IntoNewService.html" title="trait actix_service::IntoNewService">IntoNewService</a><B>,<br> T: <a class="trait" href="../actix_service/transform/trait.Transform.html" title="trait actix_service::transform::Transform">Transform</a><<B as <a class="trait" href="../actix_service/trait.NewService.html" title="trait actix_service::NewService">NewService</a>>::<a class="type" href="../actix_service/trait.NewService.html#associatedtype.Service" title="type actix_service::NewService::Service">Service</a>, Request = Self::<a class="type" href="../actix_service/trait.NewService.html#associatedtype.Response" title="type actix_service::NewService::Response">Response</a>, InitError = Self::<a class="type" href="../actix_service/trait.NewService.html#associatedtype.InitError" title="type actix_service::NewService::InitError">InitError</a>>,<br> T1: <a class="trait" href="../actix_service/transform/trait.IntoTransform.html" title="trait actix_service::transform::IntoTransform">IntoTransform</a><T, <B as <a class="trait" href="../actix_service/trait.NewService.html" title="trait actix_service::NewService">NewService</a>>::<a class="type" href="../actix_service/trait.NewService.html#associatedtype.Service" title="type actix_service::NewService::Service">Service</a>>,<br> <T as <a class="trait" href="../actix_service/transform/trait.Transform.html" title="trait actix_service::transform::Transform">Transform</a><<B as <a class="trait" href="../actix_service/trait.NewService.html" title="trait actix_service::NewService">NewService</a>>::<a class="type" href="../actix_service/trait.NewService.html#associatedtype.Service" title="type actix_service::NewService::Service">Service</a>>>::<a class="type" href="../actix_service/transform/trait.Transform.html#associatedtype.Error" title="type actix_service::transform::Transform::Error">Error</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><Self::<a class="type" href="../actix_service/trait.NewService.html#associatedtype.Error" title="type actix_service::NewService::Error">Error</a>>, </span></code><a class='srclink' href='../src/actix_service/lib.rs.html#216-226' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Apply transform service to specified service and use it as a next service in chain. <a href="../actix_service/trait.NewService.html#method.apply">Read more</a></p>
|
||||
</div><h4 id='method.apply_fn' class="method hidden"><code id='apply_fn.v'>fn <a href='../actix_service/trait.NewService.html#method.apply_fn' class='fnname'>apply_fn</a><B, I, F, Out>(<br> self, <br> service: I, <br> f: F<br>) -> AndThenApplyNewService<Self, B, F, Out> <span class="where fmt-newline">where<br> B: <a class="trait" href="../actix_service/trait.NewService.html" title="trait actix_service::NewService">NewService</a><Config = Self::<a class="type" href="../actix_service/trait.NewService.html#associatedtype.Config" title="type actix_service::NewService::Config">Config</a>, Error = Self::<a class="type" href="../actix_service/trait.NewService.html#associatedtype.Error" title="type actix_service::NewService::Error">Error</a>, InitError = Self::<a class="type" href="../actix_service/trait.NewService.html#associatedtype.InitError" title="type actix_service::NewService::InitError">InitError</a>>,<br> F: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(Self::<a class="type" href="../actix_service/trait.NewService.html#associatedtype.Response" title="type actix_service::NewService::Response">Response</a>, &mut <B as <a class="trait" href="../actix_service/trait.NewService.html" title="trait actix_service::NewService">NewService</a>>::<a class="type" href="../actix_service/trait.NewService.html#associatedtype.Service" title="type actix_service::NewService::Service">Service</a>) -> Out,<br> I: <a class="trait" href="../actix_service/trait.IntoNewService.html" title="trait actix_service::IntoNewService">IntoNewService</a><B>,<br> Out: <a class="trait" href="../futures/future/trait.IntoFuture.html" title="trait futures::future::IntoFuture">IntoFuture</a>,<br> <Out as <a class="trait" href="../futures/future/trait.IntoFuture.html" title="trait futures::future::IntoFuture">IntoFuture</a>>::<a class="type" href="../futures/future/trait.IntoFuture.html#associatedtype.Error" title="type futures::future::IntoFuture::Error">Error</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><Self::<a class="type" href="../actix_service/trait.NewService.html#associatedtype.Error" title="type actix_service::NewService::Error">Error</a>>, </span></code><a class='srclink' href='../src/actix_service/lib.rs.html#230-240' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Apply function to specified service and use it as a next service in chain. <a href="../actix_service/trait.NewService.html#method.apply_fn">Read more</a></p>
|
||||
</div><h4 id='method.and_then' class="method hidden"><code id='and_then.v'>fn <a href='../actix_service/trait.NewService.html#method.and_then' class='fnname'>and_then</a><F, B>(self, new_service: F) -> <a class="struct" href="../actix_service/and_then/struct.AndThenNewService.html" title="struct actix_service::and_then::AndThenNewService">AndThenNewService</a><Self, B> <span class="where fmt-newline">where<br> B: <a class="trait" href="../actix_service/trait.NewService.html" title="trait actix_service::NewService">NewService</a><Config = Self::<a class="type" href="../actix_service/trait.NewService.html#associatedtype.Config" title="type actix_service::NewService::Config">Config</a>, Request = Self::<a class="type" href="../actix_service/trait.NewService.html#associatedtype.Response" title="type actix_service::NewService::Response">Response</a>, Error = Self::<a class="type" href="../actix_service/trait.NewService.html#associatedtype.Error" title="type actix_service::NewService::Error">Error</a>, InitError = Self::<a class="type" href="../actix_service/trait.NewService.html#associatedtype.InitError" title="type actix_service::NewService::InitError">InitError</a>>,<br> F: <a class="trait" href="../actix_service/trait.IntoNewService.html" title="trait actix_service::IntoNewService">IntoNewService</a><B>, </span></code><a class='srclink' href='../src/actix_service/lib.rs.html#243-255' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Call another service after call to this one has resolved successfully.</p>
|
||||
</div><h4 id='method.from_err' class="method hidden"><code id='from_err.v'>fn <a href='../actix_service/trait.NewService.html#method.from_err' class='fnname'>from_err</a><E>(self) -> <a class="struct" href="../actix_service/from_err/struct.FromErrNewService.html" title="struct actix_service::from_err::FromErrNewService">FromErrNewService</a><Self, E> <span class="where fmt-newline">where<br> E: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><Self::<a class="type" href="../actix_service/trait.NewService.html#associatedtype.Error" title="type actix_service::NewService::Error">Error</a>>, </span></code><a class='srclink' href='../src/actix_service/lib.rs.html#263-269' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p><code>NewService</code> that create service to map this service's error and new service's init error to any error implementing <code>From</code> for this service<code>s </code>Error`. <a href="../actix_service/trait.NewService.html#method.from_err">Read more</a></p>
|
||||
</div><h4 id='method.then' class="method hidden"><code id='then.v'>fn <a href='../actix_service/trait.NewService.html#method.then' class='fnname'>then</a><F, B>(self, new_service: F) -> <a class="struct" href="../actix_service/then/struct.ThenNewService.html" title="struct actix_service::then::ThenNewService">ThenNewService</a><Self, B> <span class="where fmt-newline">where<br> B: <a class="trait" href="../actix_service/trait.NewService.html" title="trait actix_service::NewService">NewService</a><Config = Self::<a class="type" href="../actix_service/trait.NewService.html#associatedtype.Config" title="type actix_service::NewService::Config">Config</a>, Request = <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><Self::<a class="type" href="../actix_service/trait.NewService.html#associatedtype.Response" title="type actix_service::NewService::Response">Response</a>, Self::<a class="type" href="../actix_service/trait.NewService.html#associatedtype.Error" title="type actix_service::NewService::Error">Error</a>>, Error = Self::<a class="type" href="../actix_service/trait.NewService.html#associatedtype.Error" title="type actix_service::NewService::Error">Error</a>, InitError = Self::<a class="type" href="../actix_service/trait.NewService.html#associatedtype.InitError" title="type actix_service::NewService::InitError">InitError</a>>,<br> F: <a class="trait" href="../actix_service/trait.IntoNewService.html" title="trait actix_service::IntoNewService">IntoNewService</a><B>, </span></code><a class='srclink' href='../src/actix_service/lib.rs.html#277-289' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Create <code>NewService</code> to chain on a computation for when a call to the service finished, passing the result of the call to the next service <code>B</code>. <a href="../actix_service/trait.NewService.html#method.then">Read more</a></p>
|
||||
</div><h4 id='method.map' class="method hidden"><code id='map.v'>fn <a href='../actix_service/trait.NewService.html#method.map' class='fnname'>map</a><F, R>(self, f: F) -> <a class="struct" href="../actix_service/map/struct.MapNewService.html" title="struct actix_service::map::MapNewService">MapNewService</a><Self, F, R> <span class="where fmt-newline">where<br> F: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(Self::<a class="type" href="../actix_service/trait.NewService.html#associatedtype.Response" title="type actix_service::NewService::Response">Response</a>) -> R, </span></code><a class='srclink' href='../src/actix_service/lib.rs.html#293-299' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Map this service's output to a different type, returning a new service of the resulting type. <a href="../actix_service/trait.NewService.html#method.map">Read more</a></p>
|
||||
</div><h4 id='method.map_err' class="method hidden"><code id='map_err.v'>fn <a href='../actix_service/trait.NewService.html#method.map_err' class='fnname'>map_err</a><F, E>(self, f: F) -> <a class="struct" href="../actix_service/map_err/struct.MapErrNewService.html" title="struct actix_service::map_err::MapErrNewService">MapErrNewService</a><Self, F, E> <span class="where fmt-newline">where<br> F: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.Fn.html" title="trait core::ops::function::Fn">Fn</a>(Self::<a class="type" href="../actix_service/trait.NewService.html#associatedtype.Error" title="type actix_service::NewService::Error">Error</a>) -> E + <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>, </span></code><a class='srclink' href='../src/actix_service/lib.rs.html#302-308' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Map this service's error to a different error, returning a new service.</p>
|
||||
</div><h4 id='method.map_init_err' class="method hidden"><code id='map_init_err.v'>fn <a href='../actix_service/trait.NewService.html#method.map_init_err' class='fnname'>map_init_err</a><F, E>(self, f: F) -> <a class="struct" href="../actix_service/map_init_err/struct.MapInitErr.html" title="struct actix_service::map_init_err::MapInitErr">MapInitErr</a><Self, F, E> <span class="where fmt-newline">where<br> F: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.Fn.html" title="trait core::ops::function::Fn">Fn</a>(Self::<a class="type" href="../actix_service/trait.NewService.html#associatedtype.InitError" title="type actix_service::NewService::InitError">InitError</a>) -> E, </span></code><a class='srclink' href='../src/actix_service/lib.rs.html#311-317' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Map this factory's init error to a different error, returning a new service.</p>
|
||||
</div><h4 id='method.map_config' class="method hidden"><code id='map_config.v'>fn <a href='../actix_service/trait.NewService.html#method.map_config' class='fnname'>map_config</a><F, C>(self, f: F) -> <a class="struct" href="../actix_service/map_config/struct.MapConfig.html" title="struct actix_service::map_config::MapConfig">MapConfig</a><Self, F, C> <span class="where fmt-newline">where<br> F: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.Fn.html" title="trait core::ops::function::Fn">Fn</a>(<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>C) -> <a class="enum" href="../actix_service/map_config/enum.MappedConfig.html" title="enum actix_service::map_config::MappedConfig">MappedConfig</a><Self::<a class="type" href="../actix_service/trait.NewService.html#associatedtype.Config" title="type actix_service::NewService::Config">Config</a>>, </span></code><a class='srclink' href='../src/actix_service/lib.rs.html#320-326' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Map config to a different error, returning a new service.</p>
|
||||
</div><h4 id='method.unit_config' class="method hidden"><code id='unit_config.v'>fn <a href='../actix_service/trait.NewService.html#method.unit_config' class='fnname'>unit_config</a><C>(self) -> <a class="struct" href="../actix_service/map_config/struct.UnitConfig.html" title="struct actix_service::map_config::UnitConfig">UnitConfig</a><Self, C> <span class="where fmt-newline">where<br> Self: <a class="trait" href="../actix_service/trait.NewService.html" title="trait actix_service::NewService">NewService</a><Config = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>>, </span></code><a class='srclink' href='../src/actix_service/lib.rs.html#329-334' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Replace config with unit</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-RefUnwindSafe' class='impl'><code class='in-band'>impl<T> !<a class="trait" href="https://doc.rust-lang.org/nightly/std/panic/trait.RefUnwindSafe.html" title="trait std::panic::RefUnwindSafe">RefUnwindSafe</a> for <a class="struct" href="../actix_connect/struct.ResolverFactory.html" title="struct actix_connect::ResolverFactory">ResolverFactory</a><T></code><a href='#impl-RefUnwindSafe' class='anchor'></a></h3><div class='impl-items'></div><h3 id='impl-Send' class='impl'><code class='in-band'>impl<T> <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_connect/struct.ResolverFactory.html" title="struct actix_connect::ResolverFactory">ResolverFactory</a><T> <span class="where fmt-newline">where<br> T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a>, </span></code><a href='#impl-Send' class='anchor'></a></h3><div class='impl-items'></div><h3 id='impl-Sync' class='impl'><code class='in-band'>impl<T> <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_connect/struct.ResolverFactory.html" title="struct actix_connect::ResolverFactory">ResolverFactory</a><T> <span class="where fmt-newline">where<br> T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a>, </span></code><a href='#impl-Sync' class='anchor'></a></h3><div class='impl-items'></div><h3 id='impl-Unpin' class='impl'><code class='in-band'>impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a> for <a class="struct" href="../actix_connect/struct.ResolverFactory.html" title="struct actix_connect::ResolverFactory">ResolverFactory</a><T> <span class="where fmt-newline">where<br> T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a>, </span></code><a href='#impl-Unpin' class='anchor'></a></h3><div class='impl-items'></div><h3 id='impl-UnwindSafe' class='impl'><code class='in-band'>impl<T> !<a class="trait" href="https://doc.rust-lang.org/nightly/std/panic/trait.UnwindSafe.html" title="trait std::panic::UnwindSafe">UnwindSafe</a> for <a class="struct" href="../actix_connect/struct.ResolverFactory.html" title="struct actix_connect::ResolverFactory">ResolverFactory</a><T></code><a href='#impl-UnwindSafe' class='anchor'></a></h3><div class='impl-items'></div></div><h2 id='blanket-implementations' class='small-section-header'>Blanket Implementations<a href='#blanket-implementations' class='anchor'></a></h2><div id='blanket-implementations-list'><h3 id='impl-Any' class='impl'><code class='in-band'>impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html" title="trait core::any::Any">Any</a> for T <span class="where fmt-newline">where<br> T: 'static + ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></code><a href='#impl-Any' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/any.rs.html#108-112' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.type_id' class="method hidden"><code id='type_id.v'>fn <a href='https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id' class='fnname'>type_id</a>(&self) -> <a class="struct" href="https://doc.rust-lang.org/nightly/core/any/struct.TypeId.html" title="struct core::any::TypeId">TypeId</a></code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/any.rs.html#109-111' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Gets the <code>TypeId</code> of <code>self</code>. <a href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id">Read more</a></p>
|
||||
</div></div><h3 id='impl-Borrow%3CT%3E' class='impl'><code class='in-band'>impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a><T> for T <span class="where fmt-newline">where<br> T: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></code><a href='#impl-Borrow%3CT%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#213-217' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.borrow' class="method hidden"><code id='borrow.v'>fn <a href='https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow' class='fnname'>borrow</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>T</code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#214-216' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Immutably borrows from an owned value. <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow">Read more</a></p>
|
||||
</div></div><h3 id='impl-BorrowMut%3CT%3E' class='impl'><code class='in-band'>impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html" title="trait core::borrow::BorrowMut">BorrowMut</a><T> for T <span class="where fmt-newline">where<br> T: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></code><a href='#impl-BorrowMut%3CT%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#220-224' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.borrow_mut' class="method hidden"><code id='borrow_mut.v'>fn <a href='https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut' class='fnname'>borrow_mut</a>(&mut self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>T</code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#221-223' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Mutably borrows from an owned value. <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read more</a></p>
|
||||
</div></div><h3 id='impl-From%3CT%3E' class='impl'><code class='in-band'>impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><T> for T</code><a href='#impl-From%3CT%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#564-568' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.from' class="method hidden"><code id='from.v'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from' class='fnname'>from</a>(t: T) -> T</code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#565-567' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||||
</div></div><h3 id='impl-Into%3CU%3E' class='impl'><code class='in-band'>impl<T, U> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><U> for T <span class="where fmt-newline">where<br> U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><T>, </span></code><a href='#impl-Into%3CU%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#553-560' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.into' class="method hidden"><code id='into.v'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.Into.html#tymethod.into' class='fnname'>into</a>(self) -> U</code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#557-559' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||||
</div></div><h3 id='impl-IntoNewService%3CT%3E' class='impl'><code class='in-band'>impl<T> <a class="trait" href="../actix_service/trait.IntoNewService.html" title="trait actix_service::IntoNewService">IntoNewService</a><T> for T <span class="where fmt-newline">where<br> T: <a class="trait" href="../actix_service/trait.NewService.html" title="trait actix_service::NewService">NewService</a>, </span></code><a href='#impl-IntoNewService%3CT%3E' class='anchor'></a><a class='srclink' href='../src/actix_service/lib.rs.html#452-459' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.into_new_service' class="method hidden"><code id='into_new_service.v'>fn <a href='../actix_service/trait.IntoNewService.html#tymethod.into_new_service' class='fnname'>into_new_service</a>(self) -> T</code><a class='srclink' href='../src/actix_service/lib.rs.html#456-458' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Convert to an <code>NewService</code></p>
|
||||
</div></div><h3 id='impl-ToOwned' class='impl'><code class='in-band'>impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html" title="trait alloc::borrow::ToOwned">ToOwned</a> for T <span class="where fmt-newline">where<br> T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>, </span></code><a href='#impl-ToOwned' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/alloc/borrow.rs.html#80-92' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Owned' class="type"><code id='Owned.t'>type <a href='https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#associatedtype.Owned' class="type">Owned</a> = T</code></h4><div class='docblock'><p>The resulting type after obtaining ownership.</p>
|
||||
</div><h4 id='method.to_owned' class="method hidden"><code id='to_owned.v'>fn <a href='https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#tymethod.to_owned' class='fnname'>to_owned</a>(&self) -> T</code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/alloc/borrow.rs.html#85-87' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Creates owned data from borrowed data, usually by cloning. <a href="https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#tymethod.to_owned">Read more</a></p>
|
||||
</div><h4 id='method.clone_into' class="method hidden"><code id='clone_into.v'>fn <a href='https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#method.clone_into' class='fnname'>clone_into</a>(&self, target: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>T)</code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/alloc/borrow.rs.html#89-91' title='goto source code'>[src]</a></h4><div class='stability hidden'><div class='stab unstable'><details><summary><span class='emoji'>🔬</span> This is a nightly-only experimental API. (<code>toowned_clone_into</code>)</summary><p>recently added</p>
|
||||
</details></div></div><div class='docblock hidden'><p>Uses borrowed data to replace owned data, usually by cloning. <a href="https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#method.clone_into">Read more</a></p>
|
||||
</div></div><h3 id='impl-TryFrom%3CU%3E' class='impl'><code class='in-band'>impl<T, U> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><U> for T <span class="where fmt-newline">where<br> U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><T>, </span></code><a href='#impl-TryFrom%3CU%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#601-610' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Error-1' class="type"><code id='Error.t-1'>type <a href='https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error' class="type">Error</a> = <a class="enum" href="https://doc.rust-lang.org/nightly/core/convert/enum.Infallible.html" title="enum core::convert::Infallible">Infallible</a></code></h4><div class='docblock'><p>The type returned in the event of a conversion error.</p>
|
||||
</div><h4 id='method.try_from' class="method hidden"><code id='try_from.v'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#tymethod.try_from' class='fnname'>try_from</a>(value: U) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><T, <T as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><U>>::<a class="type" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>></code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#607-609' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||||
</div></div><h3 id='impl-TryInto%3CU%3E' class='impl'><code class='in-band'>impl<T, U> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html" title="trait core::convert::TryInto">TryInto</a><U> for T <span class="where fmt-newline">where<br> U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>, </span></code><a href='#impl-TryInto%3CU%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#587-596' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Error-2' class="type"><code id='Error.t-2'>type <a href='https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html#associatedtype.Error' class="type">Error</a> = <U as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>>::<a class="type" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a></code></h4><div class='docblock'><p>The type returned in the event of a conversion error.</p>
|
||||
</div><h4 id='method.try_into' class="method hidden"><code id='try_into.v'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html#tymethod.try_into' class='fnname'>try_into</a>(self) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><U, <U as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>>::<a class="type" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>></code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#593-595' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||||
</div></div></div></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../";window.currentCrate = "actix_connect";</script><script src="../aliases.js"></script><script src="../main.js"></script><script defer src="../search-index.js"></script></body></html>
|
||||
64
actix_connect/struct.ResolverOpts.html
Normal file
64
actix_connect/struct.ResolverOpts.html
Normal file
@@ -0,0 +1,64 @@
|
||||
<!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 `ResolverOpts` struct in crate `actix_connect`."><meta name="keywords" content="rust, rustlang, rust-lang, ResolverOpts"><title>actix_connect::ResolverOpts - 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><noscript><link rel="stylesheet" href="../noscript.css"></noscript><link rel="shortcut icon" href="../favicon.ico"><style type="text/css">#crate-search{background-image:url("../down-arrow.svg");}</style></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">☰</div><a href='../actix_connect/index.html'><div class='logo-container'><img src='../rust-logo.png' alt='logo'></div></a><p class='location'>Struct ResolverOpts</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#fields">Fields</a><div class="sidebar-links"><a href="#structfield.ndots">ndots</a><a href="#structfield.timeout">timeout</a><a href="#structfield.attempts">attempts</a><a href="#structfield.validate">validate</a><a href="#structfield.ip_strategy">ip_strategy</a><a href="#structfield.cache_size">cache_size</a><a href="#structfield.use_hosts_file">use_hosts_file</a><a href="#structfield.positive_min_ttl">positive_min_ttl</a><a href="#structfield.negative_min_ttl">negative_min_ttl</a><a href="#structfield.positive_max_ttl">positive_max_ttl</a><a href="#structfield.negative_max_ttl">negative_max_ttl</a><a href="#structfield.distrust_nx_responses">distrust_nx_responses</a><a href="#structfield.num_concurrent_reqs">num_concurrent_reqs</a></div><a class="sidebar-title" href="#implementations">Trait Implementations</a><div class="sidebar-links"><a href="#impl-Clone">Clone</a><a href="#impl-Copy">Copy</a><a href="#impl-Debug">Debug</a><a href="#impl-Default">Default</a><a href="#impl-Eq">Eq</a><a href="#impl-PartialEq%3CResolverOpts%3E">PartialEq<ResolverOpts></a><a href="#impl-StructuralEq">StructuralEq</a><a href="#impl-StructuralPartialEq">StructuralPartialEq</a></div><a class="sidebar-title" href="#synthetic-implementations">Auto Trait Implementations</a><div class="sidebar-links"><a href="#impl-RefUnwindSafe">RefUnwindSafe</a><a href="#impl-Send">Send</a><a href="#impl-Sync">Sync</a><a href="#impl-Unpin">Unpin</a><a href="#impl-UnwindSafe">UnwindSafe</a></div><a class="sidebar-title" href="#blanket-implementations">Blanket Implementations</a><div class="sidebar-links"><a href="#impl-Any">Any</a><a href="#impl-Borrow%3CT%3E">Borrow<T></a><a href="#impl-BorrowMut%3CT%3E">BorrowMut<T></a><a href="#impl-From%3CT%3E">From<T></a><a href="#impl-Into%3CU%3E">Into<U></a><a href="#impl-ToOwned">ToOwned</a><a href="#impl-TryFrom%3CU%3E">TryFrom<U></a><a href="#impl-TryInto%3CU%3E">TryInto<U></a></div></div><p class='location'><a href='index.html'>actix_connect</a></p><script>window.sidebarCurrent = {name: 'ResolverOpts', 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"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><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='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../src/trust_dns_resolver/config.rs.html#502-559' title='goto source code'>[src]</a></span><span class='in-band'>Struct <a href='index.html'>actix_connect</a>::<wbr><a class="struct" href=''>ResolverOpts</a></span></h1><div class="docblock type-decl hidden-by-usual-hider"><pre class='rust struct'>pub struct ResolverOpts {
|
||||
pub ndots: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>,
|
||||
pub timeout: <a class="struct" href="https://doc.rust-lang.org/nightly/core/time/struct.Duration.html" title="struct core::time::Duration">Duration</a>,
|
||||
pub attempts: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>,
|
||||
pub validate: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>,
|
||||
pub ip_strategy: <a class="enum" href="../trust_dns_resolver/config/enum.LookupIpStrategy.html" title="enum trust_dns_resolver::config::LookupIpStrategy">LookupIpStrategy</a>,
|
||||
pub cache_size: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>,
|
||||
pub use_hosts_file: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>,
|
||||
pub positive_min_ttl: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="https://doc.rust-lang.org/nightly/core/time/struct.Duration.html" title="struct core::time::Duration">Duration</a>>,
|
||||
pub negative_min_ttl: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="https://doc.rust-lang.org/nightly/core/time/struct.Duration.html" title="struct core::time::Duration">Duration</a>>,
|
||||
pub positive_max_ttl: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="https://doc.rust-lang.org/nightly/core/time/struct.Duration.html" title="struct core::time::Duration">Duration</a>>,
|
||||
pub negative_max_ttl: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="https://doc.rust-lang.org/nightly/core/time/struct.Duration.html" title="struct core::time::Duration">Duration</a>>,
|
||||
pub distrust_nx_responses: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>,
|
||||
pub num_concurrent_reqs: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>,
|
||||
// some fields omitted
|
||||
}</pre></div><div class='docblock'><p>Configuration for the Resolver</p>
|
||||
</div><h2 id='fields' class='fields small-section-header'>
|
||||
Fields<a href='#fields' class='anchor'></a></h2><span id="structfield.ndots" class="structfield small-section-header"><a href="#structfield.ndots" class="anchor field"></a><code id="ndots.v">ndots: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a></code></span><div class='docblock'><p>Sets the number of dots that must appear (unless it's a final dot representing the root)
|
||||
that must appear before a query is assumted to include the TLD. The default is one, which
|
||||
means that <code>www</code> would never be assumed to be a TLD, and would always be appended to either
|
||||
the search</p>
|
||||
</div><span id="structfield.timeout" class="structfield small-section-header"><a href="#structfield.timeout" class="anchor field"></a><code id="timeout.v">timeout: <a class="struct" href="https://doc.rust-lang.org/nightly/core/time/struct.Duration.html" title="struct core::time::Duration">Duration</a></code></span><div class='docblock'><p>Specify the timeout for a request. Defaults to 5 seconds</p>
|
||||
</div><span id="structfield.attempts" class="structfield small-section-header"><a href="#structfield.attempts" class="anchor field"></a><code id="attempts.v">attempts: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a></code></span><div class='docblock'><p>Number of attempts before giving up. Defaults to 2</p>
|
||||
</div><span id="structfield.validate" class="structfield small-section-header"><a href="#structfield.validate" class="anchor field"></a><code id="validate.v">validate: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code></span><div class='docblock'><p>Use DNSSec to validate the request</p>
|
||||
</div><span id="structfield.ip_strategy" class="structfield small-section-header"><a href="#structfield.ip_strategy" class="anchor field"></a><code id="ip_strategy.v">ip_strategy: <a class="enum" href="../trust_dns_resolver/config/enum.LookupIpStrategy.html" title="enum trust_dns_resolver::config::LookupIpStrategy">LookupIpStrategy</a></code></span><div class='docblock'><p>The ip_strategy for the Resolver to use when lookup Ipv4 or Ipv6 addresses</p>
|
||||
</div><span id="structfield.cache_size" class="structfield small-section-header"><a href="#structfield.cache_size" class="anchor field"></a><code id="cache_size.v">cache_size: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a></code></span><div class='docblock'><p>Cache size is in number of records (some records can be large)</p>
|
||||
</div><span id="structfield.use_hosts_file" class="structfield small-section-header"><a href="#structfield.use_hosts_file" class="anchor field"></a><code id="use_hosts_file.v">use_hosts_file: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code></span><div class='docblock'><p>Check /ect/hosts file before dns requery (only works for unix like OS)</p>
|
||||
</div><span id="structfield.positive_min_ttl" class="structfield small-section-header"><a href="#structfield.positive_min_ttl" class="anchor field"></a><code id="positive_min_ttl.v">positive_min_ttl: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="https://doc.rust-lang.org/nightly/core/time/struct.Duration.html" title="struct core::time::Duration">Duration</a>></code></span><div class='docblock'><p>Optional minimum TTL for positive responses.</p>
|
||||
<p>If this is set, any positive responses with a TTL lower than this value will have a TTL of
|
||||
<code>positive_min_ttl</code> instead. Otherwise, this will default to 0 seconds.</p>
|
||||
</div><span id="structfield.negative_min_ttl" class="structfield small-section-header"><a href="#structfield.negative_min_ttl" class="anchor field"></a><code id="negative_min_ttl.v">negative_min_ttl: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="https://doc.rust-lang.org/nightly/core/time/struct.Duration.html" title="struct core::time::Duration">Duration</a>></code></span><div class='docblock'><p>Optional minimum TTL for negative (<code>NXDOMAIN</code>) responses.</p>
|
||||
<p>If this is set, any positive responses with a TTL lower than this value will have a TTL of
|
||||
<code>negative_min_ttl</code> instead. Otherwise, this will default to 0 seconds.</p>
|
||||
</div><span id="structfield.positive_max_ttl" class="structfield small-section-header"><a href="#structfield.positive_max_ttl" class="anchor field"></a><code id="positive_max_ttl.v">positive_max_ttl: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="https://doc.rust-lang.org/nightly/core/time/struct.Duration.html" title="struct core::time::Duration">Duration</a>></code></span><div class='docblock'><p>Optional maximum TTL for positive responses.</p>
|
||||
<p>If this is set, any positive responses with a TTL higher than this value will have a TTL of
|
||||
<code>positive_max_ttl</code> instead. Otherwise, this will default to <a href="../dns_lru/const.MAX_TTL.html"><code>MAX_TTL</code></a> seconds.</p>
|
||||
</div><span id="structfield.negative_max_ttl" class="structfield small-section-header"><a href="#structfield.negative_max_ttl" class="anchor field"></a><code id="negative_max_ttl.v">negative_max_ttl: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="https://doc.rust-lang.org/nightly/core/time/struct.Duration.html" title="struct core::time::Duration">Duration</a>></code></span><div class='docblock'><p>Optional maximum TTL for negative (<code>NXDOMAIN</code>) responses.</p>
|
||||
<p>If this is set, any positive responses with a TTL higher than this value will have a TTL of
|
||||
<code>negative_max_ttl</code> instead. Otherwise, this will default to <a href="../dns_lru/const.MAX_TTL.html"><code>MAX_TTL</code></a> seconds.</p>
|
||||
</div><span id="structfield.distrust_nx_responses" class="structfield small-section-header"><a href="#structfield.distrust_nx_responses" class="anchor field"></a><code id="distrust_nx_responses.v">distrust_nx_responses: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code></span><div class='docblock'><p>Default is to distrust negative responses from upstream nameservers</p>
|
||||
<p>Currently only SERVFAIL responses are continued on, this may be expanded to include NXDOMAIN or NoError/Empty responses</p>
|
||||
</div><span id="structfield.num_concurrent_reqs" class="structfield small-section-header"><a href="#structfield.num_concurrent_reqs" class="anchor field"></a><code id="num_concurrent_reqs.v">num_concurrent_reqs: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a></code></span><div class='docblock'><p>Concurrent requests where more than one Nameserver is registered, the default is 2</p>
|
||||
<p>0 or 1 will configure this to execute all requests serially</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-Clone' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> for <a class="struct" href="../actix_connect/struct.ResolverOpts.html" title="struct actix_connect::ResolverOpts">ResolverOpts</a></code><a href='#impl-Clone' class='anchor'></a><a class='srclink' href='../src/trust_dns_resolver/config.rs.html#499' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.clone' class="method hidden"><code id='clone.v'>fn <a href='https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#tymethod.clone' class='fnname'>clone</a>(&self) -> <a class="struct" href="../actix_connect/struct.ResolverOpts.html" title="struct actix_connect::ResolverOpts">ResolverOpts</a></code><a class='srclink' href='../src/trust_dns_resolver/config.rs.html#499' title='goto source code'>[src]</a></h4><div class='docblock hidden'><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 hidden"><code id='clone_from.v'>fn <a href='https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#method.clone_from' class='fnname'>clone_from</a>(&mut self, source: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>Self)</code><span class='since' title='Stable since Rust version 1.0.0'>1.0.0</span><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/clone.rs.html#131-133' title='goto source code'>[src]</a></h4><div class='docblock hidden'><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-Copy' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Copy.html" title="trait core::marker::Copy">Copy</a> for <a class="struct" href="../actix_connect/struct.ResolverOpts.html" title="struct actix_connect::ResolverOpts">ResolverOpts</a></code><a href='#impl-Copy' class='anchor'></a><a class='srclink' href='../src/trust_dns_resolver/config.rs.html#499' title='goto source code'>[src]</a></h3><div class='impl-items'></div><h3 id='impl-Debug' class='impl'><code class='in-band'>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_connect/struct.ResolverOpts.html" title="struct actix_connect::ResolverOpts">ResolverOpts</a></code><a href='#impl-Debug' class='anchor'></a><a class='srclink' href='../src/trust_dns_resolver/config.rs.html#499' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.fmt' class="method hidden"><code id='fmt.v'>fn <a href='https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt' class='fnname'>fmt</a>(&self, f: &mut <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<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>></code><a class='srclink' href='../src/trust_dns_resolver/config.rs.html#499' title='goto source code'>[src]</a></h4><div class='docblock hidden'><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-Default' class='impl'><code class='in-band'>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_connect/struct.ResolverOpts.html" title="struct actix_connect::ResolverOpts">ResolverOpts</a></code><a href='#impl-Default' class='anchor'></a><a class='srclink' href='../src/trust_dns_resolver/config.rs.html#561-585' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.default' class="method"><code id='default.v'>fn <a href='https://doc.rust-lang.org/nightly/core/default/trait.Default.html#tymethod.default' class='fnname'>default</a>() -> <a class="struct" href="../actix_connect/struct.ResolverOpts.html" title="struct actix_connect::ResolverOpts">ResolverOpts</a></code><a class='srclink' href='../src/trust_dns_resolver/config.rs.html#565-584' title='goto source code'>[src]</a></h4><div class='docblock'><p>Default values for the Reolver configuration.</p>
|
||||
<p>This follows the resolv.conf defaults as defined in the <a href="http://man7.org/linux/man-pages/man5/resolv.conf.5.html">Linux man pages</a></p>
|
||||
</div></div><h3 id='impl-Eq' class='impl'><code class='in-band'>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_connect/struct.ResolverOpts.html" title="struct actix_connect::ResolverOpts">ResolverOpts</a></code><a href='#impl-Eq' class='anchor'></a><a class='srclink' href='../src/trust_dns_resolver/config.rs.html#499' title='goto source code'>[src]</a></h3><div class='impl-items'></div><h3 id='impl-PartialEq%3CResolverOpts%3E' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a><<a class="struct" href="../actix_connect/struct.ResolverOpts.html" title="struct actix_connect::ResolverOpts">ResolverOpts</a>> for <a class="struct" href="../actix_connect/struct.ResolverOpts.html" title="struct actix_connect::ResolverOpts">ResolverOpts</a></code><a href='#impl-PartialEq%3CResolverOpts%3E' class='anchor'></a><a class='srclink' href='../src/trust_dns_resolver/config.rs.html#499' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.eq' class="method hidden"><code id='eq.v'>fn <a href='https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html#tymethod.eq' class='fnname'>eq</a>(&self, other: &<a class="struct" href="../actix_connect/struct.ResolverOpts.html" title="struct actix_connect::ResolverOpts">ResolverOpts</a>) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><a class='srclink' href='../src/trust_dns_resolver/config.rs.html#499' title='goto source code'>[src]</a></h4><div class='docblock hidden'><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 hidden"><code id='ne.v'>fn <a href='https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html#method.ne' class='fnname'>ne</a>(&self, other: &<a class="struct" href="../actix_connect/struct.ResolverOpts.html" title="struct actix_connect::ResolverOpts">ResolverOpts</a>) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><a class='srclink' href='../src/trust_dns_resolver/config.rs.html#499' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>This method tests for <code>!=</code>.</p>
|
||||
</div></div><h3 id='impl-StructuralEq' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.StructuralEq.html" title="trait core::marker::StructuralEq">StructuralEq</a> for <a class="struct" href="../actix_connect/struct.ResolverOpts.html" title="struct actix_connect::ResolverOpts">ResolverOpts</a></code><a href='#impl-StructuralEq' class='anchor'></a><a class='srclink' href='../src/trust_dns_resolver/config.rs.html#499' title='goto source code'>[src]</a></h3><div class='impl-items'></div><h3 id='impl-StructuralPartialEq' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.StructuralPartialEq.html" title="trait core::marker::StructuralPartialEq">StructuralPartialEq</a> for <a class="struct" href="../actix_connect/struct.ResolverOpts.html" title="struct actix_connect::ResolverOpts">ResolverOpts</a></code><a href='#impl-StructuralPartialEq' class='anchor'></a><a class='srclink' href='../src/trust_dns_resolver/config.rs.html#499' title='goto source code'>[src]</a></h3><div class='impl-items'></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-RefUnwindSafe' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/std/panic/trait.RefUnwindSafe.html" title="trait std::panic::RefUnwindSafe">RefUnwindSafe</a> for <a class="struct" href="../actix_connect/struct.ResolverOpts.html" title="struct actix_connect::ResolverOpts">ResolverOpts</a></code><a href='#impl-RefUnwindSafe' class='anchor'></a></h3><div class='impl-items'></div><h3 id='impl-Send' class='impl'><code class='in-band'>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_connect/struct.ResolverOpts.html" title="struct actix_connect::ResolverOpts">ResolverOpts</a></code><a href='#impl-Send' class='anchor'></a></h3><div class='impl-items'></div><h3 id='impl-Sync' class='impl'><code class='in-band'>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_connect/struct.ResolverOpts.html" title="struct actix_connect::ResolverOpts">ResolverOpts</a></code><a href='#impl-Sync' class='anchor'></a></h3><div class='impl-items'></div><h3 id='impl-Unpin' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a> for <a class="struct" href="../actix_connect/struct.ResolverOpts.html" title="struct actix_connect::ResolverOpts">ResolverOpts</a></code><a href='#impl-Unpin' class='anchor'></a></h3><div class='impl-items'></div><h3 id='impl-UnwindSafe' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/std/panic/trait.UnwindSafe.html" title="trait std::panic::UnwindSafe">UnwindSafe</a> for <a class="struct" href="../actix_connect/struct.ResolverOpts.html" title="struct actix_connect::ResolverOpts">ResolverOpts</a></code><a href='#impl-UnwindSafe' class='anchor'></a></h3><div class='impl-items'></div></div><h2 id='blanket-implementations' class='small-section-header'>Blanket Implementations<a href='#blanket-implementations' class='anchor'></a></h2><div id='blanket-implementations-list'><h3 id='impl-Any' class='impl'><code class='in-band'>impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html" title="trait core::any::Any">Any</a> for T <span class="where fmt-newline">where<br> T: 'static + ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></code><a href='#impl-Any' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/any.rs.html#108-112' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.type_id' class="method hidden"><code id='type_id.v'>fn <a href='https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id' class='fnname'>type_id</a>(&self) -> <a class="struct" href="https://doc.rust-lang.org/nightly/core/any/struct.TypeId.html" title="struct core::any::TypeId">TypeId</a></code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/any.rs.html#109-111' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Gets the <code>TypeId</code> of <code>self</code>. <a href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id">Read more</a></p>
|
||||
</div></div><h3 id='impl-Borrow%3CT%3E' class='impl'><code class='in-band'>impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a><T> for T <span class="where fmt-newline">where<br> T: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></code><a href='#impl-Borrow%3CT%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#213-217' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.borrow' class="method hidden"><code id='borrow.v'>fn <a href='https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow' class='fnname'>borrow</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>T</code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#214-216' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Immutably borrows from an owned value. <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow">Read more</a></p>
|
||||
</div></div><h3 id='impl-BorrowMut%3CT%3E' class='impl'><code class='in-band'>impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html" title="trait core::borrow::BorrowMut">BorrowMut</a><T> for T <span class="where fmt-newline">where<br> T: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></code><a href='#impl-BorrowMut%3CT%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#220-224' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.borrow_mut' class="method hidden"><code id='borrow_mut.v'>fn <a href='https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut' class='fnname'>borrow_mut</a>(&mut self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>T</code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#221-223' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Mutably borrows from an owned value. <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read more</a></p>
|
||||
</div></div><h3 id='impl-From%3CT%3E' class='impl'><code class='in-band'>impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><T> for T</code><a href='#impl-From%3CT%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#564-568' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.from' class="method hidden"><code id='from.v'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from' class='fnname'>from</a>(t: T) -> T</code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#565-567' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||||
</div></div><h3 id='impl-Into%3CU%3E' class='impl'><code class='in-band'>impl<T, U> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><U> for T <span class="where fmt-newline">where<br> U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><T>, </span></code><a href='#impl-Into%3CU%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#553-560' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.into' class="method hidden"><code id='into.v'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.Into.html#tymethod.into' class='fnname'>into</a>(self) -> U</code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#557-559' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||||
</div></div><h3 id='impl-ToOwned' class='impl'><code class='in-band'>impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html" title="trait alloc::borrow::ToOwned">ToOwned</a> for T <span class="where fmt-newline">where<br> T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>, </span></code><a href='#impl-ToOwned' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/alloc/borrow.rs.html#80-92' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Owned' class="type"><code id='Owned.t'>type <a href='https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#associatedtype.Owned' class="type">Owned</a> = T</code></h4><div class='docblock'><p>The resulting type after obtaining ownership.</p>
|
||||
</div><h4 id='method.to_owned' class="method hidden"><code id='to_owned.v'>fn <a href='https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#tymethod.to_owned' class='fnname'>to_owned</a>(&self) -> T</code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/alloc/borrow.rs.html#85-87' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Creates owned data from borrowed data, usually by cloning. <a href="https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#tymethod.to_owned">Read more</a></p>
|
||||
</div><h4 id='method.clone_into' class="method hidden"><code id='clone_into.v'>fn <a href='https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#method.clone_into' class='fnname'>clone_into</a>(&self, target: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>T)</code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/alloc/borrow.rs.html#89-91' title='goto source code'>[src]</a></h4><div class='stability hidden'><div class='stab unstable'><details><summary><span class='emoji'>🔬</span> This is a nightly-only experimental API. (<code>toowned_clone_into</code>)</summary><p>recently added</p>
|
||||
</details></div></div><div class='docblock hidden'><p>Uses borrowed data to replace owned data, usually by cloning. <a href="https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#method.clone_into">Read more</a></p>
|
||||
</div></div><h3 id='impl-TryFrom%3CU%3E' class='impl'><code class='in-band'>impl<T, U> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><U> for T <span class="where fmt-newline">where<br> U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><T>, </span></code><a href='#impl-TryFrom%3CU%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#601-610' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Error' class="type"><code id='Error.t'>type <a href='https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error' class="type">Error</a> = <a class="enum" href="https://doc.rust-lang.org/nightly/core/convert/enum.Infallible.html" title="enum core::convert::Infallible">Infallible</a></code></h4><div class='docblock'><p>The type returned in the event of a conversion error.</p>
|
||||
</div><h4 id='method.try_from' class="method hidden"><code id='try_from.v'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#tymethod.try_from' class='fnname'>try_from</a>(value: U) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><T, <T as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><U>>::<a class="type" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>></code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#607-609' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||||
</div></div><h3 id='impl-TryInto%3CU%3E' class='impl'><code class='in-band'>impl<T, U> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html" title="trait core::convert::TryInto">TryInto</a><U> for T <span class="where fmt-newline">where<br> U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>, </span></code><a href='#impl-TryInto%3CU%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#587-596' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Error-1' class="type"><code id='Error.t-1'>type <a href='https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html#associatedtype.Error' class="type">Error</a> = <U as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>>::<a class="type" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a></code></h4><div class='docblock'><p>The type returned in the event of a conversion error.</p>
|
||||
</div><h4 id='method.try_into' class="method hidden"><code id='try_into.v'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html#tymethod.try_into' class='fnname'>try_into</a>(self) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><U, <U as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>>::<a class="type" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>></code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#593-595' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||||
</div></div></div></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../";window.currentCrate = "actix_connect";</script><script src="../aliases.js"></script><script src="../main.js"></script><script defer src="../search-index.js"></script></body></html>
|
||||
29
actix_connect/struct.TcpConnectService.html
Normal file
29
actix_connect/struct.TcpConnectService.html
Normal file
File diff suppressed because one or more lines are too long
32
actix_connect/struct.TcpConnector.html
Normal file
32
actix_connect/struct.TcpConnector.html
Normal 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 `TcpConnector` struct in crate `actix_connect`."><meta name="keywords" content="rust, rustlang, rust-lang, TcpConnector"><title>actix_connect::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><noscript><link rel="stylesheet" href="../noscript.css"></noscript><link rel="shortcut icon" href="../favicon.ico"><style type="text/css">#crate-search{background-image:url("../down-arrow.svg");}</style></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">☰</div><a href='../actix_connect/index.html'><div class='logo-container'><img src='../rust-logo.png' alt='logo'></div></a><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></div><a class="sidebar-title" href="#implementations">Trait Implementations</a><div class="sidebar-links"><a href="#impl-Clone">Clone</a><a href="#impl-Debug">Debug</a><a href="#impl-Default">Default</a><a href="#impl-Service">Service</a></div><a class="sidebar-title" href="#synthetic-implementations">Auto Trait Implementations</a><div class="sidebar-links"><a href="#impl-RefUnwindSafe">RefUnwindSafe</a><a href="#impl-Send">Send</a><a href="#impl-Sync">Sync</a><a href="#impl-Unpin">Unpin</a><a href="#impl-UnwindSafe">UnwindSafe</a></div><a class="sidebar-title" href="#blanket-implementations">Blanket Implementations</a><div class="sidebar-links"><a href="#impl-Any">Any</a><a href="#impl-Borrow%3CT%3E">Borrow<T></a><a href="#impl-BorrowMut%3CT%3E">BorrowMut<T></a><a href="#impl-From%3CT%3E">From<T></a><a href="#impl-Into%3CU%3E">Into<U></a><a href="#impl-IntoService%3CT%3E">IntoService<T></a><a href="#impl-ServiceExt">ServiceExt</a><a href="#impl-ToOwned">ToOwned</a><a href="#impl-TryFrom%3CU%3E">TryFrom<U></a><a href="#impl-TryInto%3CU%3E">TryInto<U></a></div></div><p class='location'><a href='index.html'>actix_connect</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"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><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='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../src/actix_connect/connector.rs.html#56' title='goto source code'>[src]</a></span><span class='in-band'>Struct <a href='index.html'>actix_connect</a>::<wbr><a class="struct" href=''>TcpConnector</a></span></h1><div class="docblock type-decl hidden-by-usual-hider"><pre class='rust struct'>pub struct TcpConnector<T>(_);</pre></div><div class='docblock'><p>Tcp connector service</p>
|
||||
</div><h2 id='methods' class='small-section-header'>Methods<a href='#methods' class='anchor'></a></h2><h3 id='impl' class='impl'><code class='in-band'>impl<T> <a class="struct" href="../actix_connect/struct.TcpConnector.html" title="struct actix_connect::TcpConnector">TcpConnector</a><T></code><a href='#impl' class='anchor'></a><a class='srclink' href='../src/actix_connect/connector.rs.html#58-62' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.new' class="method"><code id='new.v'>pub fn <a href='#method.new' class='fnname'>new</a>() -> Self</code><a class='srclink' href='../src/actix_connect/connector.rs.html#59-61' title='goto source code'>[src]</a></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-Clone' class='impl'><code class='in-band'>impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> for <a class="struct" href="../actix_connect/struct.TcpConnector.html" title="struct actix_connect::TcpConnector">TcpConnector</a><T></code><a href='#impl-Clone' class='anchor'></a><a class='srclink' href='../src/actix_connect/connector.rs.html#64-68' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.clone' class="method hidden"><code id='clone.v'>fn <a href='https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#tymethod.clone' class='fnname'>clone</a>(&self) -> Self</code><a class='srclink' href='../src/actix_connect/connector.rs.html#65-67' title='goto source code'>[src]</a></h4><div class='docblock hidden'><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 hidden"><code id='clone_from.v'>fn <a href='https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#method.clone_from' class='fnname'>clone_from</a>(&mut self, source: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>Self)</code><span class='since' title='Stable since Rust version 1.0.0'>1.0.0</span><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/clone.rs.html#131-133' title='goto source code'>[src]</a></h4><div class='docblock hidden'><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-Debug' class='impl'><code class='in-band'>impl<T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a>> <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_connect/struct.TcpConnector.html" title="struct actix_connect::TcpConnector">TcpConnector</a><T></code><a href='#impl-Debug' class='anchor'></a><a class='srclink' href='../src/actix_connect/connector.rs.html#55' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.fmt' class="method hidden"><code id='fmt.v'>fn <a href='https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt' class='fnname'>fmt</a>(&self, f: &mut <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a>) -> <a class="type" href="https://doc.rust-lang.org/nightly/core/fmt/type.Result.html" title="type core::fmt::Result">Result</a></code><a class='srclink' href='../src/actix_connect/connector.rs.html#55' title='goto source code'>[src]</a></h4><div class='docblock hidden'><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-Default' class='impl'><code class='in-band'>impl<T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/default/trait.Default.html" title="trait core::default::Default">Default</a>> <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_connect/struct.TcpConnector.html" title="struct actix_connect::TcpConnector">TcpConnector</a><T></code><a href='#impl-Default' class='anchor'></a><a class='srclink' href='../src/actix_connect/connector.rs.html#55' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.default' class="method hidden"><code id='default.v'>fn <a href='https://doc.rust-lang.org/nightly/core/default/trait.Default.html#tymethod.default' class='fnname'>default</a>() -> <a class="struct" href="../actix_connect/struct.TcpConnector.html" title="struct actix_connect::TcpConnector">TcpConnector</a><T></code><a class='srclink' href='../src/actix_connect/connector.rs.html#55' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Returns the "default value" 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-Service' class='impl'><code class='in-band'>impl<T: <a class="trait" href="../actix_connect/trait.Address.html" title="trait actix_connect::Address">Address</a>> <a class="trait" href="../actix_service/trait.Service.html" title="trait actix_service::Service">Service</a> for <a class="struct" href="../actix_connect/struct.TcpConnector.html" title="struct actix_connect::TcpConnector">TcpConnector</a><T></code><a href='#impl-Service' class='anchor'></a><a class='srclink' href='../src/actix_connect/connector.rs.html#70-91' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Request' class="type"><code id='Request.t'>type <a href='../actix_service/trait.Service.html#associatedtype.Request' class="type">Request</a> = <a class="struct" href="../actix_connect/struct.Connect.html" title="struct actix_connect::Connect">Connect</a><T></code></h4><div class='docblock'><p>Requests handled by the service.</p>
|
||||
</div><h4 id='associatedtype.Response' class="type"><code id='Response.t'>type <a href='../actix_service/trait.Service.html#associatedtype.Response' class="type">Response</a> = <a class="struct" href="../actix_connect/struct.Connection.html" title="struct actix_connect::Connection">Connection</a><T, <a class="struct" href="../tokio_tcp/stream/struct.TcpStream.html" title="struct tokio_tcp::stream::TcpStream">TcpStream</a>></code></h4><div class='docblock'><p>Responses given by the service.</p>
|
||||
</div><h4 id='associatedtype.Error' class="type"><code id='Error.t'>type <a href='../actix_service/trait.Service.html#associatedtype.Error' class="type">Error</a> = <a class="enum" href="../actix_connect/enum.ConnectError.html" title="enum actix_connect::ConnectError">ConnectError</a></code></h4><div class='docblock'><p>Errors produced by the service.</p>
|
||||
</div><h4 id='associatedtype.Future' class="type"><code id='Future.t'>type <a href='../actix_service/trait.Service.html#associatedtype.Future' class="type">Future</a> = <a class="enum" href="../futures/future/either/enum.Either.html" title="enum futures::future::either::Either">Either</a><TcpConnectorResponse<T>, <a class="struct" href="../futures/future/result_/struct.FutureResult.html" title="struct futures::future::result_::FutureResult">FutureResult</a><Self::<a class="type" href="../actix_service/trait.Service.html#associatedtype.Response" title="type actix_service::Service::Response">Response</a>, Self::<a class="type" href="../actix_service/trait.Service.html#associatedtype.Error" title="type actix_service::Service::Error">Error</a>>></code></h4><div class='docblock'><p>The future response value.</p>
|
||||
</div><h4 id='method.poll_ready' class="method hidden"><code id='poll_ready.v'>fn <a href='../actix_service/trait.Service.html#tymethod.poll_ready' class='fnname'>poll_ready</a>(&mut self) -> <a class="type" href="../futures/poll/type.Poll.html" title="type futures::poll::Poll">Poll</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, Self::<a class="type" href="../actix_service/trait.Service.html#associatedtype.Error" title="type actix_service::Service::Error">Error</a>></code><a class='srclink' href='../src/actix_connect/connector.rs.html#76-78' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Returns <code>Ready</code> when the service is able to process requests. <a href="../actix_service/trait.Service.html#tymethod.poll_ready">Read more</a></p>
|
||||
</div><h4 id='method.call' class="method hidden"><code id='call.v'>fn <a href='../actix_service/trait.Service.html#tymethod.call' class='fnname'>call</a>(&mut self, req: <a class="struct" href="../actix_connect/struct.Connect.html" title="struct actix_connect::Connect">Connect</a><T>) -> Self::<a class="type" href="../actix_service/trait.Service.html#associatedtype.Future" title="type actix_service::Service::Future">Future</a></code><a class='srclink' href='../src/actix_connect/connector.rs.html#80-90' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Process the request and return the response asynchronously. <a href="../actix_service/trait.Service.html#tymethod.call">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-RefUnwindSafe' class='impl'><code class='in-band'>impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/std/panic/trait.RefUnwindSafe.html" title="trait std::panic::RefUnwindSafe">RefUnwindSafe</a> for <a class="struct" href="../actix_connect/struct.TcpConnector.html" title="struct actix_connect::TcpConnector">TcpConnector</a><T> <span class="where fmt-newline">where<br> T: <a class="trait" href="https://doc.rust-lang.org/nightly/std/panic/trait.RefUnwindSafe.html" title="trait std::panic::RefUnwindSafe">RefUnwindSafe</a>, </span></code><a href='#impl-RefUnwindSafe' class='anchor'></a></h3><div class='impl-items'></div><h3 id='impl-Send' class='impl'><code class='in-band'>impl<T> <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_connect/struct.TcpConnector.html" title="struct actix_connect::TcpConnector">TcpConnector</a><T> <span class="where fmt-newline">where<br> T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a>, </span></code><a href='#impl-Send' class='anchor'></a></h3><div class='impl-items'></div><h3 id='impl-Sync' class='impl'><code class='in-band'>impl<T> <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_connect/struct.TcpConnector.html" title="struct actix_connect::TcpConnector">TcpConnector</a><T> <span class="where fmt-newline">where<br> T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a>, </span></code><a href='#impl-Sync' class='anchor'></a></h3><div class='impl-items'></div><h3 id='impl-Unpin' class='impl'><code class='in-band'>impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a> for <a class="struct" href="../actix_connect/struct.TcpConnector.html" title="struct actix_connect::TcpConnector">TcpConnector</a><T> <span class="where fmt-newline">where<br> T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a>, </span></code><a href='#impl-Unpin' class='anchor'></a></h3><div class='impl-items'></div><h3 id='impl-UnwindSafe' class='impl'><code class='in-band'>impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/std/panic/trait.UnwindSafe.html" title="trait std::panic::UnwindSafe">UnwindSafe</a> for <a class="struct" href="../actix_connect/struct.TcpConnector.html" title="struct actix_connect::TcpConnector">TcpConnector</a><T> <span class="where fmt-newline">where<br> T: <a class="trait" href="https://doc.rust-lang.org/nightly/std/panic/trait.UnwindSafe.html" title="trait std::panic::UnwindSafe">UnwindSafe</a>, </span></code><a href='#impl-UnwindSafe' class='anchor'></a></h3><div class='impl-items'></div></div><h2 id='blanket-implementations' class='small-section-header'>Blanket Implementations<a href='#blanket-implementations' class='anchor'></a></h2><div id='blanket-implementations-list'><h3 id='impl-Any' class='impl'><code class='in-band'>impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html" title="trait core::any::Any">Any</a> for T <span class="where fmt-newline">where<br> T: 'static + ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></code><a href='#impl-Any' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/any.rs.html#108-112' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.type_id' class="method hidden"><code id='type_id.v'>fn <a href='https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id' class='fnname'>type_id</a>(&self) -> <a class="struct" href="https://doc.rust-lang.org/nightly/core/any/struct.TypeId.html" title="struct core::any::TypeId">TypeId</a></code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/any.rs.html#109-111' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Gets the <code>TypeId</code> of <code>self</code>. <a href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id">Read more</a></p>
|
||||
</div></div><h3 id='impl-Borrow%3CT%3E' class='impl'><code class='in-band'>impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a><T> for T <span class="where fmt-newline">where<br> T: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></code><a href='#impl-Borrow%3CT%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#213-217' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.borrow' class="method hidden"><code id='borrow.v'>fn <a href='https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow' class='fnname'>borrow</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>T</code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#214-216' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Immutably borrows from an owned value. <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow">Read more</a></p>
|
||||
</div></div><h3 id='impl-BorrowMut%3CT%3E' class='impl'><code class='in-band'>impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html" title="trait core::borrow::BorrowMut">BorrowMut</a><T> for T <span class="where fmt-newline">where<br> T: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></code><a href='#impl-BorrowMut%3CT%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#220-224' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.borrow_mut' class="method hidden"><code id='borrow_mut.v'>fn <a href='https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut' class='fnname'>borrow_mut</a>(&mut self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>T</code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#221-223' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Mutably borrows from an owned value. <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read more</a></p>
|
||||
</div></div><h3 id='impl-From%3CT%3E' class='impl'><code class='in-band'>impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><T> for T</code><a href='#impl-From%3CT%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#564-568' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.from' class="method hidden"><code id='from.v'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from' class='fnname'>from</a>(t: T) -> T</code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#565-567' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||||
</div></div><h3 id='impl-Into%3CU%3E' class='impl'><code class='in-band'>impl<T, U> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><U> for T <span class="where fmt-newline">where<br> U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><T>, </span></code><a href='#impl-Into%3CU%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#553-560' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.into' class="method hidden"><code id='into.v'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.Into.html#tymethod.into' class='fnname'>into</a>(self) -> U</code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#557-559' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||||
</div></div><h3 id='impl-IntoService%3CT%3E' class='impl'><code class='in-band'>impl<T> <a class="trait" href="../actix_service/trait.IntoService.html" title="trait actix_service::IntoService">IntoService</a><T> for T <span class="where fmt-newline">where<br> T: <a class="trait" href="../actix_service/trait.Service.html" title="trait actix_service::Service">Service</a>, </span></code><a href='#impl-IntoService%3CT%3E' class='anchor'></a><a class='srclink' href='../src/actix_service/lib.rs.html#443-450' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.into_service' class="method hidden"><code id='into_service.v'>fn <a href='../actix_service/trait.IntoService.html#tymethod.into_service' class='fnname'>into_service</a>(self) -> T</code><a class='srclink' href='../src/actix_service/lib.rs.html#447-449' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Convert to a <code>Service</code></p>
|
||||
</div></div><h3 id='impl-ServiceExt' class='impl'><code class='in-band'>impl<T> <a class="trait" href="../actix_service/trait.ServiceExt.html" title="trait actix_service::ServiceExt">ServiceExt</a> for T <span class="where fmt-newline">where<br> T: <a class="trait" href="../actix_service/trait.Service.html" title="trait actix_service::Service">Service</a> + ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></code><a href='#impl-ServiceExt' class='anchor'></a><a class='srclink' href='../src/actix_service/lib.rs.html#174' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.apply_fn' class="method hidden"><code id='apply_fn.v'>fn <a href='../actix_service/trait.ServiceExt.html#method.apply_fn' class='fnname'>apply_fn</a><F, B, B1, Out>(<br> self, <br> service: B1, <br> f: F<br>) -> AndThenApply<Self, B, F, Out> <span class="where fmt-newline">where<br> B: <a class="trait" href="../actix_service/trait.Service.html" title="trait actix_service::Service">Service</a><Error = Self::<a class="type" href="../actix_service/trait.Service.html#associatedtype.Error" title="type actix_service::Service::Error">Error</a>>,<br> B1: <a class="trait" href="../actix_service/trait.IntoService.html" title="trait actix_service::IntoService">IntoService</a><B>,<br> F: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(Self::<a class="type" href="../actix_service/trait.Service.html#associatedtype.Response" title="type actix_service::Service::Response">Response</a>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>B) -> Out,<br> Out: <a class="trait" href="../futures/future/trait.IntoFuture.html" title="trait futures::future::IntoFuture">IntoFuture</a>,<br> <Out as <a class="trait" href="../futures/future/trait.IntoFuture.html" title="trait futures::future::IntoFuture">IntoFuture</a>>::<a class="type" href="../futures/future/trait.IntoFuture.html#associatedtype.Error" title="type futures::future::IntoFuture::Error">Error</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><Self::<a class="type" href="../actix_service/trait.Service.html#associatedtype.Error" title="type actix_service::Service::Error">Error</a>>, </span></code><a class='srclink' href='../src/actix_service/lib.rs.html#84-94' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Apply function to specified service and use it as a next service in chain. <a href="../actix_service/trait.ServiceExt.html#method.apply_fn">Read more</a></p>
|
||||
</div><h4 id='method.and_then' class="method hidden"><code id='and_then.v'>fn <a href='../actix_service/trait.ServiceExt.html#method.and_then' class='fnname'>and_then</a><F, B>(self, service: F) -> <a class="struct" href="../actix_service/and_then/struct.AndThen.html" title="struct actix_service::and_then::AndThen">AndThen</a><Self, B> <span class="where fmt-newline">where<br> B: <a class="trait" href="../actix_service/trait.Service.html" title="trait actix_service::Service">Service</a><Request = Self::<a class="type" href="../actix_service/trait.Service.html#associatedtype.Response" title="type actix_service::Service::Response">Response</a>, Error = Self::<a class="type" href="../actix_service/trait.Service.html#associatedtype.Error" title="type actix_service::Service::Error">Error</a>>,<br> F: <a class="trait" href="../actix_service/trait.IntoService.html" title="trait actix_service::IntoService">IntoService</a><B>, </span></code><a class='srclink' href='../src/actix_service/lib.rs.html#105-112' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Call another service after call to this one has resolved successfully. <a href="../actix_service/trait.ServiceExt.html#method.and_then">Read more</a></p>
|
||||
</div><h4 id='method.from_err' class="method hidden"><code id='from_err.v'>fn <a href='../actix_service/trait.ServiceExt.html#method.from_err' class='fnname'>from_err</a><E>(self) -> <a class="struct" href="../actix_service/from_err/struct.FromErr.html" title="struct actix_service::from_err::FromErr">FromErr</a><Self, E> <span class="where fmt-newline">where<br> E: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><Self::<a class="type" href="../actix_service/trait.Service.html#associatedtype.Error" title="type actix_service::Service::Error">Error</a>>, </span></code><a class='srclink' href='../src/actix_service/lib.rs.html#119-125' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Map this service's error to any error implementing <code>From</code> for this service<code>s </code>Error`. <a href="../actix_service/trait.ServiceExt.html#method.from_err">Read more</a></p>
|
||||
</div><h4 id='method.then' class="method hidden"><code id='then.v'>fn <a href='../actix_service/trait.ServiceExt.html#method.then' class='fnname'>then</a><B>(self, service: B) -> <a class="struct" href="../actix_service/then/struct.Then.html" title="struct actix_service::then::Then">Then</a><Self, B> <span class="where fmt-newline">where<br> B: <a class="trait" href="../actix_service/trait.Service.html" title="trait actix_service::Service">Service</a><Request = <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><Self::<a class="type" href="../actix_service/trait.Service.html#associatedtype.Response" title="type actix_service::Service::Response">Response</a>, Self::<a class="type" href="../actix_service/trait.Service.html#associatedtype.Error" title="type actix_service::Service::Error">Error</a>>, Error = Self::<a class="type" href="../actix_service/trait.Service.html#associatedtype.Error" title="type actix_service::Service::Error">Error</a>>, </span></code><a class='srclink' href='../src/actix_service/lib.rs.html#132-138' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Chain on a computation for when a call to the service finished, passing the result of the call to the next service <code>B</code>. <a href="../actix_service/trait.ServiceExt.html#method.then">Read more</a></p>
|
||||
</div><h4 id='method.map' class="method hidden"><code id='map.v'>fn <a href='../actix_service/trait.ServiceExt.html#method.map' class='fnname'>map</a><F, R>(self, f: F) -> <a class="struct" href="../actix_service/map/struct.Map.html" title="struct actix_service::map::Map">Map</a><Self, F, R> <span class="where fmt-newline">where<br> F: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(Self::<a class="type" href="../actix_service/trait.Service.html#associatedtype.Response" title="type actix_service::Service::Response">Response</a>) -> R, </span></code><a class='srclink' href='../src/actix_service/lib.rs.html#149-155' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Map this service's output to a different type, returning a new service of the resulting type. <a href="../actix_service/trait.ServiceExt.html#method.map">Read more</a></p>
|
||||
</div><h4 id='method.map_err' class="method hidden"><code id='map_err.v'>fn <a href='../actix_service/trait.ServiceExt.html#method.map_err' class='fnname'>map_err</a><F, E>(self, f: F) -> <a class="struct" href="../actix_service/map_err/struct.MapErr.html" title="struct actix_service::map_err::MapErr">MapErr</a><Self, F, E> <span class="where fmt-newline">where<br> F: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.Fn.html" title="trait core::ops::function::Fn">Fn</a>(Self::<a class="type" href="../actix_service/trait.Service.html#associatedtype.Error" title="type actix_service::Service::Error">Error</a>) -> E, </span></code><a class='srclink' href='../src/actix_service/lib.rs.html#165-171' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Map this service's error to a different error, returning a new service. <a href="../actix_service/trait.ServiceExt.html#method.map_err">Read more</a></p>
|
||||
</div></div><h3 id='impl-ToOwned' class='impl'><code class='in-band'>impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html" title="trait alloc::borrow::ToOwned">ToOwned</a> for T <span class="where fmt-newline">where<br> T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>, </span></code><a href='#impl-ToOwned' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/alloc/borrow.rs.html#80-92' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Owned' class="type"><code id='Owned.t'>type <a href='https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#associatedtype.Owned' class="type">Owned</a> = T</code></h4><div class='docblock'><p>The resulting type after obtaining ownership.</p>
|
||||
</div><h4 id='method.to_owned' class="method hidden"><code id='to_owned.v'>fn <a href='https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#tymethod.to_owned' class='fnname'>to_owned</a>(&self) -> T</code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/alloc/borrow.rs.html#85-87' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Creates owned data from borrowed data, usually by cloning. <a href="https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#tymethod.to_owned">Read more</a></p>
|
||||
</div><h4 id='method.clone_into' class="method hidden"><code id='clone_into.v'>fn <a href='https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#method.clone_into' class='fnname'>clone_into</a>(&self, target: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>T)</code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/alloc/borrow.rs.html#89-91' title='goto source code'>[src]</a></h4><div class='stability hidden'><div class='stab unstable'><details><summary><span class='emoji'>🔬</span> This is a nightly-only experimental API. (<code>toowned_clone_into</code>)</summary><p>recently added</p>
|
||||
</details></div></div><div class='docblock hidden'><p>Uses borrowed data to replace owned data, usually by cloning. <a href="https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#method.clone_into">Read more</a></p>
|
||||
</div></div><h3 id='impl-TryFrom%3CU%3E' class='impl'><code class='in-band'>impl<T, U> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><U> for T <span class="where fmt-newline">where<br> U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><T>, </span></code><a href='#impl-TryFrom%3CU%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#601-610' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Error-1' class="type"><code id='Error.t-1'>type <a href='https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error' class="type">Error</a> = <a class="enum" href="https://doc.rust-lang.org/nightly/core/convert/enum.Infallible.html" title="enum core::convert::Infallible">Infallible</a></code></h4><div class='docblock'><p>The type returned in the event of a conversion error.</p>
|
||||
</div><h4 id='method.try_from' class="method hidden"><code id='try_from.v'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#tymethod.try_from' class='fnname'>try_from</a>(value: U) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><T, <T as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><U>>::<a class="type" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>></code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#607-609' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||||
</div></div><h3 id='impl-TryInto%3CU%3E' class='impl'><code class='in-band'>impl<T, U> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html" title="trait core::convert::TryInto">TryInto</a><U> for T <span class="where fmt-newline">where<br> U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>, </span></code><a href='#impl-TryInto%3CU%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#587-596' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Error-2' class="type"><code id='Error.t-2'>type <a href='https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html#associatedtype.Error' class="type">Error</a> = <U as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>>::<a class="type" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a></code></h4><div class='docblock'><p>The type returned in the event of a conversion error.</p>
|
||||
</div><h4 id='method.try_into' class="method hidden"><code id='try_into.v'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html#tymethod.try_into' class='fnname'>try_into</a>(self) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><U, <U as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>>::<a class="type" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>></code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#593-595' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||||
</div></div></div></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../";window.currentCrate = "actix_connect";</script><script src="../aliases.js"></script><script src="../main.js"></script><script defer src="../search-index.js"></script></body></html>
|
||||
39
actix_connect/struct.TcpConnectorFactory.html
Normal file
39
actix_connect/struct.TcpConnectorFactory.html
Normal file
File diff suppressed because one or more lines are too long
10
actix_connect/trait.Address.html
Normal file
10
actix_connect/trait.Address.html
Normal file
@@ -0,0 +1,10 @@
|
||||
<!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 `Address` trait in crate `actix_connect`."><meta name="keywords" content="rust, rustlang, rust-lang, Address"><title>actix_connect::Address - 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><noscript><link rel="stylesheet" href="../noscript.css"></noscript><link rel="shortcut icon" href="../favicon.ico"><style type="text/css">#crate-search{background-image:url("../down-arrow.svg");}</style></head><body class="rustdoc trait"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../actix_connect/index.html'><div class='logo-container'><img src='../rust-logo.png' alt='logo'></div></a><p class='location'>Trait Address</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#required-methods">Required Methods</a><div class="sidebar-links"><a href="#tymethod.host">host</a><a href="#tymethod.port">port</a></div><a class="sidebar-title" href="#foreign-impls">Implementations on Foreign Types</a><div class="sidebar-links"><a href="#impl-Address-for-%26%27static%20str">&'static str</a><a href="#impl-Address-for-String">String</a><a href="#impl-Address-for-Uri">Uri</a></div><a class="sidebar-title" href="#implementors">Implementors</a></div><p class='location'><a href='index.html'>actix_connect</a></p><script>window.sidebarCurrent = {name: 'Address', ty: 'trait', 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"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><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='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../src/actix_connect/connect.rs.html#9-15' title='goto source code'>[src]</a></span><span class='in-band'>Trait <a href='index.html'>actix_connect</a>::<wbr><a class="trait" href=''>Address</a></span></h1><div class="docblock type-decl hidden-by-usual-hider"><pre class='rust trait'>pub trait Address {
|
||||
fn <a href='#tymethod.host' class='fnname'>host</a>(&self) -> &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>;
|
||||
<div class='item-spacer'></div> fn <a href='#tymethod.port' class='fnname'>port</a>(&self) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u16.html">u16</a>>;
|
||||
}</pre></div><div class='docblock'><p>Connect request</p>
|
||||
</div>
|
||||
<h2 id='required-methods' class='small-section-header'>Required methods<a href='#required-methods' class='anchor'></a></h2><div class='methods'><h3 id='tymethod.host' class='method'><code id='host.v'>fn <a href='#tymethod.host' class='fnname'>host</a>(&self) -> &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a></code></h3><div class='docblock'><p>Host name of the request</p>
|
||||
</div><h3 id='tymethod.port' class='method'><code id='port.v'>fn <a href='#tymethod.port' class='fnname'>port</a>(&self) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u16.html">u16</a>></code></h3><div class='docblock'><p>Port of the request</p>
|
||||
</div></div><span class='loading-content'>Loading content...</span>
|
||||
<h2 id='foreign-impls' class='small-section-header'>Implementations on Foreign Types<a href='#foreign-impls' class='anchor'></a></h2><h3 id='impl-Address-for-String' class='impl'><code class='in-band'>impl <a class="trait" href="../actix_connect/trait.Address.html" title="trait actix_connect::Address">Address</a> for <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a></code><a href='#impl-Address-for-String' class='anchor'></a><a class='srclink' href='../src/actix_connect/connect.rs.html#17-25' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.host' class="method hidden"><code id='host.v-1'>fn <a href='#method.host' class='fnname'>host</a>(&self) -> &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a></code><a class='srclink' href='../src/actix_connect/connect.rs.html#18-20' title='goto source code'>[src]</a></h4><h4 id='method.port' class="method hidden"><code id='port.v-1'>fn <a href='#method.port' class='fnname'>port</a>(&self) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u16.html">u16</a>></code><a class='srclink' href='../src/actix_connect/connect.rs.html#22-24' title='goto source code'>[src]</a></h4></div><h3 id='impl-Address-for-%26%27static%20str' class='impl'><code class='in-band'>impl <a class="trait" href="../actix_connect/trait.Address.html" title="trait actix_connect::Address">Address</a> for &'static <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a></code><a href='#impl-Address-for-%26%27static%20str' class='anchor'></a><a class='srclink' href='../src/actix_connect/connect.rs.html#27-35' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.host-1' class="method hidden"><code id='host.v-2'>fn <a href='#method.host' class='fnname'>host</a>(&self) -> &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a></code><a class='srclink' href='../src/actix_connect/connect.rs.html#28-30' title='goto source code'>[src]</a></h4><h4 id='method.port-1' class="method hidden"><code id='port.v-2'>fn <a href='#method.port' class='fnname'>port</a>(&self) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u16.html">u16</a>></code><a class='srclink' href='../src/actix_connect/connect.rs.html#32-34' title='goto source code'>[src]</a></h4></div><h3 id='impl-Address-for-Uri' class='impl'><code class='in-band'>impl <a class="trait" href="../actix_connect/trait.Address.html" title="trait actix_connect::Address">Address</a> for <a class="struct" href="../http/uri/struct.Uri.html" title="struct http::uri::Uri">Uri</a></code><a href='#impl-Address-for-Uri' class='anchor'></a><a class='srclink' href='../src/actix_connect/uri.rs.html#5-17' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.host-2' class="method hidden"><code id='host.v-3'>fn <a href='#method.host' class='fnname'>host</a>(&self) -> &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a></code><a class='srclink' href='../src/actix_connect/uri.rs.html#6-8' title='goto source code'>[src]</a></h4><h4 id='method.port-2' class="method hidden"><code id='port.v-3'>fn <a href='#method.port' class='fnname'>port</a>(&self) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u16.html">u16</a>></code><a class='srclink' href='../src/actix_connect/uri.rs.html#10-16' title='goto source code'>[src]</a></h4></div><span class='loading-content'>Loading content...</span>
|
||||
<h2 id='implementors' class='small-section-header'>Implementors<a href='#implementors' class='anchor'></a></h2><div class='item-list' id='implementors-list'></div><span class='loading-content'>Loading content...</span><script type="text/javascript" src="../implementors/actix_connect/trait.Address.js" async></script></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../";window.currentCrate = "actix_connect";</script><script src="../aliases.js"></script><script src="../main.js"></script><script defer src="../search-index.js"></script></body></html>
|
||||
3
actix_cors/all.html
Normal file
3
actix_cors/all.html
Normal file
@@ -0,0 +1,3 @@
|
||||
<!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="List of all items in this crate"><meta name="keywords" content="rust, rustlang, rust-lang"><title>List of all items in this crate</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><noscript><link rel="stylesheet" href="../noscript.css"></noscript><link rel="shortcut icon" href="../favicon.ico"><style type="text/css">#crate-search{background-image:url("../down-arrow.svg");}</style></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">☰</div><a href='../actix_cors/index.html'><div class='logo-container'><img src='../rust-logo.png' alt='logo'></div></a></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"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><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='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span>
|
||||
</span>
|
||||
<span class='in-band'>List of all items</span></h1><h3 id='Structs'>Structs</h3><ul class='structs docblock'><li><a href='struct.Cors.html'>Cors</a></li><li><a href='struct.CorsFactory.html'>CorsFactory</a></li><li><a href='struct.CorsMiddleware.html'>CorsMiddleware</a></li></ul><h3 id='Enums'>Enums</h3><ul class='enums docblock'><li><a href='enum.AllOrSome.html'>AllOrSome</a></li><li><a href='enum.CorsError.html'>CorsError</a></li></ul></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../";window.currentCrate = "actix_cors";</script><script src="../aliases.js"></script><script src="../main.js"></script><script defer src="../search-index.js"></script></body></html>
|
||||
34
actix_cors/enum.AllOrSome.html
Normal file
34
actix_cors/enum.AllOrSome.html
Normal file
File diff suppressed because one or more lines are too long
37
actix_cors/enum.CorsError.html
Normal file
37
actix_cors/enum.CorsError.html
Normal file
@@ -0,0 +1,37 @@
|
||||
<!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 `CorsError` enum in crate `actix_cors`."><meta name="keywords" content="rust, rustlang, rust-lang, CorsError"><title>actix_cors::CorsError - 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><noscript><link rel="stylesheet" href="../noscript.css"></noscript><link rel="shortcut icon" href="../favicon.ico"><style type="text/css">#crate-search{background-image:url("../down-arrow.svg");}</style></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">☰</div><a href='../actix_cors/index.html'><div class='logo-container'><img src='../rust-logo.png' alt='logo'></div></a><p class='location'>Enum CorsError</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#variants">Variants</a><div class="sidebar-links"><a href="#variant.MissingOrigin">MissingOrigin</a><a href="#variant.BadOrigin">BadOrigin</a><a href="#variant.MissingRequestMethod">MissingRequestMethod</a><a href="#variant.BadRequestMethod">BadRequestMethod</a><a href="#variant.BadRequestHeaders">BadRequestHeaders</a><a href="#variant.OriginNotAllowed">OriginNotAllowed</a><a href="#variant.MethodNotAllowed">MethodNotAllowed</a><a href="#variant.HeadersNotAllowed">HeadersNotAllowed</a></div><a class="sidebar-title" href="#implementations">Trait Implementations</a><div class="sidebar-links"><a href="#impl-Debug">Debug</a><a href="#impl-Display">Display</a><a href="#impl-ResponseError">ResponseError</a></div><a class="sidebar-title" href="#synthetic-implementations">Auto Trait Implementations</a><div class="sidebar-links"><a href="#impl-RefUnwindSafe">RefUnwindSafe</a><a href="#impl-Send">Send</a><a href="#impl-Sync">Sync</a><a href="#impl-Unpin">Unpin</a><a href="#impl-UnwindSafe">UnwindSafe</a></div><a class="sidebar-title" href="#blanket-implementations">Blanket Implementations</a><div class="sidebar-links"><a href="#impl-Any">Any</a><a href="#impl-Borrow%3CT%3E">Borrow<T></a><a href="#impl-BorrowMut%3CT%3E">BorrowMut<T></a><a href="#impl-From%3CT%3E">From<T></a><a href="#impl-Into%3CU%3E">Into<U></a><a href="#impl-ToString">ToString</a><a href="#impl-TryFrom%3CU%3E">TryFrom<U></a><a href="#impl-TryInto%3CU%3E">TryInto<U></a><a href="#impl-VZip%3CV%3E">VZip<V></a></div></div><p class='location'><a href='index.html'>actix_cors</a></p><script>window.sidebarCurrent = {name: 'CorsError', 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"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><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='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../src/actix_cors/lib.rs.html#56-91' title='goto source code'>[src]</a></span><span class='in-band'>Enum <a href='index.html'>actix_cors</a>::<wbr><a class="enum" href=''>CorsError</a></span></h1><div class="docblock type-decl hidden-by-usual-hider"><pre class='rust enum'>pub enum CorsError {
|
||||
MissingOrigin,
|
||||
BadOrigin,
|
||||
MissingRequestMethod,
|
||||
BadRequestMethod,
|
||||
BadRequestHeaders,
|
||||
OriginNotAllowed,
|
||||
MethodNotAllowed,
|
||||
HeadersNotAllowed,
|
||||
}</pre></div><div class='docblock'><p>A set of errors that can occur during processing CORS</p>
|
||||
</div><h2 id='variants' class='variants small-section-header'>
|
||||
Variants<a href='#variants' class='anchor'></a></h2>
|
||||
<div id="variant.MissingOrigin" class="variant small-section-header"><a href="#variant.MissingOrigin" class="anchor field"></a><code id='MissingOrigin.v'>MissingOrigin</code></div><div class='docblock'><p>The HTTP request header <code>Origin</code> is required but was not provided</p>
|
||||
</div><div id="variant.BadOrigin" class="variant small-section-header"><a href="#variant.BadOrigin" class="anchor field"></a><code id='BadOrigin.v'>BadOrigin</code></div><div class='docblock'><p>The HTTP request header <code>Origin</code> could not be parsed correctly.</p>
|
||||
</div><div id="variant.MissingRequestMethod" class="variant small-section-header"><a href="#variant.MissingRequestMethod" class="anchor field"></a><code id='MissingRequestMethod.v'>MissingRequestMethod</code></div><div class='docblock'><p>The request header <code>Access-Control-Request-Method</code> is required but is
|
||||
missing</p>
|
||||
</div><div id="variant.BadRequestMethod" class="variant small-section-header"><a href="#variant.BadRequestMethod" class="anchor field"></a><code id='BadRequestMethod.v'>BadRequestMethod</code></div><div class='docblock'><p>The request header <code>Access-Control-Request-Method</code> has an invalid value</p>
|
||||
</div><div id="variant.BadRequestHeaders" class="variant small-section-header"><a href="#variant.BadRequestHeaders" class="anchor field"></a><code id='BadRequestHeaders.v'>BadRequestHeaders</code></div><div class='docblock'><p>The request header <code>Access-Control-Request-Headers</code> has an invalid
|
||||
value</p>
|
||||
</div><div id="variant.OriginNotAllowed" class="variant small-section-header"><a href="#variant.OriginNotAllowed" class="anchor field"></a><code id='OriginNotAllowed.v'>OriginNotAllowed</code></div><div class='docblock'><p>Origin is not allowed to make this request</p>
|
||||
</div><div id="variant.MethodNotAllowed" class="variant small-section-header"><a href="#variant.MethodNotAllowed" class="anchor field"></a><code id='MethodNotAllowed.v'>MethodNotAllowed</code></div><div class='docblock'><p>Requested method is not allowed</p>
|
||||
</div><div id="variant.HeadersNotAllowed" class="variant small-section-header"><a href="#variant.HeadersNotAllowed" class="anchor field"></a><code id='HeadersNotAllowed.v'>HeadersNotAllowed</code></div><div class='docblock'><p>One or more headers requested are not allowed</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-Debug' class='impl'><code class='in-band'>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_cors/enum.CorsError.html" title="enum actix_cors::CorsError">CorsError</a></code><a href='#impl-Debug' class='anchor'></a><a class='srclink' href='../src/actix_cors/lib.rs.html#55' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.fmt' class="method hidden"><code id='fmt.v'>fn <a href='https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt' class='fnname'>fmt</a>(&self, f: &mut <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a>) -> <a class="type" href="https://doc.rust-lang.org/nightly/core/fmt/type.Result.html" title="type core::fmt::Result">Result</a></code><a class='srclink' href='../src/actix_cors/lib.rs.html#55' title='goto source code'>[src]</a></h4><div class='docblock hidden'><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-Display' class='impl'><code class='in-band'>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_cors/enum.CorsError.html" title="enum actix_cors::CorsError">CorsError</a></code><a href='#impl-Display' class='anchor'></a><a class='srclink' href='../src/actix_cors/lib.rs.html#55' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.fmt-1' class="method hidden"><code id='fmt.v-1'>fn <a href='https://doc.rust-lang.org/nightly/core/fmt/trait.Display.html#tymethod.fmt' class='fnname'>fmt</a>(&self, _derive_more_Display_formatter: &mut <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a>) -> <a class="type" href="https://doc.rust-lang.org/nightly/core/fmt/type.Result.html" title="type core::fmt::Result">Result</a></code><a class='srclink' href='../src/actix_cors/lib.rs.html#55' title='goto source code'>[src]</a></h4><div class='docblock hidden'><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-ResponseError' class='impl'><code class='in-band'>impl <a class="trait" href="../actix_http/error/trait.ResponseError.html" title="trait actix_http::error::ResponseError">ResponseError</a> for <a class="enum" href="../actix_cors/enum.CorsError.html" title="enum actix_cors::CorsError">CorsError</a></code><a href='#impl-ResponseError' class='anchor'></a><a class='srclink' href='../src/actix_cors/lib.rs.html#93-97' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.error_response' class="method hidden"><code id='error_response.v'>fn <a href='../actix_http/error/trait.ResponseError.html#method.error_response' class='fnname'>error_response</a>(&self) -> <a class="struct" href="../actix_http/response/struct.Response.html" title="struct actix_http::response::Response">HttpResponse</a></code><a class='srclink' href='../src/actix_cors/lib.rs.html#94-96' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Create response for error <a href="../actix_http/error/trait.ResponseError.html#method.error_response">Read more</a></p>
|
||||
</div><h4 id='method.render_response' class="method hidden"><code id='render_response.v'>fn <a href='../actix_http/error/trait.ResponseError.html#method.render_response' class='fnname'>render_response</a>(&self) -> <a class="struct" href="../actix_http/response/struct.Response.html" title="struct actix_http::response::Response">Response</a><<a class="enum" href="../actix_http/body/enum.Body.html" title="enum actix_http::body::Body">Body</a>></code><a class='srclink' href='../src/actix_http/error.rs.html#72-81' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Constructs an error response</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-RefUnwindSafe' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/std/panic/trait.RefUnwindSafe.html" title="trait std::panic::RefUnwindSafe">RefUnwindSafe</a> for <a class="enum" href="../actix_cors/enum.CorsError.html" title="enum actix_cors::CorsError">CorsError</a></code><a href='#impl-RefUnwindSafe' class='anchor'></a></h3><div class='impl-items'></div><h3 id='impl-Send' class='impl'><code class='in-band'>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_cors/enum.CorsError.html" title="enum actix_cors::CorsError">CorsError</a></code><a href='#impl-Send' class='anchor'></a></h3><div class='impl-items'></div><h3 id='impl-Sync' class='impl'><code class='in-band'>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_cors/enum.CorsError.html" title="enum actix_cors::CorsError">CorsError</a></code><a href='#impl-Sync' class='anchor'></a></h3><div class='impl-items'></div><h3 id='impl-Unpin' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a> for <a class="enum" href="../actix_cors/enum.CorsError.html" title="enum actix_cors::CorsError">CorsError</a></code><a href='#impl-Unpin' class='anchor'></a></h3><div class='impl-items'></div><h3 id='impl-UnwindSafe' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/std/panic/trait.UnwindSafe.html" title="trait std::panic::UnwindSafe">UnwindSafe</a> for <a class="enum" href="../actix_cors/enum.CorsError.html" title="enum actix_cors::CorsError">CorsError</a></code><a href='#impl-UnwindSafe' class='anchor'></a></h3><div class='impl-items'></div></div><h2 id='blanket-implementations' class='small-section-header'>Blanket Implementations<a href='#blanket-implementations' class='anchor'></a></h2><div id='blanket-implementations-list'><h3 id='impl-Any' class='impl'><code class='in-band'>impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html" title="trait core::any::Any">Any</a> for T <span class="where fmt-newline">where<br> T: 'static + ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></code><a href='#impl-Any' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/any.rs.html#108-112' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.type_id' class="method hidden"><code id='type_id.v'>fn <a href='https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id' class='fnname'>type_id</a>(&self) -> <a class="struct" href="https://doc.rust-lang.org/nightly/core/any/struct.TypeId.html" title="struct core::any::TypeId">TypeId</a></code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/any.rs.html#109-111' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Gets the <code>TypeId</code> of <code>self</code>. <a href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id">Read more</a></p>
|
||||
</div></div><h3 id='impl-Borrow%3CT%3E' class='impl'><code class='in-band'>impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a><T> for T <span class="where fmt-newline">where<br> T: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></code><a href='#impl-Borrow%3CT%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#213-217' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.borrow' class="method hidden"><code id='borrow.v'>fn <a href='https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow' class='fnname'>borrow</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>T</code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#214-216' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Immutably borrows from an owned value. <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow">Read more</a></p>
|
||||
</div></div><h3 id='impl-BorrowMut%3CT%3E' class='impl'><code class='in-band'>impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html" title="trait core::borrow::BorrowMut">BorrowMut</a><T> for T <span class="where fmt-newline">where<br> T: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></code><a href='#impl-BorrowMut%3CT%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#220-224' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.borrow_mut' class="method hidden"><code id='borrow_mut.v'>fn <a href='https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut' class='fnname'>borrow_mut</a>(&mut self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>T</code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#221-223' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Mutably borrows from an owned value. <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read more</a></p>
|
||||
</div></div><h3 id='impl-From%3CT%3E' class='impl'><code class='in-band'>impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><T> for T</code><a href='#impl-From%3CT%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#564-568' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.from' class="method hidden"><code id='from.v'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from' class='fnname'>from</a>(t: T) -> T</code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#565-567' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||||
</div></div><h3 id='impl-Into%3CU%3E' class='impl'><code class='in-band'>impl<T, U> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><U> for T <span class="where fmt-newline">where<br> U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><T>, </span></code><a href='#impl-Into%3CU%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#553-560' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.into' class="method hidden"><code id='into.v'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.Into.html#tymethod.into' class='fnname'>into</a>(self) -> U</code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#557-559' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||||
</div></div><h3 id='impl-ToString' class='impl'><code class='in-band'>impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/alloc/string/trait.ToString.html" title="trait alloc::string::ToString">ToString</a> for T <span class="where fmt-newline">where<br> T: <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.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></code><a href='#impl-ToString' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/alloc/string.rs.html#2160-2170' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.to_string' class="method hidden"><code id='to_string.v'>default fn <a href='https://doc.rust-lang.org/nightly/alloc/string/trait.ToString.html#tymethod.to_string' class='fnname'>to_string</a>(&self) -> <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a></code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/alloc/string.rs.html#2162-2169' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Converts the given value to a <code>String</code>. <a href="https://doc.rust-lang.org/nightly/alloc/string/trait.ToString.html#tymethod.to_string">Read more</a></p>
|
||||
</div></div><h3 id='impl-TryFrom%3CU%3E' class='impl'><code class='in-band'>impl<T, U> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><U> for T <span class="where fmt-newline">where<br> U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><T>, </span></code><a href='#impl-TryFrom%3CU%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#601-610' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Error' class="type"><code id='Error.t'>type <a href='https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error' class="type">Error</a> = <a class="enum" href="https://doc.rust-lang.org/nightly/core/convert/enum.Infallible.html" title="enum core::convert::Infallible">Infallible</a></code></h4><div class='docblock'><p>The type returned in the event of a conversion error.</p>
|
||||
</div><h4 id='method.try_from' class="method hidden"><code id='try_from.v'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#tymethod.try_from' class='fnname'>try_from</a>(value: U) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><T, <T as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><U>>::<a class="type" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>></code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#607-609' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||||
</div></div><h3 id='impl-TryInto%3CU%3E' class='impl'><code class='in-band'>impl<T, U> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html" title="trait core::convert::TryInto">TryInto</a><U> for T <span class="where fmt-newline">where<br> U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>, </span></code><a href='#impl-TryInto%3CU%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#587-596' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Error-1' class="type"><code id='Error.t-1'>type <a href='https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html#associatedtype.Error' class="type">Error</a> = <U as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>>::<a class="type" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a></code></h4><div class='docblock'><p>The type returned in the event of a conversion error.</p>
|
||||
</div><h4 id='method.try_into' class="method hidden"><code id='try_into.v'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html#tymethod.try_into' class='fnname'>try_into</a>(self) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><U, <U as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>>::<a class="type" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>></code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#593-595' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||||
</div></div><h3 id='impl-VZip%3CV%3E' class='impl'><code class='in-band'>impl<V, T> <a class="trait" href="../ppv_lite86/types/types/trait.VZip.html" title="trait ppv_lite86::types::types::VZip">VZip</a><V> for T <span class="where fmt-newline">where<br> V: <a class="trait" href="../ppv_lite86/types/types/trait.MultiLane.html" title="trait ppv_lite86::types::types::MultiLane">MultiLane</a><T>, </span></code><a href='#impl-VZip%3CV%3E' class='anchor'></a><a class='srclink' href='../src/ppv_lite86/types.rs.html#212-220' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.vzip' class="method hidden"><code id='vzip.v'>fn <a href='../ppv_lite86/types/types/trait.VZip.html#tymethod.vzip' class='fnname'>vzip</a>(self) -> V</code><a class='srclink' href='../src/ppv_lite86/types.rs.html#217-219' title='goto source code'>[src]</a></h4></div></div></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../";window.currentCrate = "actix_cors";</script><script src="../aliases.js"></script><script src="../main.js"></script><script defer src="../search-index.js"></script></body></html>
|
||||
44
actix_cors/index.html
Normal file
44
actix_cors/index.html
Normal file
@@ -0,0 +1,44 @@
|
||||
<!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 `actix_cors` crate."><meta name="keywords" content="rust, rustlang, rust-lang, actix_cors"><title>actix_cors - 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><noscript><link rel="stylesheet" href="../noscript.css"></noscript><link rel="shortcut icon" href="../favicon.ico"><style type="text/css">#crate-search{background-image:url("../down-arrow.svg");}</style></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">☰</div><a href='../actix_cors/index.html'><div class='logo-container'><img src='../rust-logo.png' alt='logo'></div></a><p class='location'>Crate actix_cors</p><div class="sidebar-elems"><a id='all-types' href='all.html'><p>See all actix_cors's items</p></a><div class="block items"><ul><li><a href="#structs">Structs</a></li><li><a href="#enums">Enums</a></li></ul></div><p class='location'></p><script>window.sidebarCurrent = {name: 'actix_cors', ty: 'mod', relpath: '../'};</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"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><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='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../src/actix_cors/lib.rs.html#1-1173' title='goto source code'>[src]</a></span><span class='in-band'>Crate <a class="mod" href=''>actix_cors</a></span></h1><div class='docblock'><p>Cross-origin resource sharing (CORS) for Actix applications</p>
|
||||
<p>CORS middleware could be used with application and with resource.
|
||||
Cors middleware could be used as parameter for <code>App::wrap()</code>,
|
||||
<code>Resource::wrap()</code> or <code>Scope::wrap()</code> methods.</p>
|
||||
<h1 id="example" class="section-header"><a href="#example">Example</a></h1>
|
||||
<div class="example-wrap"><pre class="rust rust-example-rendered">
|
||||
<span class="kw">use</span> <span class="ident">actix_cors</span>::<span class="ident">Cors</span>;
|
||||
<span class="kw">use</span> <span class="ident">actix_web</span>::{<span class="ident">http</span>, <span class="ident">web</span>, <span class="ident">App</span>, <span class="ident">HttpRequest</span>, <span class="ident">HttpResponse</span>, <span class="ident">HttpServer</span>};
|
||||
|
||||
<span class="kw">fn</span> <span class="ident">index</span>(<span class="ident">req</span>: <span class="ident">HttpRequest</span>) <span class="op">-</span><span class="op">></span> <span class="kw-2">&</span><span class="lifetime">'static</span> <span class="ident">str</span> {
|
||||
<span class="string">"Hello world"</span>
|
||||
}
|
||||
|
||||
<span class="kw">fn</span> <span class="ident">main</span>() <span class="op">-</span><span class="op">></span> <span class="ident">std</span>::<span class="ident">io</span>::<span class="prelude-ty">Result</span><span class="op"><</span>()<span class="op">></span> {
|
||||
<span class="ident">HttpServer</span>::<span class="ident">new</span>(<span class="op">|</span><span class="op">|</span> <span class="ident">App</span>::<span class="ident">new</span>()
|
||||
.<span class="ident">wrap</span>(
|
||||
<span class="ident">Cors</span>::<span class="ident">new</span>() <span class="comment">// <- Construct CORS middleware builder</span>
|
||||
.<span class="ident">allowed_origin</span>(<span class="string">"https://www.rust-lang.org/"</span>)
|
||||
.<span class="ident">allowed_methods</span>(<span class="macro">vec</span><span class="macro">!</span>[<span class="string">"GET"</span>, <span class="string">"POST"</span>])
|
||||
.<span class="ident">allowed_headers</span>(<span class="macro">vec</span><span class="macro">!</span>[<span class="ident">http</span>::<span class="ident">header</span>::<span class="ident">AUTHORIZATION</span>, <span class="ident">http</span>::<span class="ident">header</span>::<span class="ident">ACCEPT</span>])
|
||||
.<span class="ident">allowed_header</span>(<span class="ident">http</span>::<span class="ident">header</span>::<span class="ident">CONTENT_TYPE</span>)
|
||||
.<span class="ident">max_age</span>(<span class="number">3600</span>))
|
||||
.<span class="ident">service</span>(
|
||||
<span class="ident">web</span>::<span class="ident">resource</span>(<span class="string">"/index.html"</span>)
|
||||
.<span class="ident">route</span>(<span class="ident">web</span>::<span class="ident">get</span>().<span class="ident">to</span>(<span class="ident">index</span>))
|
||||
.<span class="ident">route</span>(<span class="ident">web</span>::<span class="ident">head</span>().<span class="ident">to</span>(<span class="op">|</span><span class="op">|</span> <span class="ident">HttpResponse</span>::<span class="ident">MethodNotAllowed</span>()))
|
||||
))
|
||||
.<span class="ident">bind</span>(<span class="string">"127.0.0.1:8080"</span>)<span class="question-mark">?</span>;
|
||||
|
||||
<span class="prelude-val">Ok</span>(())
|
||||
}</pre></div>
|
||||
<p>In this example custom <em>CORS</em> middleware get registered for "/index.html"
|
||||
endpoint.</p>
|
||||
<p>Cors middleware automatically handle <em>OPTIONS</em> preflight request.</p>
|
||||
</div><h2 id='structs' class='section-header'><a href="#structs">Structs</a></h2>
|
||||
<table><tr class='module-item'><td><a class="struct" href="struct.Cors.html" title='actix_cors::Cors struct'>Cors</a></td><td class='docblock-short'><p>Structure that follows the builder pattern for building <code>Cors</code> middleware
|
||||
structs.</p>
|
||||
</td></tr><tr class='module-item'><td><a class="struct" href="struct.CorsFactory.html" title='actix_cors::CorsFactory struct'>CorsFactory</a></td><td class='docblock-short'><p><code>Middleware</code> for Cross-origin resource sharing support</p>
|
||||
</td></tr><tr class='module-item'><td><a class="struct" href="struct.CorsMiddleware.html" title='actix_cors::CorsMiddleware struct'>CorsMiddleware</a></td><td class='docblock-short'><p><code>Middleware</code> for Cross-origin resource sharing support</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.AllOrSome.html" title='actix_cors::AllOrSome enum'>AllOrSome</a></td><td class='docblock-short'><p>An enum signifying that some of type T is allowed, or <code>All</code> (everything is
|
||||
allowed).</p>
|
||||
</td></tr><tr class='module-item'><td><a class="enum" href="enum.CorsError.html" title='actix_cors::CorsError enum'>CorsError</a></td><td class='docblock-short'><p>A set of errors that can occur during processing CORS</p>
|
||||
</td></tr></table></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../";window.currentCrate = "actix_cors";</script><script src="../aliases.js"></script><script src="../main.js"></script><script defer src="../search-index.js"></script></body></html>
|
||||
1
actix_cors/sidebar-items.js
Normal file
1
actix_cors/sidebar-items.js
Normal file
@@ -0,0 +1 @@
|
||||
initSidebarItems({"enum":[["AllOrSome","An enum signifying that some of type T is allowed, or `All` (everything is allowed)."],["CorsError","A set of errors that can occur during processing CORS"]],"struct":[["Cors","Structure that follows the builder pattern for building `Cors` middleware structs."],["CorsFactory","`Middleware` for Cross-origin resource sharing support"],["CorsMiddleware","`Middleware` for Cross-origin resource sharing support"]]});
|
||||
99
actix_cors/struct.Cors.html
Normal file
99
actix_cors/struct.Cors.html
Normal file
@@ -0,0 +1,99 @@
|
||||
<!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 `Cors` struct in crate `actix_cors`."><meta name="keywords" content="rust, rustlang, rust-lang, Cors"><title>actix_cors::Cors - 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><noscript><link rel="stylesheet" href="../noscript.css"></noscript><link rel="shortcut icon" href="../favicon.ico"><style type="text/css">#crate-search{background-image:url("../down-arrow.svg");}</style></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">☰</div><a href='../actix_cors/index.html'><div class='logo-container'><img src='../rust-logo.png' alt='logo'></div></a><p class='location'>Struct Cors</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#methods">Methods</a><div class="sidebar-links"><a href="#method.allowed_header">allowed_header</a><a href="#method.allowed_headers">allowed_headers</a><a href="#method.allowed_methods">allowed_methods</a><a href="#method.allowed_origin">allowed_origin</a><a href="#method.default">default</a><a href="#method.disable_preflight">disable_preflight</a><a href="#method.disable_vary_header">disable_vary_header</a><a href="#method.expose_headers">expose_headers</a><a href="#method.max_age">max_age</a><a href="#method.new">new</a><a href="#method.send_wildcard">send_wildcard</a><a href="#method.supports_credentials">supports_credentials</a></div><a class="sidebar-title" href="#implementations">Trait Implementations</a><div class="sidebar-links"><a href="#impl-IntoTransform%3CCorsFactory%2C%20S%3E">IntoTransform<CorsFactory, S></a></div><a class="sidebar-title" href="#synthetic-implementations">Auto Trait Implementations</a><div class="sidebar-links"><a href="#impl-RefUnwindSafe">RefUnwindSafe</a><a href="#impl-Send">Send</a><a href="#impl-Sync">Sync</a><a href="#impl-Unpin">Unpin</a><a href="#impl-UnwindSafe">UnwindSafe</a></div><a class="sidebar-title" href="#blanket-implementations">Blanket Implementations</a><div class="sidebar-links"><a href="#impl-Any">Any</a><a href="#impl-Borrow%3CT%3E">Borrow<T></a><a href="#impl-BorrowMut%3CT%3E">BorrowMut<T></a><a href="#impl-From%3CT%3E">From<T></a><a href="#impl-Into%3CU%3E">Into<U></a><a href="#impl-TryFrom%3CU%3E">TryFrom<U></a><a href="#impl-TryInto%3CU%3E">TryInto<U></a><a href="#impl-VZip%3CV%3E">VZip<V></a></div></div><p class='location'><a href='index.html'>actix_cors</a></p><script>window.sidebarCurrent = {name: 'Cors', 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"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><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='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../src/actix_cors/lib.rs.html#165-170' title='goto source code'>[src]</a></span><span class='in-band'>Struct <a href='index.html'>actix_cors</a>::<wbr><a class="struct" href=''>Cors</a></span></h1><div class="docblock type-decl hidden-by-usual-hider"><pre class='rust struct'>pub struct Cors { /* fields omitted */ }</pre></div><div class='docblock'><p>Structure that follows the builder pattern for building <code>Cors</code> middleware
|
||||
structs.</p>
|
||||
<p>To construct a cors:</p>
|
||||
<ol>
|
||||
<li>Call <a href="struct.Cors.html#method.build"><code>Cors::build</code></a> to start building.</li>
|
||||
<li>Use any of the builder methods to set fields in the backend.</li>
|
||||
<li>Call <a href="struct.Cors.html#method.finish">finish</a> to retrieve the
|
||||
constructed backend.</li>
|
||||
</ol>
|
||||
<h1 id="example" class="section-header"><a href="#example">Example</a></h1>
|
||||
<div class="example-wrap"><pre class="rust rust-example-rendered">
|
||||
<span class="kw">use</span> <span class="ident">actix_cors</span>::<span class="ident">Cors</span>;
|
||||
<span class="kw">use</span> <span class="ident">actix_web</span>::<span class="ident">http</span>::<span class="ident">header</span>;
|
||||
|
||||
<span class="kw">let</span> <span class="ident">cors</span> <span class="op">=</span> <span class="ident">Cors</span>::<span class="ident">new</span>()
|
||||
.<span class="ident">allowed_origin</span>(<span class="string">"https://www.rust-lang.org/"</span>)
|
||||
.<span class="ident">allowed_methods</span>(<span class="macro">vec</span><span class="macro">!</span>[<span class="string">"GET"</span>, <span class="string">"POST"</span>])
|
||||
.<span class="ident">allowed_headers</span>(<span class="macro">vec</span><span class="macro">!</span>[<span class="ident">header</span>::<span class="ident">AUTHORIZATION</span>, <span class="ident">header</span>::<span class="ident">ACCEPT</span>])
|
||||
.<span class="ident">allowed_header</span>(<span class="ident">header</span>::<span class="ident">CONTENT_TYPE</span>)
|
||||
.<span class="ident">max_age</span>(<span class="number">3600</span>);</pre></div>
|
||||
</div><h2 id='methods' class='small-section-header'>Methods<a href='#methods' class='anchor'></a></h2><h3 id='impl' class='impl'><code class='in-band'>impl <a class="struct" href="../actix_cors/struct.Cors.html" title="struct actix_cors::Cors">Cors</a></code><a href='#impl' class='anchor'></a><a class='srclink' href='../src/actix_cors/lib.rs.html#172-457' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.new' class="method"><code id='new.v'>pub fn <a href='#method.new' class='fnname'>new</a>() -> <a class="struct" href="../actix_cors/struct.Cors.html" title="struct actix_cors::Cors">Cors</a></code><a class='srclink' href='../src/actix_cors/lib.rs.html#174-192' title='goto source code'>[src]</a></h4><div class='docblock'><p>Build a new CORS middleware instance</p>
|
||||
</div><h4 id='method.default' class="method"><code id='default.v'>pub fn <a href='#method.default' class='fnname'>default</a>() -> <a class="struct" href="../actix_cors/struct.CorsFactory.html" title="struct actix_cors::CorsFactory">CorsFactory</a></code><a class='srclink' href='../src/actix_cors/lib.rs.html#195-222' title='goto source code'>[src]</a></h4><div class='docblock'><p>Build a new CORS default middleware</p>
|
||||
</div><h4 id='method.allowed_origin' class="method"><code id='allowed_origin.v'>pub fn <a href='#method.allowed_origin' class='fnname'>allowed_origin</a>(self, origin: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>) -> <a class="struct" href="../actix_cors/struct.Cors.html" title="struct actix_cors::Cors">Cors</a></code><a class='srclink' href='../src/actix_cors/lib.rs.html#241-258' title='goto source code'>[src]</a></h4><div class='docblock'><p>Add an origin that are allowed to make requests.
|
||||
Will be verified against the <code>Origin</code> request header.</p>
|
||||
<p>When <code>All</code> is set, and <code>send_wildcard</code> is set, "*" will be sent in
|
||||
the <code>Access-Control-Allow-Origin</code> response header. Otherwise, the
|
||||
client's <code>Origin</code> request header will be echoed back in the
|
||||
<code>Access-Control-Allow-Origin</code> response header.</p>
|
||||
<p>When <code>Some</code> is set, the client's <code>Origin</code> request header will be
|
||||
checked in a case-sensitive manner.</p>
|
||||
<p>This is the <code>list of origins</code> in the
|
||||
<a href="https://www.w3.org/TR/cors/#resource-processing-model">Resource Processing Model</a>.</p>
|
||||
<p>Defaults to <code>All</code>.</p>
|
||||
<p>Builder panics if supplied origin is not valid uri.</p>
|
||||
</div><h4 id='method.allowed_methods' class="method"><code id='allowed_methods.v'>pub fn <a href='#method.allowed_methods' class='fnname'>allowed_methods</a><U, M>(self, methods: U) -> <a class="struct" href="../actix_cors/struct.Cors.html" title="struct actix_cors::Cors">Cors</a> <span class="where fmt-newline">where<br> U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html" title="trait core::iter::traits::collect::IntoIterator">IntoIterator</a><Item = M>,<br> <a class="struct" href="../http/method/struct.Method.html" title="struct http::method::Method">Method</a>: <a class="trait" href="../http/convert/trait.HttpTryFrom.html" title="trait http::convert::HttpTryFrom">HttpTryFrom</a><M>, </span></code><a class='srclink' href='../src/actix_cors/lib.rs.html#267-287' title='goto source code'>[src]</a></h4><div class='docblock'><p>Set a list of methods which the allowed origins are allowed to access
|
||||
for requests.</p>
|
||||
<p>This is the <code>list of methods</code> in the
|
||||
<a href="https://www.w3.org/TR/cors/#resource-processing-model">Resource Processing Model</a>.</p>
|
||||
<p>Defaults to <code>[GET, HEAD, POST, OPTIONS, PUT, PATCH, DELETE]</code></p>
|
||||
</div><h4 id='method.allowed_header' class="method"><code id='allowed_header.v'>pub fn <a href='#method.allowed_header' class='fnname'>allowed_header</a><H>(self, header: H) -> <a class="struct" href="../actix_cors/struct.Cors.html" title="struct actix_cors::Cors">Cors</a> <span class="where fmt-newline">where<br> <a class="struct" href="../http/header/name/struct.HeaderName.html" title="struct http::header::name::HeaderName">HeaderName</a>: <a class="trait" href="../http/convert/trait.HttpTryFrom.html" title="trait http::convert::HttpTryFrom">HttpTryFrom</a><H>, </span></code><a class='srclink' href='../src/actix_cors/lib.rs.html#290-308' title='goto source code'>[src]</a></h4><div class='docblock'><p>Set an allowed header</p>
|
||||
</div><h4 id='method.allowed_headers' class="method"><code id='allowed_headers.v'>pub fn <a href='#method.allowed_headers' class='fnname'>allowed_headers</a><U, H>(self, headers: U) -> <a class="struct" href="../actix_cors/struct.Cors.html" title="struct actix_cors::Cors">Cors</a> <span class="where fmt-newline">where<br> U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html" title="trait core::iter::traits::collect::IntoIterator">IntoIterator</a><Item = H>,<br> <a class="struct" href="../http/header/name/struct.HeaderName.html" title="struct http::header::name::HeaderName">HeaderName</a>: <a class="trait" href="../http/convert/trait.HttpTryFrom.html" title="trait http::convert::HttpTryFrom">HttpTryFrom</a><H>, </span></code><a class='srclink' href='../src/actix_cors/lib.rs.html#321-345' title='goto source code'>[src]</a></h4><div class='docblock'><p>Set a list of header field names which can be used when
|
||||
this resource is accessed by allowed origins.</p>
|
||||
<p>If <code>All</code> is set, whatever is requested by the client in
|
||||
<code>Access-Control-Request-Headers</code> will be echoed back in the
|
||||
<code>Access-Control-Allow-Headers</code> header.</p>
|
||||
<p>This is the <code>list of headers</code> in the
|
||||
<a href="https://www.w3.org/TR/cors/#resource-processing-model">Resource Processing Model</a>.</p>
|
||||
<p>Defaults to <code>All</code>.</p>
|
||||
</div><h4 id='method.expose_headers' class="method"><code id='expose_headers.v'>pub fn <a href='#method.expose_headers' class='fnname'>expose_headers</a><U, H>(self, headers: U) -> <a class="struct" href="../actix_cors/struct.Cors.html" title="struct actix_cors::Cors">Cors</a> <span class="where fmt-newline">where<br> U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html" title="trait core::iter::traits::collect::IntoIterator">IntoIterator</a><Item = H>,<br> <a class="struct" href="../http/header/name/struct.HeaderName.html" title="struct http::header::name::HeaderName">HeaderName</a>: <a class="trait" href="../http/convert/trait.HttpTryFrom.html" title="trait http::convert::HttpTryFrom">HttpTryFrom</a><H>, </span></code><a class='srclink' href='../src/actix_cors/lib.rs.html#355-372' title='goto source code'>[src]</a></h4><div class='docblock'><p>Set a list of headers which are safe to expose to the API of a CORS API
|
||||
specification. This corresponds to the
|
||||
<code>Access-Control-Expose-Headers</code> response header.</p>
|
||||
<p>This is the <code>list of exposed headers</code> in the
|
||||
<a href="https://www.w3.org/TR/cors/#resource-processing-model">Resource Processing Model</a>.</p>
|
||||
<p>This defaults to an empty set.</p>
|
||||
</div><h4 id='method.max_age' class="method"><code id='max_age.v'>pub fn <a href='#method.max_age' class='fnname'>max_age</a>(self, max_age: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>) -> <a class="struct" href="../actix_cors/struct.Cors.html" title="struct actix_cors::Cors">Cors</a></code><a class='srclink' href='../src/actix_cors/lib.rs.html#378-383' title='goto source code'>[src]</a></h4><div class='docblock'><p>Set a maximum time for which this CORS request maybe cached.
|
||||
This value is set as the <code>Access-Control-Max-Age</code> header.</p>
|
||||
<p>This defaults to <code>None</code> (unset).</p>
|
||||
</div><h4 id='method.send_wildcard' class="method"><code id='send_wildcard.v'>pub fn <a href='#method.send_wildcard' class='fnname'>send_wildcard</a>(self) -> <a class="struct" href="../actix_cors/struct.Cors.html" title="struct actix_cors::Cors">Cors</a></code><a class='srclink' href='../src/actix_cors/lib.rs.html#400-405' title='goto source code'>[src]</a></h4><div class='docblock'><p>Set a wildcard origins</p>
|
||||
<p>If send wildcard is set and the <code>allowed_origins</code> parameter is <code>All</code>, a
|
||||
wildcard <code>Access-Control-Allow-Origin</code> response header is sent,
|
||||
rather than the request’s <code>Origin</code> header.</p>
|
||||
<p>This is the <code>supports credentials flag</code> in the
|
||||
<a href="https://www.w3.org/TR/cors/#resource-processing-model">Resource Processing Model</a>.</p>
|
||||
<p>This <strong>CANNOT</strong> be used in conjunction with <code>allowed_origins</code> set to
|
||||
<code>All</code> and <code>allow_credentials</code> set to <code>true</code>. Depending on the mode
|
||||
of usage, this will either result in an <code>Error:: CredentialsWithWildcardOrigin</code> error during actix launch or runtime.</p>
|
||||
<p>Defaults to <code>false</code>.</p>
|
||||
</div><h4 id='method.supports_credentials' class="method"><code id='supports_credentials.v'>pub fn <a href='#method.supports_credentials' class='fnname'>supports_credentials</a>(self) -> <a class="struct" href="../actix_cors/struct.Cors.html" title="struct actix_cors::Cors">Cors</a></code><a class='srclink' href='../src/actix_cors/lib.rs.html#420-425' title='goto source code'>[src]</a></h4><div class='docblock'><p>Allows users to make authenticated requests</p>
|
||||
<p>If true, injects the <code>Access-Control-Allow-Credentials</code> header in
|
||||
responses. This allows cookies and credentials to be submitted
|
||||
across domains.</p>
|
||||
<p>This option cannot be used in conjunction with an <code>allowed_origin</code> set
|
||||
to <code>All</code> and <code>send_wildcards</code> set to <code>true</code>.</p>
|
||||
<p>Defaults to <code>false</code>.</p>
|
||||
<p>Builder panics if credentials are allowed, but the Origin is set to "*".
|
||||
This is not allowed by W3C</p>
|
||||
</div><h4 id='method.disable_vary_header' class="method"><code id='disable_vary_header.v'>pub fn <a href='#method.disable_vary_header' class='fnname'>disable_vary_header</a>(self) -> <a class="struct" href="../actix_cors/struct.Cors.html" title="struct actix_cors::Cors">Cors</a></code><a class='srclink' href='../src/actix_cors/lib.rs.html#438-443' title='goto source code'>[src]</a></h4><div class='docblock'><p>Disable <code>Vary</code> header support.</p>
|
||||
<p>When enabled the header <code>Vary: Origin</code> will be returned as per the W3
|
||||
implementation guidelines.</p>
|
||||
<p>Setting this header when the <code>Access-Control-Allow-Origin</code> is
|
||||
dynamically generated (e.g. when there is more than one allowed
|
||||
origin, and an Origin than '*' is returned) informs CDNs and other
|
||||
caches that the CORS headers are dynamic, and cannot be cached.</p>
|
||||
<p>By default <code>vary</code> header support is enabled.</p>
|
||||
</div><h4 id='method.disable_preflight' class="method"><code id='disable_preflight.v'>pub fn <a href='#method.disable_preflight' class='fnname'>disable_preflight</a>(self) -> <a class="struct" href="../actix_cors/struct.Cors.html" title="struct actix_cors::Cors">Cors</a></code><a class='srclink' href='../src/actix_cors/lib.rs.html#451-456' title='goto source code'>[src]</a></h4><div class='docblock'><p>Disable <em>preflight</em> request support.</p>
|
||||
<p>When enabled cors middleware automatically handles <em>OPTIONS</em> request.
|
||||
This is useful application level middleware.</p>
|
||||
<p>By default <em>preflight</em> support is enabled.</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-IntoTransform%3CCorsFactory%2C%20S%3E' class='impl'><code class='in-band'>impl<S, B> <a class="trait" href="../actix_service/transform/trait.IntoTransform.html" title="trait actix_service::transform::IntoTransform">IntoTransform</a><<a class="struct" href="../actix_cors/struct.CorsFactory.html" title="struct actix_cors::CorsFactory">CorsFactory</a>, S> for <a class="struct" href="../actix_cors/struct.Cors.html" title="struct actix_cors::Cors">Cors</a> <span class="where fmt-newline">where<br> S: <a class="trait" href="../actix_service/trait.Service.html" title="trait actix_service::Service">Service</a><Request = <a class="struct" href="../actix_web/service/struct.ServiceRequest.html" title="struct actix_web::service::ServiceRequest">ServiceRequest</a>, Response = <a class="struct" href="../actix_web/service/struct.ServiceResponse.html" title="struct actix_web::service::ServiceResponse">ServiceResponse</a><B>, Error = <a class="struct" href="../actix_http/error/struct.Error.html" title="struct actix_http::error::Error">Error</a>>,<br> S::<a class="type" href="../actix_service/trait.Service.html#associatedtype.Future" title="type actix_service::Service::Future">Future</a>: 'static,<br> B: 'static, </span></code><a href='#impl-IntoTransform%3CCorsFactory%2C%20S%3E' class='anchor'></a><a class='srclink' href='../src/actix_cors/lib.rs.html#469-520' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.into_transform' class="method hidden"><code id='into_transform.v'>fn <a href='../actix_service/transform/trait.IntoTransform.html#tymethod.into_transform' class='fnname'>into_transform</a>(self) -> <a class="struct" href="../actix_cors/struct.CorsFactory.html" title="struct actix_cors::CorsFactory">CorsFactory</a></code><a class='srclink' href='../src/actix_cors/lib.rs.html#475-519' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Convert to a <code>TransformService</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-RefUnwindSafe' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/std/panic/trait.RefUnwindSafe.html" title="trait std::panic::RefUnwindSafe">RefUnwindSafe</a> for <a class="struct" href="../actix_cors/struct.Cors.html" title="struct actix_cors::Cors">Cors</a></code><a href='#impl-RefUnwindSafe' class='anchor'></a></h3><div class='impl-items'></div><h3 id='impl-Send' class='impl'><code class='in-band'>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_cors/struct.Cors.html" title="struct actix_cors::Cors">Cors</a></code><a href='#impl-Send' class='anchor'></a></h3><div class='impl-items'></div><h3 id='impl-Sync' class='impl'><code class='in-band'>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_cors/struct.Cors.html" title="struct actix_cors::Cors">Cors</a></code><a href='#impl-Sync' class='anchor'></a></h3><div class='impl-items'></div><h3 id='impl-Unpin' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a> for <a class="struct" href="../actix_cors/struct.Cors.html" title="struct actix_cors::Cors">Cors</a></code><a href='#impl-Unpin' class='anchor'></a></h3><div class='impl-items'></div><h3 id='impl-UnwindSafe' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/std/panic/trait.UnwindSafe.html" title="trait std::panic::UnwindSafe">UnwindSafe</a> for <a class="struct" href="../actix_cors/struct.Cors.html" title="struct actix_cors::Cors">Cors</a></code><a href='#impl-UnwindSafe' class='anchor'></a></h3><div class='impl-items'></div></div><h2 id='blanket-implementations' class='small-section-header'>Blanket Implementations<a href='#blanket-implementations' class='anchor'></a></h2><div id='blanket-implementations-list'><h3 id='impl-Any' class='impl'><code class='in-band'>impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html" title="trait core::any::Any">Any</a> for T <span class="where fmt-newline">where<br> T: 'static + ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></code><a href='#impl-Any' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/any.rs.html#108-112' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.type_id' class="method hidden"><code id='type_id.v'>fn <a href='https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id' class='fnname'>type_id</a>(&self) -> <a class="struct" href="https://doc.rust-lang.org/nightly/core/any/struct.TypeId.html" title="struct core::any::TypeId">TypeId</a></code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/any.rs.html#109-111' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Gets the <code>TypeId</code> of <code>self</code>. <a href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id">Read more</a></p>
|
||||
</div></div><h3 id='impl-Borrow%3CT%3E' class='impl'><code class='in-band'>impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a><T> for T <span class="where fmt-newline">where<br> T: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></code><a href='#impl-Borrow%3CT%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#213-217' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.borrow' class="method hidden"><code id='borrow.v'>fn <a href='https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow' class='fnname'>borrow</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>T</code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#214-216' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Immutably borrows from an owned value. <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow">Read more</a></p>
|
||||
</div></div><h3 id='impl-BorrowMut%3CT%3E' class='impl'><code class='in-band'>impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html" title="trait core::borrow::BorrowMut">BorrowMut</a><T> for T <span class="where fmt-newline">where<br> T: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></code><a href='#impl-BorrowMut%3CT%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#220-224' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.borrow_mut' class="method hidden"><code id='borrow_mut.v'>fn <a href='https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut' class='fnname'>borrow_mut</a>(&mut self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>T</code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#221-223' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Mutably borrows from an owned value. <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read more</a></p>
|
||||
</div></div><h3 id='impl-From%3CT%3E' class='impl'><code class='in-band'>impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><T> for T</code><a href='#impl-From%3CT%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#564-568' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.from' class="method hidden"><code id='from.v'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from' class='fnname'>from</a>(t: T) -> T</code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#565-567' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||||
</div></div><h3 id='impl-Into%3CU%3E' class='impl'><code class='in-band'>impl<T, U> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><U> for T <span class="where fmt-newline">where<br> U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><T>, </span></code><a href='#impl-Into%3CU%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#553-560' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.into' class="method hidden"><code id='into.v'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.Into.html#tymethod.into' class='fnname'>into</a>(self) -> U</code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#557-559' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||||
</div></div><h3 id='impl-TryFrom%3CU%3E' class='impl'><code class='in-band'>impl<T, U> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><U> for T <span class="where fmt-newline">where<br> U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><T>, </span></code><a href='#impl-TryFrom%3CU%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#601-610' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Error' class="type"><code id='Error.t'>type <a href='https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error' class="type">Error</a> = <a class="enum" href="https://doc.rust-lang.org/nightly/core/convert/enum.Infallible.html" title="enum core::convert::Infallible">Infallible</a></code></h4><div class='docblock'><p>The type returned in the event of a conversion error.</p>
|
||||
</div><h4 id='method.try_from' class="method hidden"><code id='try_from.v'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#tymethod.try_from' class='fnname'>try_from</a>(value: U) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><T, <T as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><U>>::<a class="type" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>></code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#607-609' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||||
</div></div><h3 id='impl-TryInto%3CU%3E' class='impl'><code class='in-band'>impl<T, U> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html" title="trait core::convert::TryInto">TryInto</a><U> for T <span class="where fmt-newline">where<br> U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>, </span></code><a href='#impl-TryInto%3CU%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#587-596' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Error-1' class="type"><code id='Error.t-1'>type <a href='https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html#associatedtype.Error' class="type">Error</a> = <U as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>>::<a class="type" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a></code></h4><div class='docblock'><p>The type returned in the event of a conversion error.</p>
|
||||
</div><h4 id='method.try_into' class="method hidden"><code id='try_into.v'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html#tymethod.try_into' class='fnname'>try_into</a>(self) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><U, <U as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>>::<a class="type" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>></code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#593-595' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||||
</div></div><h3 id='impl-VZip%3CV%3E' class='impl'><code class='in-band'>impl<V, T> <a class="trait" href="../ppv_lite86/types/types/trait.VZip.html" title="trait ppv_lite86::types::types::VZip">VZip</a><V> for T <span class="where fmt-newline">where<br> V: <a class="trait" href="../ppv_lite86/types/types/trait.MultiLane.html" title="trait ppv_lite86::types::types::MultiLane">MultiLane</a><T>, </span></code><a href='#impl-VZip%3CV%3E' class='anchor'></a><a class='srclink' href='../src/ppv_lite86/types.rs.html#212-220' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.vzip' class="method hidden"><code id='vzip.v'>fn <a href='../ppv_lite86/types/types/trait.VZip.html#tymethod.vzip' class='fnname'>vzip</a>(self) -> V</code><a class='srclink' href='../src/ppv_lite86/types.rs.html#217-219' title='goto source code'>[src]</a></h4></div></div></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../";window.currentCrate = "actix_cors";</script><script src="../aliases.js"></script><script src="../main.js"></script><script defer src="../search-index.js"></script></body></html>
|
||||
24
actix_cors/struct.CorsFactory.html
Normal file
24
actix_cors/struct.CorsFactory.html
Normal 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 `CorsFactory` struct in crate `actix_cors`."><meta name="keywords" content="rust, rustlang, rust-lang, CorsFactory"><title>actix_cors::CorsFactory - 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><noscript><link rel="stylesheet" href="../noscript.css"></noscript><link rel="shortcut icon" href="../favicon.ico"><style type="text/css">#crate-search{background-image:url("../down-arrow.svg");}</style></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">☰</div><a href='../actix_cors/index.html'><div class='logo-container'><img src='../rust-logo.png' alt='logo'></div></a><p class='location'>Struct CorsFactory</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-IntoTransform%3CCorsFactory%2C%20S%3E">IntoTransform<CorsFactory, S></a><a href="#impl-Transform%3CS%3E">Transform<S></a></div><a class="sidebar-title" href="#synthetic-implementations">Auto Trait Implementations</a><div class="sidebar-links"><a href="#impl-RefUnwindSafe">!RefUnwindSafe</a><a href="#impl-Send">!Send</a><a href="#impl-Sync">!Sync</a><a href="#impl-Unpin">Unpin</a><a href="#impl-UnwindSafe">UnwindSafe</a></div><a class="sidebar-title" href="#blanket-implementations">Blanket Implementations</a><div class="sidebar-links"><a href="#impl-Any">Any</a><a href="#impl-Borrow%3CT%3E">Borrow<T></a><a href="#impl-BorrowMut%3CT%3E">BorrowMut<T></a><a href="#impl-From%3CT%3E">From<T></a><a href="#impl-Into%3CU%3E">Into<U></a><a href="#impl-IntoTransform%3CT%2C%20S%3E">IntoTransform<T, S></a><a href="#impl-TryFrom%3CU%3E">TryFrom<U></a><a href="#impl-TryInto%3CU%3E">TryInto<U></a><a href="#impl-VZip%3CV%3E">VZip<V></a></div></div><p class='location'><a href='index.html'>actix_cors</a></p><script>window.sidebarCurrent = {name: 'CorsFactory', 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"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><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='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../src/actix_cors/lib.rs.html#526-528' title='goto source code'>[src]</a></span><span class='in-band'>Struct <a href='index.html'>actix_cors</a>::<wbr><a class="struct" href=''>CorsFactory</a></span></h1><div class="docblock type-decl hidden-by-usual-hider"><pre class='rust struct'>pub struct CorsFactory { /* fields omitted */ }</pre></div><div class='docblock'><p><code>Middleware</code> for Cross-origin resource sharing support</p>
|
||||
<p>The Cors struct contains the settings for CORS requests to be validated and
|
||||
for responses to be generated.</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-IntoTransform%3CCorsFactory%2C%20S%3E' class='impl'><code class='in-band'>impl<S, B> <a class="trait" href="../actix_service/transform/trait.IntoTransform.html" title="trait actix_service::transform::IntoTransform">IntoTransform</a><<a class="struct" href="../actix_cors/struct.CorsFactory.html" title="struct actix_cors::CorsFactory">CorsFactory</a>, S> for <a class="struct" href="../actix_cors/struct.Cors.html" title="struct actix_cors::Cors">Cors</a> <span class="where fmt-newline">where<br> S: <a class="trait" href="../actix_service/trait.Service.html" title="trait actix_service::Service">Service</a><Request = <a class="struct" href="../actix_web/service/struct.ServiceRequest.html" title="struct actix_web::service::ServiceRequest">ServiceRequest</a>, Response = <a class="struct" href="../actix_web/service/struct.ServiceResponse.html" title="struct actix_web::service::ServiceResponse">ServiceResponse</a><B>, Error = <a class="struct" href="../actix_http/error/struct.Error.html" title="struct actix_http::error::Error">Error</a>>,<br> S::<a class="type" href="../actix_service/trait.Service.html#associatedtype.Future" title="type actix_service::Service::Future">Future</a>: 'static,<br> B: 'static, </span></code><a href='#impl-IntoTransform%3CCorsFactory%2C%20S%3E' class='anchor'></a><a class='srclink' href='../src/actix_cors/lib.rs.html#469-520' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.into_transform' class="method hidden"><code id='into_transform.v'>fn <a href='../actix_service/transform/trait.IntoTransform.html#tymethod.into_transform' class='fnname'>into_transform</a>(self) -> <a class="struct" href="../actix_cors/struct.CorsFactory.html" title="struct actix_cors::CorsFactory">CorsFactory</a></code><a class='srclink' href='../src/actix_cors/lib.rs.html#475-519' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Convert to a <code>TransformService</code></p>
|
||||
</div></div><h3 id='impl-Transform%3CS%3E' class='impl'><code class='in-band'>impl<S, B> <a class="trait" href="../actix_service/transform/trait.Transform.html" title="trait actix_service::transform::Transform">Transform</a><S> for <a class="struct" href="../actix_cors/struct.CorsFactory.html" title="struct actix_cors::CorsFactory">CorsFactory</a> <span class="where fmt-newline">where<br> S: <a class="trait" href="../actix_service/trait.Service.html" title="trait actix_service::Service">Service</a><Request = <a class="struct" href="../actix_web/service/struct.ServiceRequest.html" title="struct actix_web::service::ServiceRequest">ServiceRequest</a>, Response = <a class="struct" href="../actix_web/service/struct.ServiceResponse.html" title="struct actix_web::service::ServiceResponse">ServiceResponse</a><B>, Error = <a class="struct" href="../actix_http/error/struct.Error.html" title="struct actix_http::error::Error">Error</a>>,<br> S::<a class="type" href="../actix_service/trait.Service.html#associatedtype.Future" title="type actix_service::Service::Future">Future</a>: 'static,<br> B: 'static, </span></code><a href='#impl-Transform%3CS%3E' class='anchor'></a><a class='srclink' href='../src/actix_cors/lib.rs.html#530-549' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Request' class="type"><code id='Request.t'>type <a href='../actix_service/transform/trait.Transform.html#associatedtype.Request' class="type">Request</a> = <a class="struct" href="../actix_web/service/struct.ServiceRequest.html" title="struct actix_web::service::ServiceRequest">ServiceRequest</a></code></h4><div class='docblock'><p>Requests handled by the service.</p>
|
||||
</div><h4 id='associatedtype.Response' class="type"><code id='Response.t'>type <a href='../actix_service/transform/trait.Transform.html#associatedtype.Response' class="type">Response</a> = <a class="struct" href="../actix_web/service/struct.ServiceResponse.html" title="struct actix_web::service::ServiceResponse">ServiceResponse</a><B></code></h4><div class='docblock'><p>Responses given by the service.</p>
|
||||
</div><h4 id='associatedtype.Error' class="type"><code id='Error.t'>type <a href='../actix_service/transform/trait.Transform.html#associatedtype.Error' class="type">Error</a> = <a class="struct" href="../actix_http/error/struct.Error.html" title="struct actix_http::error::Error">Error</a></code></h4><div class='docblock'><p>Errors produced by the service.</p>
|
||||
</div><h4 id='associatedtype.InitError' class="type"><code id='InitError.t'>type <a href='../actix_service/transform/trait.Transform.html#associatedtype.InitError' class="type">InitError</a> = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a></code></h4><div class='docblock'><p>Errors produced while building a service.</p>
|
||||
</div><h4 id='associatedtype.Transform' class="type"><code id='Transform.t'>type <a href='../actix_service/transform/trait.Transform.html#associatedtype.Transform' class="type">Transform</a> = <a class="struct" href="../actix_cors/struct.CorsMiddleware.html" title="struct actix_cors::CorsMiddleware">CorsMiddleware</a><S></code></h4><div class='docblock'><p>The <code>TransformService</code> value created by this factory</p>
|
||||
</div><h4 id='associatedtype.Future' class="type"><code id='Future.t'>type <a href='../actix_service/transform/trait.Transform.html#associatedtype.Future' class="type">Future</a> = <a class="struct" href="../futures/future/result_/struct.FutureResult.html" title="struct futures::future::result_::FutureResult">FutureResult</a><Self::<a class="type" href="../actix_service/transform/trait.Transform.html#associatedtype.Transform" title="type actix_service::transform::Transform::Transform">Transform</a>, Self::<a class="type" href="../actix_service/transform/trait.Transform.html#associatedtype.InitError" title="type actix_service::transform::Transform::InitError">InitError</a>></code></h4><div class='docblock'><p>The future response value.</p>
|
||||
</div><h4 id='method.new_transform' class="method hidden"><code id='new_transform.v'>fn <a href='../actix_service/transform/trait.Transform.html#tymethod.new_transform' class='fnname'>new_transform</a>(&self, service: S) -> Self::<a class="type" href="../actix_service/transform/trait.Transform.html#associatedtype.Future" title="type actix_service::transform::Transform::Future">Future</a></code><a class='srclink' href='../src/actix_cors/lib.rs.html#543-548' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Creates and returns a new Service component, asynchronously</p>
|
||||
</div><h4 id='method.map_init_err' class="method hidden"><code id='map_init_err.v'>fn <a href='../actix_service/transform/trait.Transform.html#method.map_init_err' class='fnname'>map_init_err</a><F, E>(self, f: F) -> TransformMapInitErr<Self, S, F, E> <span class="where fmt-newline">where<br> F: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.Fn.html" title="trait core::ops::function::Fn">Fn</a>(Self::<a class="type" href="../actix_service/transform/trait.Transform.html#associatedtype.InitError" title="type actix_service::transform::Transform::InitError">InitError</a>) -> E, </span></code><a class='srclink' href='../src/actix_service/transform.rs.html#42-48' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Map this service's factory error to a different error, returning a new transform service factory. <a href="../actix_service/transform/trait.Transform.html#method.map_init_err">Read more</a></p>
|
||||
</div><h4 id='method.from_err' class="method hidden"><code id='from_err.v'>fn <a href='../actix_service/transform/trait.Transform.html#method.from_err' class='fnname'>from_err</a><E>(self) -> TransformFromErr<Self, S, E> <span class="where fmt-newline">where<br> E: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><Self::<a class="type" href="../actix_service/transform/trait.Transform.html#associatedtype.InitError" title="type actix_service::transform::Transform::InitError">InitError</a>>, </span></code><a class='srclink' href='../src/actix_service/transform.rs.html#55-61' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Map this service's init error to any error implementing <code>From</code> for this service<code>s </code>Error`. <a href="../actix_service/transform/trait.Transform.html#method.from_err">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-RefUnwindSafe' class='impl'><code class='in-band'>impl !<a class="trait" href="https://doc.rust-lang.org/nightly/std/panic/trait.RefUnwindSafe.html" title="trait std::panic::RefUnwindSafe">RefUnwindSafe</a> for <a class="struct" href="../actix_cors/struct.CorsFactory.html" title="struct actix_cors::CorsFactory">CorsFactory</a></code><a href='#impl-RefUnwindSafe' class='anchor'></a></h3><div class='impl-items'></div><h3 id='impl-Send' class='impl'><code class='in-band'>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_cors/struct.CorsFactory.html" title="struct actix_cors::CorsFactory">CorsFactory</a></code><a href='#impl-Send' class='anchor'></a></h3><div class='impl-items'></div><h3 id='impl-Sync' class='impl'><code class='in-band'>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_cors/struct.CorsFactory.html" title="struct actix_cors::CorsFactory">CorsFactory</a></code><a href='#impl-Sync' class='anchor'></a></h3><div class='impl-items'></div><h3 id='impl-Unpin' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a> for <a class="struct" href="../actix_cors/struct.CorsFactory.html" title="struct actix_cors::CorsFactory">CorsFactory</a></code><a href='#impl-Unpin' class='anchor'></a></h3><div class='impl-items'></div><h3 id='impl-UnwindSafe' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/std/panic/trait.UnwindSafe.html" title="trait std::panic::UnwindSafe">UnwindSafe</a> for <a class="struct" href="../actix_cors/struct.CorsFactory.html" title="struct actix_cors::CorsFactory">CorsFactory</a></code><a href='#impl-UnwindSafe' class='anchor'></a></h3><div class='impl-items'></div></div><h2 id='blanket-implementations' class='small-section-header'>Blanket Implementations<a href='#blanket-implementations' class='anchor'></a></h2><div id='blanket-implementations-list'><h3 id='impl-Any' class='impl'><code class='in-band'>impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html" title="trait core::any::Any">Any</a> for T <span class="where fmt-newline">where<br> T: 'static + ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></code><a href='#impl-Any' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/any.rs.html#108-112' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.type_id' class="method hidden"><code id='type_id.v'>fn <a href='https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id' class='fnname'>type_id</a>(&self) -> <a class="struct" href="https://doc.rust-lang.org/nightly/core/any/struct.TypeId.html" title="struct core::any::TypeId">TypeId</a></code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/any.rs.html#109-111' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Gets the <code>TypeId</code> of <code>self</code>. <a href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id">Read more</a></p>
|
||||
</div></div><h3 id='impl-Borrow%3CT%3E' class='impl'><code class='in-band'>impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a><T> for T <span class="where fmt-newline">where<br> T: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></code><a href='#impl-Borrow%3CT%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#213-217' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.borrow' class="method hidden"><code id='borrow.v'>fn <a href='https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow' class='fnname'>borrow</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>T</code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#214-216' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Immutably borrows from an owned value. <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow">Read more</a></p>
|
||||
</div></div><h3 id='impl-BorrowMut%3CT%3E' class='impl'><code class='in-band'>impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html" title="trait core::borrow::BorrowMut">BorrowMut</a><T> for T <span class="where fmt-newline">where<br> T: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></code><a href='#impl-BorrowMut%3CT%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#220-224' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.borrow_mut' class="method hidden"><code id='borrow_mut.v'>fn <a href='https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut' class='fnname'>borrow_mut</a>(&mut self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>T</code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#221-223' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Mutably borrows from an owned value. <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read more</a></p>
|
||||
</div></div><h3 id='impl-From%3CT%3E' class='impl'><code class='in-band'>impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><T> for T</code><a href='#impl-From%3CT%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#564-568' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.from' class="method hidden"><code id='from.v'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from' class='fnname'>from</a>(t: T) -> T</code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#565-567' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||||
</div></div><h3 id='impl-Into%3CU%3E' class='impl'><code class='in-band'>impl<T, U> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><U> for T <span class="where fmt-newline">where<br> U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><T>, </span></code><a href='#impl-Into%3CU%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#553-560' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.into' class="method hidden"><code id='into.v'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.Into.html#tymethod.into' class='fnname'>into</a>(self) -> U</code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#557-559' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||||
</div></div><h3 id='impl-IntoTransform%3CT%2C%20S%3E' class='impl'><code class='in-band'>impl<T, S> <a class="trait" href="../actix_service/transform/trait.IntoTransform.html" title="trait actix_service::transform::IntoTransform">IntoTransform</a><T, S> for T <span class="where fmt-newline">where<br> T: <a class="trait" href="../actix_service/transform/trait.Transform.html" title="trait actix_service::transform::Transform">Transform</a><S>, </span></code><a href='#impl-IntoTransform%3CT%2C%20S%3E' class='anchor'></a><a class='srclink' href='../src/actix_service/transform.rs.html#118-125' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.into_transform-1' class="method hidden"><code id='into_transform.v-1'>fn <a href='../actix_service/transform/trait.IntoTransform.html#tymethod.into_transform' class='fnname'>into_transform</a>(self) -> T</code><a class='srclink' href='../src/actix_service/transform.rs.html#122-124' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Convert to a <code>TransformService</code></p>
|
||||
</div></div><h3 id='impl-TryFrom%3CU%3E' class='impl'><code class='in-band'>impl<T, U> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><U> for T <span class="where fmt-newline">where<br> U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><T>, </span></code><a href='#impl-TryFrom%3CU%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#601-610' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Error-1' class="type"><code id='Error.t-1'>type <a href='https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error' class="type">Error</a> = <a class="enum" href="https://doc.rust-lang.org/nightly/core/convert/enum.Infallible.html" title="enum core::convert::Infallible">Infallible</a></code></h4><div class='docblock'><p>The type returned in the event of a conversion error.</p>
|
||||
</div><h4 id='method.try_from' class="method hidden"><code id='try_from.v'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#tymethod.try_from' class='fnname'>try_from</a>(value: U) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><T, <T as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><U>>::<a class="type" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>></code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#607-609' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||||
</div></div><h3 id='impl-TryInto%3CU%3E' class='impl'><code class='in-band'>impl<T, U> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html" title="trait core::convert::TryInto">TryInto</a><U> for T <span class="where fmt-newline">where<br> U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>, </span></code><a href='#impl-TryInto%3CU%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#587-596' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Error-2' class="type"><code id='Error.t-2'>type <a href='https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html#associatedtype.Error' class="type">Error</a> = <U as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>>::<a class="type" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a></code></h4><div class='docblock'><p>The type returned in the event of a conversion error.</p>
|
||||
</div><h4 id='method.try_into' class="method hidden"><code id='try_into.v'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html#tymethod.try_into' class='fnname'>try_into</a>(self) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><U, <U as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>>::<a class="type" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>></code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#593-595' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||||
</div></div><h3 id='impl-VZip%3CV%3E' class='impl'><code class='in-band'>impl<V, T> <a class="trait" href="../ppv_lite86/types/types/trait.VZip.html" title="trait ppv_lite86::types::types::VZip">VZip</a><V> for T <span class="where fmt-newline">where<br> V: <a class="trait" href="../ppv_lite86/types/types/trait.MultiLane.html" title="trait ppv_lite86::types::types::MultiLane">MultiLane</a><T>, </span></code><a href='#impl-VZip%3CV%3E' class='anchor'></a><a class='srclink' href='../src/ppv_lite86/types.rs.html#212-220' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.vzip' class="method hidden"><code id='vzip.v'>fn <a href='../ppv_lite86/types/types/trait.VZip.html#tymethod.vzip' class='fnname'>vzip</a>(self) -> V</code><a class='srclink' href='../src/ppv_lite86/types.rs.html#217-219' title='goto source code'>[src]</a></h4></div></div></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../";window.currentCrate = "actix_cors";</script><script src="../aliases.js"></script><script src="../main.js"></script><script defer src="../search-index.js"></script></body></html>
|
||||
32
actix_cors/struct.CorsMiddleware.html
Normal file
32
actix_cors/struct.CorsMiddleware.html
Normal 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 `CorsMiddleware` struct in crate `actix_cors`."><meta name="keywords" content="rust, rustlang, rust-lang, CorsMiddleware"><title>actix_cors::CorsMiddleware - 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><noscript><link rel="stylesheet" href="../noscript.css"></noscript><link rel="shortcut icon" href="../favicon.ico"><style type="text/css">#crate-search{background-image:url("../down-arrow.svg");}</style></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">☰</div><a href='../actix_cors/index.html'><div class='logo-container'><img src='../rust-logo.png' alt='logo'></div></a><p class='location'>Struct CorsMiddleware</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-Clone">Clone</a><a href="#impl-Service">Service</a></div><a class="sidebar-title" href="#synthetic-implementations">Auto Trait Implementations</a><div class="sidebar-links"><a href="#impl-RefUnwindSafe">!RefUnwindSafe</a><a href="#impl-Send">!Send</a><a href="#impl-Sync">!Sync</a><a href="#impl-Unpin">Unpin</a><a href="#impl-UnwindSafe">UnwindSafe</a></div><a class="sidebar-title" href="#blanket-implementations">Blanket Implementations</a><div class="sidebar-links"><a href="#impl-Any">Any</a><a href="#impl-Borrow%3CT%3E">Borrow<T></a><a href="#impl-BorrowMut%3CT%3E">BorrowMut<T></a><a href="#impl-From%3CT%3E">From<T></a><a href="#impl-Into%3CU%3E">Into<U></a><a href="#impl-IntoService%3CT%3E">IntoService<T></a><a href="#impl-ServiceExt">ServiceExt</a><a href="#impl-ToOwned">ToOwned</a><a href="#impl-TryFrom%3CU%3E">TryFrom<U></a><a href="#impl-TryInto%3CU%3E">TryInto<U></a><a href="#impl-VZip%3CV%3E">VZip<V></a></div></div><p class='location'><a href='index.html'>actix_cors</a></p><script>window.sidebarCurrent = {name: 'CorsMiddleware', 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"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><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='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../src/actix_cors/lib.rs.html#556-559' title='goto source code'>[src]</a></span><span class='in-band'>Struct <a href='index.html'>actix_cors</a>::<wbr><a class="struct" href=''>CorsMiddleware</a></span></h1><div class="docblock type-decl hidden-by-usual-hider"><pre class='rust struct'>pub struct CorsMiddleware<S> { /* fields omitted */ }</pre></div><div class='docblock'><p><code>Middleware</code> for Cross-origin resource sharing support</p>
|
||||
<p>The Cors struct contains the settings for CORS requests to be validated and
|
||||
for responses to be generated.</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-Clone' class='impl'><code class='in-band'>impl<S: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>> <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> for <a class="struct" href="../actix_cors/struct.CorsMiddleware.html" title="struct actix_cors::CorsMiddleware">CorsMiddleware</a><S></code><a href='#impl-Clone' class='anchor'></a><a class='srclink' href='../src/actix_cors/lib.rs.html#555' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.clone' class="method hidden"><code id='clone.v'>fn <a href='https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#tymethod.clone' class='fnname'>clone</a>(&self) -> <a class="struct" href="../actix_cors/struct.CorsMiddleware.html" title="struct actix_cors::CorsMiddleware">CorsMiddleware</a><S></code><a class='srclink' href='../src/actix_cors/lib.rs.html#555' title='goto source code'>[src]</a></h4><div class='docblock hidden'><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 hidden"><code id='clone_from.v'>fn <a href='https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#method.clone_from' class='fnname'>clone_from</a>(&mut self, source: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>Self)</code><span class='since' title='Stable since Rust version 1.0.0'>1.0.0</span><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/clone.rs.html#131-133' title='goto source code'>[src]</a></h4><div class='docblock hidden'><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-Service' class='impl'><code class='in-band'>impl<S, B> <a class="trait" href="../actix_service/trait.Service.html" title="trait actix_service::Service">Service</a> for <a class="struct" href="../actix_cors/struct.CorsMiddleware.html" title="struct actix_cors::CorsMiddleware">CorsMiddleware</a><S> <span class="where fmt-newline">where<br> S: <a class="trait" href="../actix_service/trait.Service.html" title="trait actix_service::Service">Service</a><Request = <a class="struct" href="../actix_web/service/struct.ServiceRequest.html" title="struct actix_web::service::ServiceRequest">ServiceRequest</a>, Response = <a class="struct" href="../actix_web/service/struct.ServiceResponse.html" title="struct actix_web::service::ServiceResponse">ServiceResponse</a><B>, Error = <a class="struct" href="../actix_http/error/struct.Error.html" title="struct actix_http::error::Error">Error</a>>,<br> S::<a class="type" href="../actix_service/trait.Service.html#associatedtype.Future" title="type actix_service::Service::Future">Future</a>: 'static,<br> B: 'static, </span></code><a href='#impl-Service' class='anchor'></a><a class='srclink' href='../src/actix_cors/lib.rs.html#673-802' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Request' class="type"><code id='Request.t'>type <a href='../actix_service/trait.Service.html#associatedtype.Request' class="type">Request</a> = <a class="struct" href="../actix_web/service/struct.ServiceRequest.html" title="struct actix_web::service::ServiceRequest">ServiceRequest</a></code></h4><div class='docblock'><p>Requests handled by the service.</p>
|
||||
</div><h4 id='associatedtype.Response' class="type"><code id='Response.t'>type <a href='../actix_service/trait.Service.html#associatedtype.Response' class="type">Response</a> = <a class="struct" href="../actix_web/service/struct.ServiceResponse.html" title="struct actix_web::service::ServiceResponse">ServiceResponse</a><B></code></h4><div class='docblock'><p>Responses given by the service.</p>
|
||||
</div><h4 id='associatedtype.Error' class="type"><code id='Error.t'>type <a href='../actix_service/trait.Service.html#associatedtype.Error' class="type">Error</a> = <a class="struct" href="../actix_http/error/struct.Error.html" title="struct actix_http::error::Error">Error</a></code></h4><div class='docblock'><p>Errors produced by the service.</p>
|
||||
</div><h4 id='associatedtype.Future' class="type"><code id='Future.t'>type <a href='../actix_service/trait.Service.html#associatedtype.Future' class="type">Future</a> = <a class="enum" href="../futures/future/either/enum.Either.html" title="enum futures::future::either::Either">Either</a><<a class="struct" href="../futures/future/result_/struct.FutureResult.html" title="struct futures::future::result_::FutureResult">FutureResult</a><Self::<a class="type" href="../actix_service/trait.Service.html#associatedtype.Response" title="type actix_service::Service::Response">Response</a>, <a class="struct" href="../actix_http/error/struct.Error.html" title="struct actix_http::error::Error">Error</a>>, <a class="enum" href="../futures/future/either/enum.Either.html" title="enum futures::future::either::Either">Either</a><S::<a class="type" href="../actix_service/trait.Service.html#associatedtype.Future" title="type actix_service::Service::Future">Future</a>, <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="../futures/future/trait.Future.html" title="trait futures::future::Future">Future</a><Item = Self::<a class="type" href="../actix_service/trait.Service.html#associatedtype.Response" title="type actix_service::Service::Response">Response</a>, Error = <a class="struct" href="../actix_http/error/struct.Error.html" title="struct actix_http::error::Error">Error</a>>>>></code></h4><div class='docblock'><p>The future response value.</p>
|
||||
</div><h4 id='method.poll_ready' class="method hidden"><code id='poll_ready.v'>fn <a href='../actix_service/trait.Service.html#tymethod.poll_ready' class='fnname'>poll_ready</a>(&mut self) -> <a class="type" href="../futures/poll/type.Poll.html" title="type futures::poll::Poll">Poll</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, Self::<a class="type" href="../actix_service/trait.Service.html#associatedtype.Error" title="type actix_service::Service::Error">Error</a>></code><a class='srclink' href='../src/actix_cors/lib.rs.html#687-689' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Returns <code>Ready</code> when the service is able to process requests. <a href="../actix_service/trait.Service.html#tymethod.poll_ready">Read more</a></p>
|
||||
</div><h4 id='method.call' class="method hidden"><code id='call.v'>fn <a href='../actix_service/trait.Service.html#tymethod.call' class='fnname'>call</a>(&mut self, req: <a class="struct" href="../actix_web/service/struct.ServiceRequest.html" title="struct actix_web::service::ServiceRequest">ServiceRequest</a>) -> Self::<a class="type" href="../actix_service/trait.Service.html#associatedtype.Future" title="type actix_service::Service::Future">Future</a></code><a class='srclink' href='../src/actix_cors/lib.rs.html#691-801' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Process the request and return the response asynchronously. <a href="../actix_service/trait.Service.html#tymethod.call">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-RefUnwindSafe' class='impl'><code class='in-band'>impl<S> !<a class="trait" href="https://doc.rust-lang.org/nightly/std/panic/trait.RefUnwindSafe.html" title="trait std::panic::RefUnwindSafe">RefUnwindSafe</a> for <a class="struct" href="../actix_cors/struct.CorsMiddleware.html" title="struct actix_cors::CorsMiddleware">CorsMiddleware</a><S></code><a href='#impl-RefUnwindSafe' class='anchor'></a></h3><div class='impl-items'></div><h3 id='impl-Send' class='impl'><code class='in-band'>impl<S> !<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_cors/struct.CorsMiddleware.html" title="struct actix_cors::CorsMiddleware">CorsMiddleware</a><S></code><a href='#impl-Send' class='anchor'></a></h3><div class='impl-items'></div><h3 id='impl-Sync' class='impl'><code class='in-band'>impl<S> !<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_cors/struct.CorsMiddleware.html" title="struct actix_cors::CorsMiddleware">CorsMiddleware</a><S></code><a href='#impl-Sync' class='anchor'></a></h3><div class='impl-items'></div><h3 id='impl-Unpin' class='impl'><code class='in-band'>impl<S> <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a> for <a class="struct" href="../actix_cors/struct.CorsMiddleware.html" title="struct actix_cors::CorsMiddleware">CorsMiddleware</a><S> <span class="where fmt-newline">where<br> S: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a>, </span></code><a href='#impl-Unpin' class='anchor'></a></h3><div class='impl-items'></div><h3 id='impl-UnwindSafe' class='impl'><code class='in-band'>impl<S> <a class="trait" href="https://doc.rust-lang.org/nightly/std/panic/trait.UnwindSafe.html" title="trait std::panic::UnwindSafe">UnwindSafe</a> for <a class="struct" href="../actix_cors/struct.CorsMiddleware.html" title="struct actix_cors::CorsMiddleware">CorsMiddleware</a><S> <span class="where fmt-newline">where<br> S: <a class="trait" href="https://doc.rust-lang.org/nightly/std/panic/trait.UnwindSafe.html" title="trait std::panic::UnwindSafe">UnwindSafe</a>, </span></code><a href='#impl-UnwindSafe' class='anchor'></a></h3><div class='impl-items'></div></div><h2 id='blanket-implementations' class='small-section-header'>Blanket Implementations<a href='#blanket-implementations' class='anchor'></a></h2><div id='blanket-implementations-list'><h3 id='impl-Any' class='impl'><code class='in-band'>impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html" title="trait core::any::Any">Any</a> for T <span class="where fmt-newline">where<br> T: 'static + ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></code><a href='#impl-Any' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/any.rs.html#108-112' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.type_id' class="method hidden"><code id='type_id.v'>fn <a href='https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id' class='fnname'>type_id</a>(&self) -> <a class="struct" href="https://doc.rust-lang.org/nightly/core/any/struct.TypeId.html" title="struct core::any::TypeId">TypeId</a></code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/any.rs.html#109-111' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Gets the <code>TypeId</code> of <code>self</code>. <a href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id">Read more</a></p>
|
||||
</div></div><h3 id='impl-Borrow%3CT%3E' class='impl'><code class='in-band'>impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a><T> for T <span class="where fmt-newline">where<br> T: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></code><a href='#impl-Borrow%3CT%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#213-217' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.borrow' class="method hidden"><code id='borrow.v'>fn <a href='https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow' class='fnname'>borrow</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>T</code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#214-216' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Immutably borrows from an owned value. <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow">Read more</a></p>
|
||||
</div></div><h3 id='impl-BorrowMut%3CT%3E' class='impl'><code class='in-band'>impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html" title="trait core::borrow::BorrowMut">BorrowMut</a><T> for T <span class="where fmt-newline">where<br> T: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></code><a href='#impl-BorrowMut%3CT%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#220-224' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.borrow_mut' class="method hidden"><code id='borrow_mut.v'>fn <a href='https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut' class='fnname'>borrow_mut</a>(&mut self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>T</code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#221-223' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Mutably borrows from an owned value. <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read more</a></p>
|
||||
</div></div><h3 id='impl-From%3CT%3E' class='impl'><code class='in-band'>impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><T> for T</code><a href='#impl-From%3CT%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#564-568' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.from' class="method hidden"><code id='from.v'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from' class='fnname'>from</a>(t: T) -> T</code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#565-567' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||||
</div></div><h3 id='impl-Into%3CU%3E' class='impl'><code class='in-band'>impl<T, U> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><U> for T <span class="where fmt-newline">where<br> U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><T>, </span></code><a href='#impl-Into%3CU%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#553-560' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.into' class="method hidden"><code id='into.v'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.Into.html#tymethod.into' class='fnname'>into</a>(self) -> U</code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#557-559' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||||
</div></div><h3 id='impl-IntoService%3CT%3E' class='impl'><code class='in-band'>impl<T> <a class="trait" href="../actix_service/trait.IntoService.html" title="trait actix_service::IntoService">IntoService</a><T> for T <span class="where fmt-newline">where<br> T: <a class="trait" href="../actix_service/trait.Service.html" title="trait actix_service::Service">Service</a>, </span></code><a href='#impl-IntoService%3CT%3E' class='anchor'></a><a class='srclink' href='../src/actix_service/lib.rs.html#443-450' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.into_service' class="method hidden"><code id='into_service.v'>fn <a href='../actix_service/trait.IntoService.html#tymethod.into_service' class='fnname'>into_service</a>(self) -> T</code><a class='srclink' href='../src/actix_service/lib.rs.html#447-449' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Convert to a <code>Service</code></p>
|
||||
</div></div><h3 id='impl-ServiceExt' class='impl'><code class='in-band'>impl<T> <a class="trait" href="../actix_service/trait.ServiceExt.html" title="trait actix_service::ServiceExt">ServiceExt</a> for T <span class="where fmt-newline">where<br> T: <a class="trait" href="../actix_service/trait.Service.html" title="trait actix_service::Service">Service</a> + ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></code><a href='#impl-ServiceExt' class='anchor'></a><a class='srclink' href='../src/actix_service/lib.rs.html#174' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.apply_fn' class="method hidden"><code id='apply_fn.v'>fn <a href='../actix_service/trait.ServiceExt.html#method.apply_fn' class='fnname'>apply_fn</a><F, B, B1, Out>(<br> self, <br> service: B1, <br> f: F<br>) -> AndThenApply<Self, B, F, Out> <span class="where fmt-newline">where<br> B: <a class="trait" href="../actix_service/trait.Service.html" title="trait actix_service::Service">Service</a><Error = Self::<a class="type" href="../actix_service/trait.Service.html#associatedtype.Error" title="type actix_service::Service::Error">Error</a>>,<br> B1: <a class="trait" href="../actix_service/trait.IntoService.html" title="trait actix_service::IntoService">IntoService</a><B>,<br> F: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(Self::<a class="type" href="../actix_service/trait.Service.html#associatedtype.Response" title="type actix_service::Service::Response">Response</a>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>B) -> Out,<br> Out: <a class="trait" href="../futures/future/trait.IntoFuture.html" title="trait futures::future::IntoFuture">IntoFuture</a>,<br> <Out as <a class="trait" href="../futures/future/trait.IntoFuture.html" title="trait futures::future::IntoFuture">IntoFuture</a>>::<a class="type" href="../futures/future/trait.IntoFuture.html#associatedtype.Error" title="type futures::future::IntoFuture::Error">Error</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><Self::<a class="type" href="../actix_service/trait.Service.html#associatedtype.Error" title="type actix_service::Service::Error">Error</a>>, </span></code><a class='srclink' href='../src/actix_service/lib.rs.html#84-94' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Apply function to specified service and use it as a next service in chain. <a href="../actix_service/trait.ServiceExt.html#method.apply_fn">Read more</a></p>
|
||||
</div><h4 id='method.and_then' class="method hidden"><code id='and_then.v'>fn <a href='../actix_service/trait.ServiceExt.html#method.and_then' class='fnname'>and_then</a><F, B>(self, service: F) -> <a class="struct" href="../actix_service/and_then/struct.AndThen.html" title="struct actix_service::and_then::AndThen">AndThen</a><Self, B> <span class="where fmt-newline">where<br> B: <a class="trait" href="../actix_service/trait.Service.html" title="trait actix_service::Service">Service</a><Request = Self::<a class="type" href="../actix_service/trait.Service.html#associatedtype.Response" title="type actix_service::Service::Response">Response</a>, Error = Self::<a class="type" href="../actix_service/trait.Service.html#associatedtype.Error" title="type actix_service::Service::Error">Error</a>>,<br> F: <a class="trait" href="../actix_service/trait.IntoService.html" title="trait actix_service::IntoService">IntoService</a><B>, </span></code><a class='srclink' href='../src/actix_service/lib.rs.html#105-112' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Call another service after call to this one has resolved successfully. <a href="../actix_service/trait.ServiceExt.html#method.and_then">Read more</a></p>
|
||||
</div><h4 id='method.from_err' class="method hidden"><code id='from_err.v'>fn <a href='../actix_service/trait.ServiceExt.html#method.from_err' class='fnname'>from_err</a><E>(self) -> <a class="struct" href="../actix_service/from_err/struct.FromErr.html" title="struct actix_service::from_err::FromErr">FromErr</a><Self, E> <span class="where fmt-newline">where<br> E: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><Self::<a class="type" href="../actix_service/trait.Service.html#associatedtype.Error" title="type actix_service::Service::Error">Error</a>>, </span></code><a class='srclink' href='../src/actix_service/lib.rs.html#119-125' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Map this service's error to any error implementing <code>From</code> for this service<code>s </code>Error`. <a href="../actix_service/trait.ServiceExt.html#method.from_err">Read more</a></p>
|
||||
</div><h4 id='method.then' class="method hidden"><code id='then.v'>fn <a href='../actix_service/trait.ServiceExt.html#method.then' class='fnname'>then</a><B>(self, service: B) -> <a class="struct" href="../actix_service/then/struct.Then.html" title="struct actix_service::then::Then">Then</a><Self, B> <span class="where fmt-newline">where<br> B: <a class="trait" href="../actix_service/trait.Service.html" title="trait actix_service::Service">Service</a><Request = <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><Self::<a class="type" href="../actix_service/trait.Service.html#associatedtype.Response" title="type actix_service::Service::Response">Response</a>, Self::<a class="type" href="../actix_service/trait.Service.html#associatedtype.Error" title="type actix_service::Service::Error">Error</a>>, Error = Self::<a class="type" href="../actix_service/trait.Service.html#associatedtype.Error" title="type actix_service::Service::Error">Error</a>>, </span></code><a class='srclink' href='../src/actix_service/lib.rs.html#132-138' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Chain on a computation for when a call to the service finished, passing the result of the call to the next service <code>B</code>. <a href="../actix_service/trait.ServiceExt.html#method.then">Read more</a></p>
|
||||
</div><h4 id='method.map' class="method hidden"><code id='map.v'>fn <a href='../actix_service/trait.ServiceExt.html#method.map' class='fnname'>map</a><F, R>(self, f: F) -> <a class="struct" href="../actix_service/map/struct.Map.html" title="struct actix_service::map::Map">Map</a><Self, F, R> <span class="where fmt-newline">where<br> F: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(Self::<a class="type" href="../actix_service/trait.Service.html#associatedtype.Response" title="type actix_service::Service::Response">Response</a>) -> R, </span></code><a class='srclink' href='../src/actix_service/lib.rs.html#149-155' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Map this service's output to a different type, returning a new service of the resulting type. <a href="../actix_service/trait.ServiceExt.html#method.map">Read more</a></p>
|
||||
</div><h4 id='method.map_err' class="method hidden"><code id='map_err.v'>fn <a href='../actix_service/trait.ServiceExt.html#method.map_err' class='fnname'>map_err</a><F, E>(self, f: F) -> <a class="struct" href="../actix_service/map_err/struct.MapErr.html" title="struct actix_service::map_err::MapErr">MapErr</a><Self, F, E> <span class="where fmt-newline">where<br> F: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.Fn.html" title="trait core::ops::function::Fn">Fn</a>(Self::<a class="type" href="../actix_service/trait.Service.html#associatedtype.Error" title="type actix_service::Service::Error">Error</a>) -> E, </span></code><a class='srclink' href='../src/actix_service/lib.rs.html#165-171' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Map this service's error to a different error, returning a new service. <a href="../actix_service/trait.ServiceExt.html#method.map_err">Read more</a></p>
|
||||
</div></div><h3 id='impl-ToOwned' class='impl'><code class='in-band'>impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html" title="trait alloc::borrow::ToOwned">ToOwned</a> for T <span class="where fmt-newline">where<br> T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>, </span></code><a href='#impl-ToOwned' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/alloc/borrow.rs.html#80-92' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Owned' class="type"><code id='Owned.t'>type <a href='https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#associatedtype.Owned' class="type">Owned</a> = T</code></h4><div class='docblock'><p>The resulting type after obtaining ownership.</p>
|
||||
</div><h4 id='method.to_owned' class="method hidden"><code id='to_owned.v'>fn <a href='https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#tymethod.to_owned' class='fnname'>to_owned</a>(&self) -> T</code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/alloc/borrow.rs.html#85-87' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Creates owned data from borrowed data, usually by cloning. <a href="https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#tymethod.to_owned">Read more</a></p>
|
||||
</div><h4 id='method.clone_into' class="method hidden"><code id='clone_into.v'>fn <a href='https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#method.clone_into' class='fnname'>clone_into</a>(&self, target: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>T)</code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/alloc/borrow.rs.html#89-91' title='goto source code'>[src]</a></h4><div class='stability hidden'><div class='stab unstable'><details><summary><span class='emoji'>🔬</span> This is a nightly-only experimental API. (<code>toowned_clone_into</code>)</summary><p>recently added</p>
|
||||
</details></div></div><div class='docblock hidden'><p>Uses borrowed data to replace owned data, usually by cloning. <a href="https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#method.clone_into">Read more</a></p>
|
||||
</div></div><h3 id='impl-TryFrom%3CU%3E' class='impl'><code class='in-band'>impl<T, U> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><U> for T <span class="where fmt-newline">where<br> U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><T>, </span></code><a href='#impl-TryFrom%3CU%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#601-610' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Error-1' class="type"><code id='Error.t-1'>type <a href='https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error' class="type">Error</a> = <a class="enum" href="https://doc.rust-lang.org/nightly/core/convert/enum.Infallible.html" title="enum core::convert::Infallible">Infallible</a></code></h4><div class='docblock'><p>The type returned in the event of a conversion error.</p>
|
||||
</div><h4 id='method.try_from' class="method hidden"><code id='try_from.v'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#tymethod.try_from' class='fnname'>try_from</a>(value: U) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><T, <T as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><U>>::<a class="type" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>></code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#607-609' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||||
</div></div><h3 id='impl-TryInto%3CU%3E' class='impl'><code class='in-band'>impl<T, U> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html" title="trait core::convert::TryInto">TryInto</a><U> for T <span class="where fmt-newline">where<br> U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>, </span></code><a href='#impl-TryInto%3CU%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#587-596' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Error-2' class="type"><code id='Error.t-2'>type <a href='https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html#associatedtype.Error' class="type">Error</a> = <U as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>>::<a class="type" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a></code></h4><div class='docblock'><p>The type returned in the event of a conversion error.</p>
|
||||
</div><h4 id='method.try_into' class="method hidden"><code id='try_into.v'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html#tymethod.try_into' class='fnname'>try_into</a>(self) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><U, <U as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>>::<a class="type" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>></code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#593-595' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||||
</div></div><h3 id='impl-VZip%3CV%3E' class='impl'><code class='in-band'>impl<V, T> <a class="trait" href="../ppv_lite86/types/types/trait.VZip.html" title="trait ppv_lite86::types::types::VZip">VZip</a><V> for T <span class="where fmt-newline">where<br> V: <a class="trait" href="../ppv_lite86/types/types/trait.MultiLane.html" title="trait ppv_lite86::types::types::MultiLane">MultiLane</a><T>, </span></code><a href='#impl-VZip%3CV%3E' class='anchor'></a><a class='srclink' href='../src/ppv_lite86/types.rs.html#212-220' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.vzip' class="method hidden"><code id='vzip.v'>fn <a href='../ppv_lite86/types/types/trait.VZip.html#tymethod.vzip' class='fnname'>vzip</a>(self) -> V</code><a class='srclink' href='../src/ppv_lite86/types.rs.html#217-219' title='goto source code'>[src]</a></h4></div></div></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../";window.currentCrate = "actix_cors";</script><script src="../aliases.js"></script><script src="../main.js"></script><script defer src="../search-index.js"></script></body></html>
|
||||
3
actix_files/all.html
Normal file
3
actix_files/all.html
Normal file
@@ -0,0 +1,3 @@
|
||||
<!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="List of all items in this crate"><meta name="keywords" content="rust, rustlang, rust-lang"><title>List of all items in this crate</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><noscript><link rel="stylesheet" href="../noscript.css"></noscript><link rel="shortcut icon" href="../favicon.ico"><style type="text/css">#crate-search{background-image:url("../down-arrow.svg");}</style></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">☰</div><a href='../actix_files/index.html'><div class='logo-container'><img src='../rust-logo.png' alt='logo'></div></a></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"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><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='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span>
|
||||
</span>
|
||||
<span class='in-band'>List of all items</span></h1><h3 id='Structs'>Structs</h3><ul class='structs docblock'><li><a href='struct.Directory.html'>Directory</a></li><li><a href='struct.Files.html'>Files</a></li><li><a href='struct.FilesService.html'>FilesService</a></li><li><a href='struct.HttpRange.html'>HttpRange</a></li><li><a href='struct.NamedFile.html'>NamedFile</a></li></ul><h3 id='Functions'>Functions</h3><ul class='functions docblock'><li><a href='fn.file_extension_to_mime.html'>file_extension_to_mime</a></li></ul></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../";window.currentCrate = "actix_files";</script><script src="../aliases.js"></script><script src="../main.js"></script><script defer src="../search-index.js"></script></body></html>
|
||||
4
actix_files/fn.file_extension_to_mime.html
Normal file
4
actix_files/fn.file_extension_to_mime.html
Normal file
@@ -0,0 +1,4 @@
|
||||
<!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 `file_extension_to_mime` fn in crate `actix_files`."><meta name="keywords" content="rust, rustlang, rust-lang, file_extension_to_mime"><title>actix_files::file_extension_to_mime - 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><noscript><link rel="stylesheet" href="../noscript.css"></noscript><link rel="shortcut icon" href="../favicon.ico"><style type="text/css">#crate-search{background-image:url("../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[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">☰</div><a href='../actix_files/index.html'><div class='logo-container'><img src='../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class='location'><a href='index.html'>actix_files</a></p><script>window.sidebarCurrent = {name: 'file_extension_to_mime', ty: 'fn', 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"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><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='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../src/actix_files/lib.rs.html#46-48' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='index.html'>actix_files</a>::<wbr><a class="fn" href=''>file_extension_to_mime</a></span></h1><pre class='rust fn'>pub fn file_extension_to_mime(ext: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>) -> <a class="struct" href="../mime/struct.Mime.html" title="struct mime::Mime">Mime</a></pre><div class='docblock'><p>Return the MIME type associated with a filename extension (case-insensitive).
|
||||
If <code>ext</code> is empty or no associated type for the extension was found, returns
|
||||
the type <code>application/octet-stream</code>.</p>
|
||||
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../";window.currentCrate = "actix_files";</script><script src="../aliases.js"></script><script src="../main.js"></script><script defer src="../search-index.js"></script></body></html>
|
||||
11
actix_files/index.html
Normal file
11
actix_files/index.html
Normal file
@@ -0,0 +1,11 @@
|
||||
<!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 `actix_files` crate."><meta name="keywords" content="rust, rustlang, rust-lang, actix_files"><title>actix_files - 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><noscript><link rel="stylesheet" href="../noscript.css"></noscript><link rel="shortcut icon" href="../favicon.ico"><style type="text/css">#crate-search{background-image:url("../down-arrow.svg");}</style></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">☰</div><a href='../actix_files/index.html'><div class='logo-container'><img src='../rust-logo.png' alt='logo'></div></a><p class='location'>Crate actix_files</p><div class="sidebar-elems"><a id='all-types' href='all.html'><p>See all actix_files's items</p></a><div class="block items"><ul><li><a href="#structs">Structs</a></li><li><a href="#functions">Functions</a></li></ul></div><p class='location'></p><script>window.sidebarCurrent = {name: 'actix_files', ty: 'mod', relpath: '../'};</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"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><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='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../src/actix_files/lib.rs.html#1-1423' title='goto source code'>[src]</a></span><span class='in-band'>Crate <a class="mod" href=''>actix_files</a></span></h1><div class='docblock'><p>Static files support</p>
|
||||
</div><h2 id='structs' class='section-header'><a href="#structs">Structs</a></h2>
|
||||
<table><tr class='module-item'><td><a class="struct" href="struct.Directory.html" title='actix_files::Directory struct'>Directory</a></td><td class='docblock-short'><p>A directory; responds with the generated directory listing.</p>
|
||||
</td></tr><tr class='module-item'><td><a class="struct" href="struct.Files.html" title='actix_files::Files struct'>Files</a></td><td class='docblock-short'><p>Static files handling</p>
|
||||
</td></tr><tr class='module-item'><td><a class="struct" href="struct.FilesService.html" title='actix_files::FilesService struct'>FilesService</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="struct" href="struct.HttpRange.html" title='actix_files::HttpRange struct'>HttpRange</a></td><td class='docblock-short'><p>HTTP Range header representation.</p>
|
||||
</td></tr><tr class='module-item'><td><a class="struct" href="struct.NamedFile.html" title='actix_files::NamedFile struct'>NamedFile</a></td><td class='docblock-short'><p>A file with an associated name.</p>
|
||||
</td></tr></table><h2 id='functions' class='section-header'><a href="#functions">Functions</a></h2>
|
||||
<table><tr class='module-item'><td><a class="fn" href="fn.file_extension_to_mime.html" title='actix_files::file_extension_to_mime fn'>file_extension_to_mime</a></td><td class='docblock-short'><p>Return the MIME type associated with a filename extension (case-insensitive).
|
||||
If <code>ext</code> is empty or no associated type for the extension was found, returns
|
||||
the type <code>application/octet-stream</code>.</p>
|
||||
</td></tr></table></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../";window.currentCrate = "actix_files";</script><script src="../aliases.js"></script><script src="../main.js"></script><script defer src="../search-index.js"></script></body></html>
|
||||
10
actix_files/named/struct.NamedFile.html
Normal file
10
actix_files/named/struct.NamedFile.html
Normal file
@@ -0,0 +1,10 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="refresh" content="0;URL=../../actix_files/struct.NamedFile.html">
|
||||
</head>
|
||||
<body>
|
||||
<p>Redirecting to <a href="../../actix_files/struct.NamedFile.html">../../actix_files/struct.NamedFile.html</a>...</p>
|
||||
<script>location.replace("../../actix_files/struct.NamedFile.html" + location.search + location.hash);</script>
|
||||
</body>
|
||||
</html>
|
||||
10
actix_files/range/struct.HttpRange.html
Normal file
10
actix_files/range/struct.HttpRange.html
Normal file
@@ -0,0 +1,10 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="refresh" content="0;URL=../../actix_files/struct.HttpRange.html">
|
||||
</head>
|
||||
<body>
|
||||
<p>Redirecting to <a href="../../actix_files/struct.HttpRange.html">../../actix_files/struct.HttpRange.html</a>...</p>
|
||||
<script>location.replace("../../actix_files/struct.HttpRange.html" + location.search + location.hash);</script>
|
||||
</body>
|
||||
</html>
|
||||
1
actix_files/sidebar-items.js
Normal file
1
actix_files/sidebar-items.js
Normal file
@@ -0,0 +1 @@
|
||||
initSidebarItems({"fn":[["file_extension_to_mime","Return the MIME type associated with a filename extension (case-insensitive). If `ext` is empty or no associated type for the extension was found, returns the type `application/octet-stream`."]],"struct":[["Directory","A directory; responds with the generated directory listing."],["Files","Static files handling"],["FilesService",""],["HttpRange","HTTP Range header representation."],["NamedFile","A file with an associated name."]]});
|
||||
20
actix_files/struct.Directory.html
Normal file
20
actix_files/struct.Directory.html
Normal file
@@ -0,0 +1,20 @@
|
||||
<!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 `Directory` struct in crate `actix_files`."><meta name="keywords" content="rust, rustlang, rust-lang, Directory"><title>actix_files::Directory - 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><noscript><link rel="stylesheet" href="../noscript.css"></noscript><link rel="shortcut icon" href="../favicon.ico"><style type="text/css">#crate-search{background-image:url("../down-arrow.svg");}</style></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">☰</div><a href='../actix_files/index.html'><div class='logo-container'><img src='../rust-logo.png' alt='logo'></div></a><p class='location'>Struct Directory</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#fields">Fields</a><div class="sidebar-links"><a href="#structfield.base">base</a><a href="#structfield.path">path</a></div><a class="sidebar-title" href="#methods">Methods</a><div class="sidebar-links"><a href="#method.is_visible">is_visible</a><a href="#method.new">new</a></div><a class="sidebar-title" href="#implementations">Trait Implementations</a><div class="sidebar-links"><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-RefUnwindSafe">RefUnwindSafe</a><a href="#impl-Send">Send</a><a href="#impl-Sync">Sync</a><a href="#impl-Unpin">Unpin</a><a href="#impl-UnwindSafe">UnwindSafe</a></div><a class="sidebar-title" href="#blanket-implementations">Blanket Implementations</a><div class="sidebar-links"><a href="#impl-Any">Any</a><a href="#impl-Borrow%3CT%3E">Borrow<T></a><a href="#impl-BorrowMut%3CT%3E">BorrowMut<T></a><a href="#impl-From%3CT%3E">From<T></a><a href="#impl-Into%3CU%3E">Into<U></a><a href="#impl-TryFrom%3CU%3E">TryFrom<U></a><a href="#impl-TryInto%3CU%3E">TryInto<U></a><a href="#impl-VZip%3CV%3E">VZip<V></a></div></div><p class='location'><a href='index.html'>actix_files</a></p><script>window.sidebarCurrent = {name: 'Directory', 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"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><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='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../src/actix_files/lib.rs.html#116-121' title='goto source code'>[src]</a></span><span class='in-band'>Struct <a href='index.html'>actix_files</a>::<wbr><a class="struct" href=''>Directory</a></span></h1><div class="docblock type-decl hidden-by-usual-hider"><pre class='rust struct'>pub struct Directory {
|
||||
pub base: <a class="struct" href="https://doc.rust-lang.org/nightly/std/path/struct.PathBuf.html" title="struct std::path::PathBuf">PathBuf</a>,
|
||||
pub path: <a class="struct" href="https://doc.rust-lang.org/nightly/std/path/struct.PathBuf.html" title="struct std::path::PathBuf">PathBuf</a>,
|
||||
}</pre></div><div class='docblock'><p>A directory; responds with the generated directory listing.</p>
|
||||
</div><h2 id='fields' class='fields small-section-header'>
|
||||
Fields<a href='#fields' class='anchor'></a></h2><span id="structfield.base" class="structfield small-section-header"><a href="#structfield.base" class="anchor field"></a><code id="base.v">base: <a class="struct" href="https://doc.rust-lang.org/nightly/std/path/struct.PathBuf.html" title="struct std::path::PathBuf">PathBuf</a></code></span><div class='docblock'><p>Base directory</p>
|
||||
</div><span id="structfield.path" class="structfield small-section-header"><a href="#structfield.path" class="anchor field"></a><code id="path.v">path: <a class="struct" href="https://doc.rust-lang.org/nightly/std/path/struct.PathBuf.html" title="struct std::path::PathBuf">PathBuf</a></code></span><div class='docblock'><p>Path of subdirectory to generate listing for</p>
|
||||
</div><h2 id='methods' class='small-section-header'>Methods<a href='#methods' class='anchor'></a></h2><h3 id='impl' class='impl'><code class='in-band'>impl <a class="struct" href="../actix_files/struct.Directory.html" title="struct actix_files::Directory">Directory</a></code><a href='#impl' class='anchor'></a><a class='srclink' href='../src/actix_files/lib.rs.html#123-144' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.new' class="method"><code id='new.v'>pub fn <a href='#method.new' class='fnname'>new</a>(base: <a class="struct" href="https://doc.rust-lang.org/nightly/std/path/struct.PathBuf.html" title="struct std::path::PathBuf">PathBuf</a>, path: <a class="struct" href="https://doc.rust-lang.org/nightly/std/path/struct.PathBuf.html" title="struct std::path::PathBuf">PathBuf</a>) -> <a class="struct" href="../actix_files/struct.Directory.html" title="struct actix_files::Directory">Directory</a></code><a class='srclink' href='../src/actix_files/lib.rs.html#125-127' title='goto source code'>[src]</a></h4><div class='docblock'><p>Create a new directory</p>
|
||||
</div><h4 id='method.is_visible' class="method"><code id='is_visible.v'>pub fn <a href='#method.is_visible' class='fnname'>is_visible</a>(&self, entry: &<a class="type" href="https://doc.rust-lang.org/nightly/std/io/error/type.Result.html" title="type std::io::error::Result">Result</a><<a class="struct" href="https://doc.rust-lang.org/nightly/std/fs/struct.DirEntry.html" title="struct std::fs::DirEntry">DirEntry</a>>) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><a class='srclink' href='../src/actix_files/lib.rs.html#130-143' title='goto source code'>[src]</a></h4><div class='docblock'><p>Is this entry visible from this directory?</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-Debug' class='impl'><code class='in-band'>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_files/struct.Directory.html" title="struct actix_files::Directory">Directory</a></code><a href='#impl-Debug' class='anchor'></a><a class='srclink' href='../src/actix_files/lib.rs.html#115' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.fmt' class="method hidden"><code id='fmt.v'>fn <a href='https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt' class='fnname'>fmt</a>(&self, f: &mut <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a>) -> <a class="type" href="https://doc.rust-lang.org/nightly/core/fmt/type.Result.html" title="type core::fmt::Result">Result</a></code><a class='srclink' href='../src/actix_files/lib.rs.html#115' title='goto source code'>[src]</a></h4><div class='docblock hidden'><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></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-RefUnwindSafe' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/std/panic/trait.RefUnwindSafe.html" title="trait std::panic::RefUnwindSafe">RefUnwindSafe</a> for <a class="struct" href="../actix_files/struct.Directory.html" title="struct actix_files::Directory">Directory</a></code><a href='#impl-RefUnwindSafe' class='anchor'></a></h3><div class='impl-items'></div><h3 id='impl-Send' class='impl'><code class='in-band'>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_files/struct.Directory.html" title="struct actix_files::Directory">Directory</a></code><a href='#impl-Send' class='anchor'></a></h3><div class='impl-items'></div><h3 id='impl-Sync' class='impl'><code class='in-band'>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_files/struct.Directory.html" title="struct actix_files::Directory">Directory</a></code><a href='#impl-Sync' class='anchor'></a></h3><div class='impl-items'></div><h3 id='impl-Unpin' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a> for <a class="struct" href="../actix_files/struct.Directory.html" title="struct actix_files::Directory">Directory</a></code><a href='#impl-Unpin' class='anchor'></a></h3><div class='impl-items'></div><h3 id='impl-UnwindSafe' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/std/panic/trait.UnwindSafe.html" title="trait std::panic::UnwindSafe">UnwindSafe</a> for <a class="struct" href="../actix_files/struct.Directory.html" title="struct actix_files::Directory">Directory</a></code><a href='#impl-UnwindSafe' class='anchor'></a></h3><div class='impl-items'></div></div><h2 id='blanket-implementations' class='small-section-header'>Blanket Implementations<a href='#blanket-implementations' class='anchor'></a></h2><div id='blanket-implementations-list'><h3 id='impl-Any' class='impl'><code class='in-band'>impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html" title="trait core::any::Any">Any</a> for T <span class="where fmt-newline">where<br> T: 'static + ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></code><a href='#impl-Any' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/any.rs.html#108-112' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.type_id' class="method hidden"><code id='type_id.v'>fn <a href='https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id' class='fnname'>type_id</a>(&self) -> <a class="struct" href="https://doc.rust-lang.org/nightly/core/any/struct.TypeId.html" title="struct core::any::TypeId">TypeId</a></code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/any.rs.html#109-111' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Gets the <code>TypeId</code> of <code>self</code>. <a href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id">Read more</a></p>
|
||||
</div></div><h3 id='impl-Borrow%3CT%3E' class='impl'><code class='in-band'>impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a><T> for T <span class="where fmt-newline">where<br> T: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></code><a href='#impl-Borrow%3CT%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#213-217' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.borrow' class="method hidden"><code id='borrow.v'>fn <a href='https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow' class='fnname'>borrow</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>T</code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#214-216' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Immutably borrows from an owned value. <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow">Read more</a></p>
|
||||
</div></div><h3 id='impl-BorrowMut%3CT%3E' class='impl'><code class='in-band'>impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html" title="trait core::borrow::BorrowMut">BorrowMut</a><T> for T <span class="where fmt-newline">where<br> T: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></code><a href='#impl-BorrowMut%3CT%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#220-224' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.borrow_mut' class="method hidden"><code id='borrow_mut.v'>fn <a href='https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut' class='fnname'>borrow_mut</a>(&mut self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>T</code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#221-223' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Mutably borrows from an owned value. <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read more</a></p>
|
||||
</div></div><h3 id='impl-From%3CT%3E' class='impl'><code class='in-band'>impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><T> for T</code><a href='#impl-From%3CT%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#564-568' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.from' class="method hidden"><code id='from.v'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from' class='fnname'>from</a>(t: T) -> T</code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#565-567' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||||
</div></div><h3 id='impl-Into%3CU%3E' class='impl'><code class='in-band'>impl<T, U> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><U> for T <span class="where fmt-newline">where<br> U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><T>, </span></code><a href='#impl-Into%3CU%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#553-560' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.into' class="method hidden"><code id='into.v'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.Into.html#tymethod.into' class='fnname'>into</a>(self) -> U</code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#557-559' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||||
</div></div><h3 id='impl-TryFrom%3CU%3E' class='impl'><code class='in-band'>impl<T, U> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><U> for T <span class="where fmt-newline">where<br> U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><T>, </span></code><a href='#impl-TryFrom%3CU%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#601-610' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Error' class="type"><code id='Error.t'>type <a href='https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error' class="type">Error</a> = <a class="enum" href="https://doc.rust-lang.org/nightly/core/convert/enum.Infallible.html" title="enum core::convert::Infallible">Infallible</a></code></h4><div class='docblock'><p>The type returned in the event of a conversion error.</p>
|
||||
</div><h4 id='method.try_from' class="method hidden"><code id='try_from.v'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#tymethod.try_from' class='fnname'>try_from</a>(value: U) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><T, <T as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><U>>::<a class="type" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>></code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#607-609' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||||
</div></div><h3 id='impl-TryInto%3CU%3E' class='impl'><code class='in-band'>impl<T, U> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html" title="trait core::convert::TryInto">TryInto</a><U> for T <span class="where fmt-newline">where<br> U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>, </span></code><a href='#impl-TryInto%3CU%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#587-596' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Error-1' class="type"><code id='Error.t-1'>type <a href='https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html#associatedtype.Error' class="type">Error</a> = <U as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>>::<a class="type" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a></code></h4><div class='docblock'><p>The type returned in the event of a conversion error.</p>
|
||||
</div><h4 id='method.try_into' class="method hidden"><code id='try_into.v'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html#tymethod.try_into' class='fnname'>try_into</a>(self) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><U, <U as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>>::<a class="type" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>></code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#593-595' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||||
</div></div><h3 id='impl-VZip%3CV%3E' class='impl'><code class='in-band'>impl<V, T> <a class="trait" href="../ppv_lite86/types/types/trait.VZip.html" title="trait ppv_lite86::types::types::VZip">VZip</a><V> for T <span class="where fmt-newline">where<br> V: <a class="trait" href="../ppv_lite86/types/types/trait.MultiLane.html" title="trait ppv_lite86::types::types::MultiLane">MultiLane</a><T>, </span></code><a href='#impl-VZip%3CV%3E' class='anchor'></a><a class='srclink' href='../src/ppv_lite86/types.rs.html#212-220' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.vzip' class="method hidden"><code id='vzip.v'>fn <a href='../ppv_lite86/types/types/trait.VZip.html#tymethod.vzip' class='fnname'>vzip</a>(self) -> V</code><a class='srclink' href='../src/ppv_lite86/types.rs.html#217-219' title='goto source code'>[src]</a></h4></div></div></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../";window.currentCrate = "actix_files";</script><script src="../aliases.js"></script><script src="../main.js"></script><script defer src="../search-index.js"></script></body></html>
|
||||
68
actix_files/struct.Files.html
Normal file
68
actix_files/struct.Files.html
Normal file
@@ -0,0 +1,68 @@
|
||||
<!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 `Files` struct in crate `actix_files`."><meta name="keywords" content="rust, rustlang, rust-lang, Files"><title>actix_files::Files - 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><noscript><link rel="stylesheet" href="../noscript.css"></noscript><link rel="shortcut icon" href="../favicon.ico"><style type="text/css">#crate-search{background-image:url("../down-arrow.svg");}</style></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">☰</div><a href='../actix_files/index.html'><div class='logo-container'><img src='../rust-logo.png' alt='logo'></div></a><p class='location'>Struct Files</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#methods">Methods</a><div class="sidebar-links"><a href="#method.default_handler">default_handler</a><a href="#method.disable_content_disposition">disable_content_disposition</a><a href="#method.files_listing_renderer">files_listing_renderer</a><a href="#method.index_file">index_file</a><a href="#method.mime_override">mime_override</a><a href="#method.new">new</a><a href="#method.redirect_to_slash_directory">redirect_to_slash_directory</a><a href="#method.show_files_listing">show_files_listing</a><a href="#method.use_etag">use_etag</a><a href="#method.use_guards">use_guards</a><a href="#method.use_last_modified">use_last_modified</a></div><a class="sidebar-title" href="#implementations">Trait Implementations</a><div class="sidebar-links"><a href="#impl-Clone">Clone</a><a href="#impl-HttpServiceFactory">HttpServiceFactory</a><a href="#impl-NewService">NewService</a></div><a class="sidebar-title" href="#synthetic-implementations">Auto Trait Implementations</a><div class="sidebar-links"><a href="#impl-RefUnwindSafe">!RefUnwindSafe</a><a href="#impl-Send">!Send</a><a href="#impl-Sync">!Sync</a><a href="#impl-Unpin">Unpin</a><a href="#impl-UnwindSafe">!UnwindSafe</a></div><a class="sidebar-title" href="#blanket-implementations">Blanket Implementations</a><div class="sidebar-links"><a href="#impl-Any">Any</a><a href="#impl-Borrow%3CT%3E">Borrow<T></a><a href="#impl-BorrowMut%3CT%3E">BorrowMut<T></a><a href="#impl-From%3CT%3E">From<T></a><a href="#impl-Into%3CU%3E">Into<U></a><a href="#impl-IntoNewService%3CT%3E">IntoNewService<T></a><a href="#impl-ToOwned">ToOwned</a><a href="#impl-TryFrom%3CU%3E">TryFrom<U></a><a href="#impl-TryInto%3CU%3E">TryInto<U></a><a href="#impl-VZip%3CV%3E">VZip<V></a></div></div><p class='location'><a href='index.html'>actix_files</a></p><script>window.sidebarCurrent = {name: 'Files', 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"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><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='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../src/actix_files/lib.rs.html#231-242' title='goto source code'>[src]</a></span><span class='in-band'>Struct <a href='index.html'>actix_files</a>::<wbr><a class="struct" href=''>Files</a></span></h1><div class="docblock type-decl hidden-by-usual-hider"><pre class='rust struct'>pub struct Files { /* fields omitted */ }</pre></div><div class='docblock'><p>Static files handling</p>
|
||||
<p><code>Files</code> service must be registered with <code>App::service()</code> method.</p>
|
||||
|
||||
<div class="example-wrap"><pre class="rust rust-example-rendered">
|
||||
<span class="kw">use</span> <span class="ident">actix_web</span>::<span class="ident">App</span>;
|
||||
<span class="kw">use</span> <span class="ident">actix_files</span> <span class="kw">as</span> <span class="ident">fs</span>;
|
||||
|
||||
<span class="kw">fn</span> <span class="ident">main</span>() {
|
||||
<span class="kw">let</span> <span class="ident">app</span> <span class="op">=</span> <span class="ident">App</span>::<span class="ident">new</span>()
|
||||
.<span class="ident">service</span>(<span class="ident">fs</span>::<span class="ident">Files</span>::<span class="ident">new</span>(<span class="string">"/static"</span>, <span class="string">"."</span>));
|
||||
}</pre></div>
|
||||
</div><h2 id='methods' class='small-section-header'>Methods<a href='#methods' class='anchor'></a></h2><h3 id='impl' class='impl'><code class='in-band'>impl <a class="struct" href="../actix_files/struct.Files.html" title="struct actix_files::Files">Files</a></code><a href='#impl' class='anchor'></a><a class='srclink' href='../src/actix_files/lib.rs.html#261-386' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.new' class="method"><code id='new.v'>pub fn <a href='#method.new' class='fnname'>new</a><T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="struct" href="https://doc.rust-lang.org/nightly/std/path/struct.PathBuf.html" title="struct std::path::PathBuf">PathBuf</a>>>(path: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>, dir: T) -> <a class="struct" href="../actix_files/struct.Files.html" title="struct actix_files::Files">Files</a></code><a class='srclink' href='../src/actix_files/lib.rs.html#267-285' title='goto source code'>[src]</a></h4><div class='docblock'><p>Create new <code>Files</code> instance for specified base directory.</p>
|
||||
<p><code>File</code> uses <code>ThreadPool</code> for blocking filesystem operations.
|
||||
By default pool with 5x threads of available cpus is used.
|
||||
Pool size can be changed by setting ACTIX_CPU_POOL environment variable.</p>
|
||||
</div><h4 id='method.show_files_listing' class="method"><code id='show_files_listing.v'>pub fn <a href='#method.show_files_listing' class='fnname'>show_files_listing</a>(self) -> Self</code><a class='srclink' href='../src/actix_files/lib.rs.html#290-293' title='goto source code'>[src]</a></h4><div class='docblock'><p>Show files listing for directories.</p>
|
||||
<p>By default show files listing is disabled.</p>
|
||||
</div><h4 id='method.redirect_to_slash_directory' class="method"><code id='redirect_to_slash_directory.v'>pub fn <a href='#method.redirect_to_slash_directory' class='fnname'>redirect_to_slash_directory</a>(self) -> Self</code><a class='srclink' href='../src/actix_files/lib.rs.html#298-301' title='goto source code'>[src]</a></h4><div class='docblock'><p>Redirects to a slash-ended path when browsing a directory.</p>
|
||||
<p>By default never redirect.</p>
|
||||
</div><h4 id='method.files_listing_renderer' class="method"><code id='files_listing_renderer.v'>pub fn <a href='#method.files_listing_renderer' class='fnname'>files_listing_renderer</a><F>(self, f: F) -> Self <span class="where fmt-newline">where<br> F: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.Fn.html" title="trait core::ops::function::Fn">Fn</a>(&'r <a class="struct" href="../actix_files/struct.Directory.html" title="struct actix_files::Directory">Directory</a>, &'s <a class="struct" href="../actix_web/request/struct.HttpRequest.html" title="struct actix_web::request::HttpRequest">HttpRequest</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="struct" href="../actix_web/service/struct.ServiceResponse.html" title="struct actix_web::service::ServiceResponse">ServiceResponse</a>, <a class="struct" href="https://doc.rust-lang.org/nightly/std/io/error/struct.Error.html" title="struct std::io::error::Error">Error</a>> + 'static, </span></code><a class='srclink' href='../src/actix_files/lib.rs.html#304-312' title='goto source code'>[src]</a></h4><div class='docblock'><p>Set custom directory renderer</p>
|
||||
</div><h4 id='method.mime_override' class="method"><code id='mime_override.v'>pub fn <a href='#method.mime_override' class='fnname'>mime_override</a><F>(self, f: F) -> Self <span class="where fmt-newline">where<br> F: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.Fn.html" title="trait core::ops::function::Fn">Fn</a>(&<a class="struct" href="../mime/struct.Name.html" title="struct mime::Name">Name</a>) -> <a class="enum" href="../actix_http/header/common/content_disposition/enum.DispositionType.html" title="enum actix_http::header::common::content_disposition::DispositionType">DispositionType</a> + 'static, </span></code><a class='srclink' href='../src/actix_files/lib.rs.html#315-321' title='goto source code'>[src]</a></h4><div class='docblock'><p>Specifies mime override callback</p>
|
||||
</div><h4 id='method.index_file' class="method"><code id='index_file.v'>pub fn <a href='#method.index_file' class='fnname'>index_file</a><T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>>>(self, index: T) -> Self</code><a class='srclink' href='../src/actix_files/lib.rs.html#327-330' title='goto source code'>[src]</a></h4><div class='docblock'><p>Set index file</p>
|
||||
<p>Shows specific index file for directory "/" instead of
|
||||
showing files listing.</p>
|
||||
</div><h4 id='method.use_etag' class="method"><code id='use_etag.v'>pub fn <a href='#method.use_etag' class='fnname'>use_etag</a>(self, value: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>) -> Self</code><a class='srclink' href='../src/actix_files/lib.rs.html#336-339' title='goto source code'>[src]</a></h4><div class='docblock'><p>Specifies whether to use ETag or not.</p>
|
||||
<p>Default is true.</p>
|
||||
</div><h4 id='method.use_last_modified' class="method"><code id='use_last_modified.v'>pub fn <a href='#method.use_last_modified' class='fnname'>use_last_modified</a>(self, value: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>) -> Self</code><a class='srclink' href='../src/actix_files/lib.rs.html#345-348' title='goto source code'>[src]</a></h4><div class='docblock'><p>Specifies whether to use Last-Modified or not.</p>
|
||||
<p>Default is true.</p>
|
||||
</div><h4 id='method.use_guards' class="method"><code id='use_guards.v'>pub fn <a href='#method.use_guards' class='fnname'>use_guards</a><G: <a class="trait" href="../actix_web/guard/trait.Guard.html" title="trait actix_web::guard::Guard">Guard</a> + 'static>(self, guards: G) -> Self</code><a class='srclink' href='../src/actix_files/lib.rs.html#354-357' title='goto source code'>[src]</a></h4><div class='docblock'><p>Specifies custom guards to use for directory listings and files.</p>
|
||||
<p>Default behaviour allows GET and HEAD.</p>
|
||||
</div><h4 id='method.disable_content_disposition' class="method"><code id='disable_content_disposition.v'>pub fn <a href='#method.disable_content_disposition' class='fnname'>disable_content_disposition</a>(self) -> Self</code><a class='srclink' href='../src/actix_files/lib.rs.html#363-366' title='goto source code'>[src]</a></h4><div class='docblock'><p>Disable <code>Content-Disposition</code> header.</p>
|
||||
<p>By default Content-Disposition` header is enabled.</p>
|
||||
</div><h4 id='method.default_handler' class="method"><code id='default_handler.v'>pub fn <a href='#method.default_handler' class='fnname'>default_handler</a><F, U>(self, f: F) -> Self <span class="where fmt-newline">where<br> F: <a class="trait" href="../actix_service/trait.IntoNewService.html" title="trait actix_service::IntoNewService">IntoNewService</a><U>,<br> U: <a class="trait" href="../actix_service/trait.NewService.html" title="trait actix_service::NewService">NewService</a><Config = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, Request = <a class="struct" href="../actix_web/service/struct.ServiceRequest.html" title="struct actix_web::service::ServiceRequest">ServiceRequest</a>, Response = <a class="struct" href="../actix_web/service/struct.ServiceResponse.html" title="struct actix_web::service::ServiceResponse">ServiceResponse</a>, Error = <a class="struct" href="../actix_http/error/struct.Error.html" title="struct actix_http::error::Error">Error</a>> + 'static, </span></code><a class='srclink' href='../src/actix_files/lib.rs.html#369-385' title='goto source code'>[src]</a></h4><div class='docblock'><p>Sets default handler which is used when no matched file could be found.</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-Clone' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> for <a class="struct" href="../actix_files/struct.Files.html" title="struct actix_files::Files">Files</a></code><a href='#impl-Clone' class='anchor'></a><a class='srclink' href='../src/actix_files/lib.rs.html#244-259' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.clone' class="method hidden"><code id='clone.v'>fn <a href='https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#tymethod.clone' class='fnname'>clone</a>(&self) -> Self</code><a class='srclink' href='../src/actix_files/lib.rs.html#245-258' title='goto source code'>[src]</a></h4><div class='docblock hidden'><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 hidden"><code id='clone_from.v'>fn <a href='https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#method.clone_from' class='fnname'>clone_from</a>(&mut self, source: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>Self)</code><span class='since' title='Stable since Rust version 1.0.0'>1.0.0</span><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/clone.rs.html#131-133' title='goto source code'>[src]</a></h4><div class='docblock hidden'><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-HttpServiceFactory' class='impl'><code class='in-band'>impl <a class="trait" href="../actix_web/service/trait.HttpServiceFactory.html" title="trait actix_web::service::HttpServiceFactory">HttpServiceFactory</a> for <a class="struct" href="../actix_files/struct.Files.html" title="struct actix_files::Files">Files</a></code><a href='#impl-HttpServiceFactory' class='anchor'></a><a class='srclink' href='../src/actix_files/lib.rs.html#388-400' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.register' class="method hidden"><code id='register.v'>fn <a href='../actix_web/service/trait.HttpServiceFactory.html#tymethod.register' class='fnname'>register</a>(self, config: &mut <a class="struct" href="../actix_web/config/struct.AppService.html" title="struct actix_web::config::AppService">AppService</a>)</code><a class='srclink' href='../src/actix_files/lib.rs.html#389-399' title='goto source code'>[src]</a></h4></div><h3 id='impl-NewService' class='impl'><code class='in-band'>impl <a class="trait" href="../actix_service/trait.NewService.html" title="trait actix_service::NewService">NewService</a> for <a class="struct" href="../actix_files/struct.Files.html" title="struct actix_files::Files">Files</a></code><a href='#impl-NewService' class='anchor'></a><a class='srclink' href='../src/actix_files/lib.rs.html#402-438' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Request' class="type"><code id='Request.t'>type <a href='../actix_service/trait.NewService.html#associatedtype.Request' class="type">Request</a> = <a class="struct" href="../actix_web/service/struct.ServiceRequest.html" title="struct actix_web::service::ServiceRequest">ServiceRequest</a></code></h4><div class='docblock'><p>Requests handled by the service.</p>
|
||||
</div><h4 id='associatedtype.Response' class="type"><code id='Response.t'>type <a href='../actix_service/trait.NewService.html#associatedtype.Response' class="type">Response</a> = <a class="struct" href="../actix_web/service/struct.ServiceResponse.html" title="struct actix_web::service::ServiceResponse">ServiceResponse</a></code></h4><div class='docblock'><p>Responses given by the service</p>
|
||||
</div><h4 id='associatedtype.Error' class="type"><code id='Error.t'>type <a href='../actix_service/trait.NewService.html#associatedtype.Error' class="type">Error</a> = <a class="struct" href="../actix_http/error/struct.Error.html" title="struct actix_http::error::Error">Error</a></code></h4><div class='docblock'><p>Errors produced by the service</p>
|
||||
</div><h4 id='associatedtype.Config' class="type"><code id='Config.t'>type <a href='../actix_service/trait.NewService.html#associatedtype.Config' class="type">Config</a> = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a></code></h4><div class='docblock'><p>Service factory configuration</p>
|
||||
</div><h4 id='associatedtype.Service' class="type"><code id='Service.t'>type <a href='../actix_service/trait.NewService.html#associatedtype.Service' class="type">Service</a> = <a class="struct" href="../actix_files/struct.FilesService.html" title="struct actix_files::FilesService">FilesService</a></code></h4><div class='docblock'><p>The <code>Service</code> value created by this factory</p>
|
||||
</div><h4 id='associatedtype.InitError' class="type"><code id='InitError.t'>type <a href='../actix_service/trait.NewService.html#associatedtype.InitError' class="type">InitError</a> = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a></code></h4><div class='docblock'><p>Errors produced while building a service.</p>
|
||||
</div><h4 id='associatedtype.Future' class="type"><code id='Future.t'>type <a href='../actix_service/trait.NewService.html#associatedtype.Future' class="type">Future</a> = <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="../futures/future/trait.Future.html" title="trait futures::future::Future">Future</a><Item = Self::<a class="type" href="../actix_service/trait.NewService.html#associatedtype.Service" title="type actix_service::NewService::Service">Service</a>, Error = Self::<a class="type" href="../actix_service/trait.NewService.html#associatedtype.InitError" title="type actix_service::NewService::InitError">InitError</a>>></code></h4><div class='docblock'><p>The future of the <code>Service</code> instance.</p>
|
||||
</div><h4 id='method.new_service' class="method hidden"><code id='new_service.v'>fn <a href='../actix_service/trait.NewService.html#tymethod.new_service' class='fnname'>new_service</a>(&self, _: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>) -> Self::<a class="type" href="../actix_service/trait.NewService.html#associatedtype.Future" title="type actix_service::NewService::Future">Future</a></code><a class='srclink' href='../src/actix_files/lib.rs.html#411-437' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Create and return a new service value asynchronously.</p>
|
||||
</div><h4 id='method.apply' class="method hidden"><code id='apply.v'>fn <a href='../actix_service/trait.NewService.html#method.apply' class='fnname'>apply</a><T, T1, B, B1>(<br> self, <br> transform: T1, <br> service: B1<br>) -> AndThenTransform<T, Self, B> <span class="where fmt-newline">where<br> B: <a class="trait" href="../actix_service/trait.NewService.html" title="trait actix_service::NewService">NewService</a><Config = Self::<a class="type" href="../actix_service/trait.NewService.html#associatedtype.Config" title="type actix_service::NewService::Config">Config</a>, InitError = Self::<a class="type" href="../actix_service/trait.NewService.html#associatedtype.InitError" title="type actix_service::NewService::InitError">InitError</a>>,<br> B1: <a class="trait" href="../actix_service/trait.IntoNewService.html" title="trait actix_service::IntoNewService">IntoNewService</a><B>,<br> T: <a class="trait" href="../actix_service/transform/trait.Transform.html" title="trait actix_service::transform::Transform">Transform</a><<B as <a class="trait" href="../actix_service/trait.NewService.html" title="trait actix_service::NewService">NewService</a>>::<a class="type" href="../actix_service/trait.NewService.html#associatedtype.Service" title="type actix_service::NewService::Service">Service</a>, Request = Self::<a class="type" href="../actix_service/trait.NewService.html#associatedtype.Response" title="type actix_service::NewService::Response">Response</a>, InitError = Self::<a class="type" href="../actix_service/trait.NewService.html#associatedtype.InitError" title="type actix_service::NewService::InitError">InitError</a>>,<br> T1: <a class="trait" href="../actix_service/transform/trait.IntoTransform.html" title="trait actix_service::transform::IntoTransform">IntoTransform</a><T, <B as <a class="trait" href="../actix_service/trait.NewService.html" title="trait actix_service::NewService">NewService</a>>::<a class="type" href="../actix_service/trait.NewService.html#associatedtype.Service" title="type actix_service::NewService::Service">Service</a>>,<br> <T as <a class="trait" href="../actix_service/transform/trait.Transform.html" title="trait actix_service::transform::Transform">Transform</a><<B as <a class="trait" href="../actix_service/trait.NewService.html" title="trait actix_service::NewService">NewService</a>>::<a class="type" href="../actix_service/trait.NewService.html#associatedtype.Service" title="type actix_service::NewService::Service">Service</a>>>::<a class="type" href="../actix_service/transform/trait.Transform.html#associatedtype.Error" title="type actix_service::transform::Transform::Error">Error</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><Self::<a class="type" href="../actix_service/trait.NewService.html#associatedtype.Error" title="type actix_service::NewService::Error">Error</a>>, </span></code><a class='srclink' href='../src/actix_service/lib.rs.html#216-226' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Apply transform service to specified service and use it as a next service in chain. <a href="../actix_service/trait.NewService.html#method.apply">Read more</a></p>
|
||||
</div><h4 id='method.apply_fn' class="method hidden"><code id='apply_fn.v'>fn <a href='../actix_service/trait.NewService.html#method.apply_fn' class='fnname'>apply_fn</a><B, I, F, Out>(<br> self, <br> service: I, <br> f: F<br>) -> AndThenApplyNewService<Self, B, F, Out> <span class="where fmt-newline">where<br> B: <a class="trait" href="../actix_service/trait.NewService.html" title="trait actix_service::NewService">NewService</a><Config = Self::<a class="type" href="../actix_service/trait.NewService.html#associatedtype.Config" title="type actix_service::NewService::Config">Config</a>, Error = Self::<a class="type" href="../actix_service/trait.NewService.html#associatedtype.Error" title="type actix_service::NewService::Error">Error</a>, InitError = Self::<a class="type" href="../actix_service/trait.NewService.html#associatedtype.InitError" title="type actix_service::NewService::InitError">InitError</a>>,<br> F: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(Self::<a class="type" href="../actix_service/trait.NewService.html#associatedtype.Response" title="type actix_service::NewService::Response">Response</a>, &mut <B as <a class="trait" href="../actix_service/trait.NewService.html" title="trait actix_service::NewService">NewService</a>>::<a class="type" href="../actix_service/trait.NewService.html#associatedtype.Service" title="type actix_service::NewService::Service">Service</a>) -> Out,<br> I: <a class="trait" href="../actix_service/trait.IntoNewService.html" title="trait actix_service::IntoNewService">IntoNewService</a><B>,<br> Out: <a class="trait" href="../futures/future/trait.IntoFuture.html" title="trait futures::future::IntoFuture">IntoFuture</a>,<br> <Out as <a class="trait" href="../futures/future/trait.IntoFuture.html" title="trait futures::future::IntoFuture">IntoFuture</a>>::<a class="type" href="../futures/future/trait.IntoFuture.html#associatedtype.Error" title="type futures::future::IntoFuture::Error">Error</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><Self::<a class="type" href="../actix_service/trait.NewService.html#associatedtype.Error" title="type actix_service::NewService::Error">Error</a>>, </span></code><a class='srclink' href='../src/actix_service/lib.rs.html#230-240' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Apply function to specified service and use it as a next service in chain. <a href="../actix_service/trait.NewService.html#method.apply_fn">Read more</a></p>
|
||||
</div><h4 id='method.and_then' class="method hidden"><code id='and_then.v'>fn <a href='../actix_service/trait.NewService.html#method.and_then' class='fnname'>and_then</a><F, B>(self, new_service: F) -> <a class="struct" href="../actix_service/and_then/struct.AndThenNewService.html" title="struct actix_service::and_then::AndThenNewService">AndThenNewService</a><Self, B> <span class="where fmt-newline">where<br> B: <a class="trait" href="../actix_service/trait.NewService.html" title="trait actix_service::NewService">NewService</a><Config = Self::<a class="type" href="../actix_service/trait.NewService.html#associatedtype.Config" title="type actix_service::NewService::Config">Config</a>, Request = Self::<a class="type" href="../actix_service/trait.NewService.html#associatedtype.Response" title="type actix_service::NewService::Response">Response</a>, Error = Self::<a class="type" href="../actix_service/trait.NewService.html#associatedtype.Error" title="type actix_service::NewService::Error">Error</a>, InitError = Self::<a class="type" href="../actix_service/trait.NewService.html#associatedtype.InitError" title="type actix_service::NewService::InitError">InitError</a>>,<br> F: <a class="trait" href="../actix_service/trait.IntoNewService.html" title="trait actix_service::IntoNewService">IntoNewService</a><B>, </span></code><a class='srclink' href='../src/actix_service/lib.rs.html#243-255' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Call another service after call to this one has resolved successfully.</p>
|
||||
</div><h4 id='method.from_err' class="method hidden"><code id='from_err.v'>fn <a href='../actix_service/trait.NewService.html#method.from_err' class='fnname'>from_err</a><E>(self) -> <a class="struct" href="../actix_service/from_err/struct.FromErrNewService.html" title="struct actix_service::from_err::FromErrNewService">FromErrNewService</a><Self, E> <span class="where fmt-newline">where<br> E: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><Self::<a class="type" href="../actix_service/trait.NewService.html#associatedtype.Error" title="type actix_service::NewService::Error">Error</a>>, </span></code><a class='srclink' href='../src/actix_service/lib.rs.html#263-269' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p><code>NewService</code> that create service to map this service's error and new service's init error to any error implementing <code>From</code> for this service<code>s </code>Error`. <a href="../actix_service/trait.NewService.html#method.from_err">Read more</a></p>
|
||||
</div><h4 id='method.then' class="method hidden"><code id='then.v'>fn <a href='../actix_service/trait.NewService.html#method.then' class='fnname'>then</a><F, B>(self, new_service: F) -> <a class="struct" href="../actix_service/then/struct.ThenNewService.html" title="struct actix_service::then::ThenNewService">ThenNewService</a><Self, B> <span class="where fmt-newline">where<br> B: <a class="trait" href="../actix_service/trait.NewService.html" title="trait actix_service::NewService">NewService</a><Config = Self::<a class="type" href="../actix_service/trait.NewService.html#associatedtype.Config" title="type actix_service::NewService::Config">Config</a>, Request = <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><Self::<a class="type" href="../actix_service/trait.NewService.html#associatedtype.Response" title="type actix_service::NewService::Response">Response</a>, Self::<a class="type" href="../actix_service/trait.NewService.html#associatedtype.Error" title="type actix_service::NewService::Error">Error</a>>, Error = Self::<a class="type" href="../actix_service/trait.NewService.html#associatedtype.Error" title="type actix_service::NewService::Error">Error</a>, InitError = Self::<a class="type" href="../actix_service/trait.NewService.html#associatedtype.InitError" title="type actix_service::NewService::InitError">InitError</a>>,<br> F: <a class="trait" href="../actix_service/trait.IntoNewService.html" title="trait actix_service::IntoNewService">IntoNewService</a><B>, </span></code><a class='srclink' href='../src/actix_service/lib.rs.html#277-289' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Create <code>NewService</code> to chain on a computation for when a call to the service finished, passing the result of the call to the next service <code>B</code>. <a href="../actix_service/trait.NewService.html#method.then">Read more</a></p>
|
||||
</div><h4 id='method.map' class="method hidden"><code id='map.v'>fn <a href='../actix_service/trait.NewService.html#method.map' class='fnname'>map</a><F, R>(self, f: F) -> <a class="struct" href="../actix_service/map/struct.MapNewService.html" title="struct actix_service::map::MapNewService">MapNewService</a><Self, F, R> <span class="where fmt-newline">where<br> F: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(Self::<a class="type" href="../actix_service/trait.NewService.html#associatedtype.Response" title="type actix_service::NewService::Response">Response</a>) -> R, </span></code><a class='srclink' href='../src/actix_service/lib.rs.html#293-299' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Map this service's output to a different type, returning a new service of the resulting type. <a href="../actix_service/trait.NewService.html#method.map">Read more</a></p>
|
||||
</div><h4 id='method.map_err' class="method hidden"><code id='map_err.v'>fn <a href='../actix_service/trait.NewService.html#method.map_err' class='fnname'>map_err</a><F, E>(self, f: F) -> <a class="struct" href="../actix_service/map_err/struct.MapErrNewService.html" title="struct actix_service::map_err::MapErrNewService">MapErrNewService</a><Self, F, E> <span class="where fmt-newline">where<br> F: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.Fn.html" title="trait core::ops::function::Fn">Fn</a>(Self::<a class="type" href="../actix_service/trait.NewService.html#associatedtype.Error" title="type actix_service::NewService::Error">Error</a>) -> E + <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>, </span></code><a class='srclink' href='../src/actix_service/lib.rs.html#302-308' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Map this service's error to a different error, returning a new service.</p>
|
||||
</div><h4 id='method.map_init_err' class="method hidden"><code id='map_init_err.v'>fn <a href='../actix_service/trait.NewService.html#method.map_init_err' class='fnname'>map_init_err</a><F, E>(self, f: F) -> <a class="struct" href="../actix_service/map_init_err/struct.MapInitErr.html" title="struct actix_service::map_init_err::MapInitErr">MapInitErr</a><Self, F, E> <span class="where fmt-newline">where<br> F: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.Fn.html" title="trait core::ops::function::Fn">Fn</a>(Self::<a class="type" href="../actix_service/trait.NewService.html#associatedtype.InitError" title="type actix_service::NewService::InitError">InitError</a>) -> E, </span></code><a class='srclink' href='../src/actix_service/lib.rs.html#311-317' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Map this factory's init error to a different error, returning a new service.</p>
|
||||
</div><h4 id='method.map_config' class="method hidden"><code id='map_config.v'>fn <a href='../actix_service/trait.NewService.html#method.map_config' class='fnname'>map_config</a><F, C>(self, f: F) -> <a class="struct" href="../actix_service/map_config/struct.MapConfig.html" title="struct actix_service::map_config::MapConfig">MapConfig</a><Self, F, C> <span class="where fmt-newline">where<br> F: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.Fn.html" title="trait core::ops::function::Fn">Fn</a>(<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>C) -> <a class="enum" href="../actix_service/map_config/enum.MappedConfig.html" title="enum actix_service::map_config::MappedConfig">MappedConfig</a><Self::<a class="type" href="../actix_service/trait.NewService.html#associatedtype.Config" title="type actix_service::NewService::Config">Config</a>>, </span></code><a class='srclink' href='../src/actix_service/lib.rs.html#320-326' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Map config to a different error, returning a new service.</p>
|
||||
</div><h4 id='method.unit_config' class="method hidden"><code id='unit_config.v'>fn <a href='../actix_service/trait.NewService.html#method.unit_config' class='fnname'>unit_config</a><C>(self) -> <a class="struct" href="../actix_service/map_config/struct.UnitConfig.html" title="struct actix_service::map_config::UnitConfig">UnitConfig</a><Self, C> <span class="where fmt-newline">where<br> Self: <a class="trait" href="../actix_service/trait.NewService.html" title="trait actix_service::NewService">NewService</a><Config = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>>, </span></code><a class='srclink' href='../src/actix_service/lib.rs.html#329-334' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Replace config with unit</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-RefUnwindSafe' class='impl'><code class='in-band'>impl !<a class="trait" href="https://doc.rust-lang.org/nightly/std/panic/trait.RefUnwindSafe.html" title="trait std::panic::RefUnwindSafe">RefUnwindSafe</a> for <a class="struct" href="../actix_files/struct.Files.html" title="struct actix_files::Files">Files</a></code><a href='#impl-RefUnwindSafe' class='anchor'></a></h3><div class='impl-items'></div><h3 id='impl-Send' class='impl'><code class='in-band'>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_files/struct.Files.html" title="struct actix_files::Files">Files</a></code><a href='#impl-Send' class='anchor'></a></h3><div class='impl-items'></div><h3 id='impl-Sync' class='impl'><code class='in-band'>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_files/struct.Files.html" title="struct actix_files::Files">Files</a></code><a href='#impl-Sync' class='anchor'></a></h3><div class='impl-items'></div><h3 id='impl-Unpin' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a> for <a class="struct" href="../actix_files/struct.Files.html" title="struct actix_files::Files">Files</a></code><a href='#impl-Unpin' class='anchor'></a></h3><div class='impl-items'></div><h3 id='impl-UnwindSafe' class='impl'><code class='in-band'>impl !<a class="trait" href="https://doc.rust-lang.org/nightly/std/panic/trait.UnwindSafe.html" title="trait std::panic::UnwindSafe">UnwindSafe</a> for <a class="struct" href="../actix_files/struct.Files.html" title="struct actix_files::Files">Files</a></code><a href='#impl-UnwindSafe' class='anchor'></a></h3><div class='impl-items'></div></div><h2 id='blanket-implementations' class='small-section-header'>Blanket Implementations<a href='#blanket-implementations' class='anchor'></a></h2><div id='blanket-implementations-list'><h3 id='impl-Any' class='impl'><code class='in-band'>impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html" title="trait core::any::Any">Any</a> for T <span class="where fmt-newline">where<br> T: 'static + ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></code><a href='#impl-Any' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/any.rs.html#108-112' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.type_id' class="method hidden"><code id='type_id.v'>fn <a href='https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id' class='fnname'>type_id</a>(&self) -> <a class="struct" href="https://doc.rust-lang.org/nightly/core/any/struct.TypeId.html" title="struct core::any::TypeId">TypeId</a></code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/any.rs.html#109-111' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Gets the <code>TypeId</code> of <code>self</code>. <a href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id">Read more</a></p>
|
||||
</div></div><h3 id='impl-Borrow%3CT%3E' class='impl'><code class='in-band'>impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a><T> for T <span class="where fmt-newline">where<br> T: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></code><a href='#impl-Borrow%3CT%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#213-217' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.borrow' class="method hidden"><code id='borrow.v'>fn <a href='https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow' class='fnname'>borrow</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>T</code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#214-216' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Immutably borrows from an owned value. <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow">Read more</a></p>
|
||||
</div></div><h3 id='impl-BorrowMut%3CT%3E' class='impl'><code class='in-band'>impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html" title="trait core::borrow::BorrowMut">BorrowMut</a><T> for T <span class="where fmt-newline">where<br> T: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></code><a href='#impl-BorrowMut%3CT%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#220-224' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.borrow_mut' class="method hidden"><code id='borrow_mut.v'>fn <a href='https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut' class='fnname'>borrow_mut</a>(&mut self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>T</code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#221-223' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Mutably borrows from an owned value. <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read more</a></p>
|
||||
</div></div><h3 id='impl-From%3CT%3E' class='impl'><code class='in-band'>impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><T> for T</code><a href='#impl-From%3CT%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#564-568' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.from' class="method hidden"><code id='from.v'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from' class='fnname'>from</a>(t: T) -> T</code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#565-567' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||||
</div></div><h3 id='impl-Into%3CU%3E' class='impl'><code class='in-band'>impl<T, U> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><U> for T <span class="where fmt-newline">where<br> U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><T>, </span></code><a href='#impl-Into%3CU%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#553-560' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.into' class="method hidden"><code id='into.v'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.Into.html#tymethod.into' class='fnname'>into</a>(self) -> U</code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#557-559' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||||
</div></div><h3 id='impl-IntoNewService%3CT%3E' class='impl'><code class='in-band'>impl<T> <a class="trait" href="../actix_service/trait.IntoNewService.html" title="trait actix_service::IntoNewService">IntoNewService</a><T> for T <span class="where fmt-newline">where<br> T: <a class="trait" href="../actix_service/trait.NewService.html" title="trait actix_service::NewService">NewService</a>, </span></code><a href='#impl-IntoNewService%3CT%3E' class='anchor'></a><a class='srclink' href='../src/actix_service/lib.rs.html#452-459' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.into_new_service' class="method hidden"><code id='into_new_service.v'>fn <a href='../actix_service/trait.IntoNewService.html#tymethod.into_new_service' class='fnname'>into_new_service</a>(self) -> T</code><a class='srclink' href='../src/actix_service/lib.rs.html#456-458' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Convert to an <code>NewService</code></p>
|
||||
</div></div><h3 id='impl-ToOwned' class='impl'><code class='in-band'>impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html" title="trait alloc::borrow::ToOwned">ToOwned</a> for T <span class="where fmt-newline">where<br> T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>, </span></code><a href='#impl-ToOwned' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/alloc/borrow.rs.html#80-92' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Owned' class="type"><code id='Owned.t'>type <a href='https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#associatedtype.Owned' class="type">Owned</a> = T</code></h4><div class='docblock'><p>The resulting type after obtaining ownership.</p>
|
||||
</div><h4 id='method.to_owned' class="method hidden"><code id='to_owned.v'>fn <a href='https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#tymethod.to_owned' class='fnname'>to_owned</a>(&self) -> T</code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/alloc/borrow.rs.html#85-87' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Creates owned data from borrowed data, usually by cloning. <a href="https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#tymethod.to_owned">Read more</a></p>
|
||||
</div><h4 id='method.clone_into' class="method hidden"><code id='clone_into.v'>fn <a href='https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#method.clone_into' class='fnname'>clone_into</a>(&self, target: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>T)</code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/alloc/borrow.rs.html#89-91' title='goto source code'>[src]</a></h4><div class='stability hidden'><div class='stab unstable'><details><summary><span class='emoji'>🔬</span> This is a nightly-only experimental API. (<code>toowned_clone_into</code>)</summary><p>recently added</p>
|
||||
</details></div></div><div class='docblock hidden'><p>Uses borrowed data to replace owned data, usually by cloning. <a href="https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#method.clone_into">Read more</a></p>
|
||||
</div></div><h3 id='impl-TryFrom%3CU%3E' class='impl'><code class='in-band'>impl<T, U> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><U> for T <span class="where fmt-newline">where<br> U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><T>, </span></code><a href='#impl-TryFrom%3CU%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#601-610' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Error-1' class="type"><code id='Error.t-1'>type <a href='https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error' class="type">Error</a> = <a class="enum" href="https://doc.rust-lang.org/nightly/core/convert/enum.Infallible.html" title="enum core::convert::Infallible">Infallible</a></code></h4><div class='docblock'><p>The type returned in the event of a conversion error.</p>
|
||||
</div><h4 id='method.try_from' class="method hidden"><code id='try_from.v'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#tymethod.try_from' class='fnname'>try_from</a>(value: U) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><T, <T as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><U>>::<a class="type" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>></code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#607-609' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||||
</div></div><h3 id='impl-TryInto%3CU%3E' class='impl'><code class='in-band'>impl<T, U> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html" title="trait core::convert::TryInto">TryInto</a><U> for T <span class="where fmt-newline">where<br> U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>, </span></code><a href='#impl-TryInto%3CU%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#587-596' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Error-2' class="type"><code id='Error.t-2'>type <a href='https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html#associatedtype.Error' class="type">Error</a> = <U as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>>::<a class="type" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a></code></h4><div class='docblock'><p>The type returned in the event of a conversion error.</p>
|
||||
</div><h4 id='method.try_into' class="method hidden"><code id='try_into.v'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html#tymethod.try_into' class='fnname'>try_into</a>(self) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><U, <U as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>>::<a class="type" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>></code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#593-595' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||||
</div></div><h3 id='impl-VZip%3CV%3E' class='impl'><code class='in-band'>impl<V, T> <a class="trait" href="../ppv_lite86/types/types/trait.VZip.html" title="trait ppv_lite86::types::types::VZip">VZip</a><V> for T <span class="where fmt-newline">where<br> V: <a class="trait" href="../ppv_lite86/types/types/trait.MultiLane.html" title="trait ppv_lite86::types::types::MultiLane">MultiLane</a><T>, </span></code><a href='#impl-VZip%3CV%3E' class='anchor'></a><a class='srclink' href='../src/ppv_lite86/types.rs.html#212-220' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.vzip' class="method hidden"><code id='vzip.v'>fn <a href='../ppv_lite86/types/types/trait.VZip.html#tymethod.vzip' class='fnname'>vzip</a>(self) -> V</code><a class='srclink' href='../src/ppv_lite86/types.rs.html#217-219' title='goto source code'>[src]</a></h4></div></div></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../";window.currentCrate = "actix_files";</script><script src="../aliases.js"></script><script src="../main.js"></script><script defer src="../search-index.js"></script></body></html>
|
||||
23
actix_files/struct.FilesService.html
Normal file
23
actix_files/struct.FilesService.html
Normal file
@@ -0,0 +1,23 @@
|
||||
<!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 `FilesService` struct in crate `actix_files`."><meta name="keywords" content="rust, rustlang, rust-lang, FilesService"><title>actix_files::FilesService - 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><noscript><link rel="stylesheet" href="../noscript.css"></noscript><link rel="shortcut icon" href="../favicon.ico"><style type="text/css">#crate-search{background-image:url("../down-arrow.svg");}</style></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">☰</div><a href='../actix_files/index.html'><div class='logo-container'><img src='../rust-logo.png' alt='logo'></div></a><p class='location'>Struct FilesService</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-Service">Service</a></div><a class="sidebar-title" href="#synthetic-implementations">Auto Trait Implementations</a><div class="sidebar-links"><a href="#impl-RefUnwindSafe">!RefUnwindSafe</a><a href="#impl-Send">!Send</a><a href="#impl-Sync">!Sync</a><a href="#impl-Unpin">Unpin</a><a href="#impl-UnwindSafe">!UnwindSafe</a></div><a class="sidebar-title" href="#blanket-implementations">Blanket Implementations</a><div class="sidebar-links"><a href="#impl-Any">Any</a><a href="#impl-Borrow%3CT%3E">Borrow<T></a><a href="#impl-BorrowMut%3CT%3E">BorrowMut<T></a><a href="#impl-From%3CT%3E">From<T></a><a href="#impl-Into%3CU%3E">Into<U></a><a href="#impl-IntoService%3CT%3E">IntoService<T></a><a href="#impl-ServiceExt">ServiceExt</a><a href="#impl-TryFrom%3CU%3E">TryFrom<U></a><a href="#impl-TryInto%3CU%3E">TryInto<U></a><a href="#impl-VZip%3CV%3E">VZip<V></a></div></div><p class='location'><a href='index.html'>actix_files</a></p><script>window.sidebarCurrent = {name: 'FilesService', 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"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><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='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../src/actix_files/lib.rs.html#440-450' title='goto source code'>[src]</a></span><span class='in-band'>Struct <a href='index.html'>actix_files</a>::<wbr><a class="struct" href=''>FilesService</a></span></h1><div class="docblock type-decl hidden-by-usual-hider"><pre class='rust struct'>pub struct FilesService { /* fields omitted */ }</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-Service' class='impl'><code class='in-band'>impl <a class="trait" href="../actix_service/trait.Service.html" title="trait actix_service::Service">Service</a> for <a class="struct" href="../actix_files/struct.FilesService.html" title="struct actix_files::FilesService">FilesService</a></code><a href='#impl-Service' class='anchor'></a><a class='srclink' href='../src/actix_files/lib.rs.html#470-583' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Request' class="type"><code id='Request.t'>type <a href='../actix_service/trait.Service.html#associatedtype.Request' class="type">Request</a> = <a class="struct" href="../actix_web/service/struct.ServiceRequest.html" title="struct actix_web::service::ServiceRequest">ServiceRequest</a></code></h4><div class='docblock'><p>Requests handled by the service.</p>
|
||||
</div><h4 id='associatedtype.Response' class="type"><code id='Response.t'>type <a href='../actix_service/trait.Service.html#associatedtype.Response' class="type">Response</a> = <a class="struct" href="../actix_web/service/struct.ServiceResponse.html" title="struct actix_web::service::ServiceResponse">ServiceResponse</a></code></h4><div class='docblock'><p>Responses given by the service.</p>
|
||||
</div><h4 id='associatedtype.Error' class="type"><code id='Error.t'>type <a href='../actix_service/trait.Service.html#associatedtype.Error' class="type">Error</a> = <a class="struct" href="../actix_http/error/struct.Error.html" title="struct actix_http::error::Error">Error</a></code></h4><div class='docblock'><p>Errors produced by the service.</p>
|
||||
</div><h4 id='associatedtype.Future' class="type"><code id='Future.t'>type <a href='../actix_service/trait.Service.html#associatedtype.Future' class="type">Future</a> = <a class="enum" href="../futures/future/either/enum.Either.html" title="enum futures::future::either::Either">Either</a><<a class="struct" href="../futures/future/result_/struct.FutureResult.html" title="struct futures::future::result_::FutureResult">FutureResult</a><Self::<a class="type" href="../actix_service/trait.Service.html#associatedtype.Response" title="type actix_service::Service::Response">Response</a>, Self::<a class="type" href="../actix_service/trait.Service.html#associatedtype.Error" title="type actix_service::Service::Error">Error</a>>, <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="../futures/future/trait.Future.html" title="trait futures::future::Future">Future</a><Item = Self::<a class="type" href="../actix_service/trait.Service.html#associatedtype.Response" title="type actix_service::Service::Response">Response</a>, Error = Self::<a class="type" href="../actix_service/trait.Service.html#associatedtype.Error" title="type actix_service::Service::Error">Error</a>>>></code></h4><div class='docblock'><p>The future response value.</p>
|
||||
</div><h4 id='method.poll_ready' class="method hidden"><code id='poll_ready.v'>fn <a href='../actix_service/trait.Service.html#tymethod.poll_ready' class='fnname'>poll_ready</a>(&mut self) -> <a class="type" href="../futures/poll/type.Poll.html" title="type futures::poll::Poll">Poll</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, Self::<a class="type" href="../actix_service/trait.Service.html#associatedtype.Error" title="type actix_service::Service::Error">Error</a>></code><a class='srclink' href='../src/actix_files/lib.rs.html#479-481' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Returns <code>Ready</code> when the service is able to process requests. <a href="../actix_service/trait.Service.html#tymethod.poll_ready">Read more</a></p>
|
||||
</div><h4 id='method.call' class="method hidden"><code id='call.v'>fn <a href='../actix_service/trait.Service.html#tymethod.call' class='fnname'>call</a>(&mut self, req: <a class="struct" href="../actix_web/service/struct.ServiceRequest.html" title="struct actix_web::service::ServiceRequest">ServiceRequest</a>) -> Self::<a class="type" href="../actix_service/trait.Service.html#associatedtype.Future" title="type actix_service::Service::Future">Future</a></code><a class='srclink' href='../src/actix_files/lib.rs.html#483-582' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Process the request and return the response asynchronously. <a href="../actix_service/trait.Service.html#tymethod.call">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-RefUnwindSafe' class='impl'><code class='in-band'>impl !<a class="trait" href="https://doc.rust-lang.org/nightly/std/panic/trait.RefUnwindSafe.html" title="trait std::panic::RefUnwindSafe">RefUnwindSafe</a> for <a class="struct" href="../actix_files/struct.FilesService.html" title="struct actix_files::FilesService">FilesService</a></code><a href='#impl-RefUnwindSafe' class='anchor'></a></h3><div class='impl-items'></div><h3 id='impl-Send' class='impl'><code class='in-band'>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_files/struct.FilesService.html" title="struct actix_files::FilesService">FilesService</a></code><a href='#impl-Send' class='anchor'></a></h3><div class='impl-items'></div><h3 id='impl-Sync' class='impl'><code class='in-band'>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_files/struct.FilesService.html" title="struct actix_files::FilesService">FilesService</a></code><a href='#impl-Sync' class='anchor'></a></h3><div class='impl-items'></div><h3 id='impl-Unpin' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a> for <a class="struct" href="../actix_files/struct.FilesService.html" title="struct actix_files::FilesService">FilesService</a></code><a href='#impl-Unpin' class='anchor'></a></h3><div class='impl-items'></div><h3 id='impl-UnwindSafe' class='impl'><code class='in-band'>impl !<a class="trait" href="https://doc.rust-lang.org/nightly/std/panic/trait.UnwindSafe.html" title="trait std::panic::UnwindSafe">UnwindSafe</a> for <a class="struct" href="../actix_files/struct.FilesService.html" title="struct actix_files::FilesService">FilesService</a></code><a href='#impl-UnwindSafe' class='anchor'></a></h3><div class='impl-items'></div></div><h2 id='blanket-implementations' class='small-section-header'>Blanket Implementations<a href='#blanket-implementations' class='anchor'></a></h2><div id='blanket-implementations-list'><h3 id='impl-Any' class='impl'><code class='in-band'>impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html" title="trait core::any::Any">Any</a> for T <span class="where fmt-newline">where<br> T: 'static + ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></code><a href='#impl-Any' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/any.rs.html#108-112' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.type_id' class="method hidden"><code id='type_id.v'>fn <a href='https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id' class='fnname'>type_id</a>(&self) -> <a class="struct" href="https://doc.rust-lang.org/nightly/core/any/struct.TypeId.html" title="struct core::any::TypeId">TypeId</a></code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/any.rs.html#109-111' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Gets the <code>TypeId</code> of <code>self</code>. <a href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id">Read more</a></p>
|
||||
</div></div><h3 id='impl-Borrow%3CT%3E' class='impl'><code class='in-band'>impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a><T> for T <span class="where fmt-newline">where<br> T: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></code><a href='#impl-Borrow%3CT%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#213-217' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.borrow' class="method hidden"><code id='borrow.v'>fn <a href='https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow' class='fnname'>borrow</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>T</code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#214-216' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Immutably borrows from an owned value. <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow">Read more</a></p>
|
||||
</div></div><h3 id='impl-BorrowMut%3CT%3E' class='impl'><code class='in-band'>impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html" title="trait core::borrow::BorrowMut">BorrowMut</a><T> for T <span class="where fmt-newline">where<br> T: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></code><a href='#impl-BorrowMut%3CT%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#220-224' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.borrow_mut' class="method hidden"><code id='borrow_mut.v'>fn <a href='https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut' class='fnname'>borrow_mut</a>(&mut self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>T</code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#221-223' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Mutably borrows from an owned value. <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read more</a></p>
|
||||
</div></div><h3 id='impl-From%3CT%3E' class='impl'><code class='in-band'>impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><T> for T</code><a href='#impl-From%3CT%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#564-568' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.from' class="method hidden"><code id='from.v'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from' class='fnname'>from</a>(t: T) -> T</code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#565-567' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||||
</div></div><h3 id='impl-Into%3CU%3E' class='impl'><code class='in-band'>impl<T, U> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><U> for T <span class="where fmt-newline">where<br> U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><T>, </span></code><a href='#impl-Into%3CU%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#553-560' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.into' class="method hidden"><code id='into.v'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.Into.html#tymethod.into' class='fnname'>into</a>(self) -> U</code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#557-559' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||||
</div></div><h3 id='impl-IntoService%3CT%3E' class='impl'><code class='in-band'>impl<T> <a class="trait" href="../actix_service/trait.IntoService.html" title="trait actix_service::IntoService">IntoService</a><T> for T <span class="where fmt-newline">where<br> T: <a class="trait" href="../actix_service/trait.Service.html" title="trait actix_service::Service">Service</a>, </span></code><a href='#impl-IntoService%3CT%3E' class='anchor'></a><a class='srclink' href='../src/actix_service/lib.rs.html#443-450' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.into_service' class="method hidden"><code id='into_service.v'>fn <a href='../actix_service/trait.IntoService.html#tymethod.into_service' class='fnname'>into_service</a>(self) -> T</code><a class='srclink' href='../src/actix_service/lib.rs.html#447-449' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Convert to a <code>Service</code></p>
|
||||
</div></div><h3 id='impl-ServiceExt' class='impl'><code class='in-band'>impl<T> <a class="trait" href="../actix_service/trait.ServiceExt.html" title="trait actix_service::ServiceExt">ServiceExt</a> for T <span class="where fmt-newline">where<br> T: <a class="trait" href="../actix_service/trait.Service.html" title="trait actix_service::Service">Service</a> + ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></code><a href='#impl-ServiceExt' class='anchor'></a><a class='srclink' href='../src/actix_service/lib.rs.html#174' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.apply_fn' class="method hidden"><code id='apply_fn.v'>fn <a href='../actix_service/trait.ServiceExt.html#method.apply_fn' class='fnname'>apply_fn</a><F, B, B1, Out>(<br> self, <br> service: B1, <br> f: F<br>) -> AndThenApply<Self, B, F, Out> <span class="where fmt-newline">where<br> B: <a class="trait" href="../actix_service/trait.Service.html" title="trait actix_service::Service">Service</a><Error = Self::<a class="type" href="../actix_service/trait.Service.html#associatedtype.Error" title="type actix_service::Service::Error">Error</a>>,<br> B1: <a class="trait" href="../actix_service/trait.IntoService.html" title="trait actix_service::IntoService">IntoService</a><B>,<br> F: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(Self::<a class="type" href="../actix_service/trait.Service.html#associatedtype.Response" title="type actix_service::Service::Response">Response</a>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>B) -> Out,<br> Out: <a class="trait" href="../futures/future/trait.IntoFuture.html" title="trait futures::future::IntoFuture">IntoFuture</a>,<br> <Out as <a class="trait" href="../futures/future/trait.IntoFuture.html" title="trait futures::future::IntoFuture">IntoFuture</a>>::<a class="type" href="../futures/future/trait.IntoFuture.html#associatedtype.Error" title="type futures::future::IntoFuture::Error">Error</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><Self::<a class="type" href="../actix_service/trait.Service.html#associatedtype.Error" title="type actix_service::Service::Error">Error</a>>, </span></code><a class='srclink' href='../src/actix_service/lib.rs.html#84-94' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Apply function to specified service and use it as a next service in chain. <a href="../actix_service/trait.ServiceExt.html#method.apply_fn">Read more</a></p>
|
||||
</div><h4 id='method.and_then' class="method hidden"><code id='and_then.v'>fn <a href='../actix_service/trait.ServiceExt.html#method.and_then' class='fnname'>and_then</a><F, B>(self, service: F) -> <a class="struct" href="../actix_service/and_then/struct.AndThen.html" title="struct actix_service::and_then::AndThen">AndThen</a><Self, B> <span class="where fmt-newline">where<br> B: <a class="trait" href="../actix_service/trait.Service.html" title="trait actix_service::Service">Service</a><Request = Self::<a class="type" href="../actix_service/trait.Service.html#associatedtype.Response" title="type actix_service::Service::Response">Response</a>, Error = Self::<a class="type" href="../actix_service/trait.Service.html#associatedtype.Error" title="type actix_service::Service::Error">Error</a>>,<br> F: <a class="trait" href="../actix_service/trait.IntoService.html" title="trait actix_service::IntoService">IntoService</a><B>, </span></code><a class='srclink' href='../src/actix_service/lib.rs.html#105-112' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Call another service after call to this one has resolved successfully. <a href="../actix_service/trait.ServiceExt.html#method.and_then">Read more</a></p>
|
||||
</div><h4 id='method.from_err' class="method hidden"><code id='from_err.v'>fn <a href='../actix_service/trait.ServiceExt.html#method.from_err' class='fnname'>from_err</a><E>(self) -> <a class="struct" href="../actix_service/from_err/struct.FromErr.html" title="struct actix_service::from_err::FromErr">FromErr</a><Self, E> <span class="where fmt-newline">where<br> E: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><Self::<a class="type" href="../actix_service/trait.Service.html#associatedtype.Error" title="type actix_service::Service::Error">Error</a>>, </span></code><a class='srclink' href='../src/actix_service/lib.rs.html#119-125' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Map this service's error to any error implementing <code>From</code> for this service<code>s </code>Error`. <a href="../actix_service/trait.ServiceExt.html#method.from_err">Read more</a></p>
|
||||
</div><h4 id='method.then' class="method hidden"><code id='then.v'>fn <a href='../actix_service/trait.ServiceExt.html#method.then' class='fnname'>then</a><B>(self, service: B) -> <a class="struct" href="../actix_service/then/struct.Then.html" title="struct actix_service::then::Then">Then</a><Self, B> <span class="where fmt-newline">where<br> B: <a class="trait" href="../actix_service/trait.Service.html" title="trait actix_service::Service">Service</a><Request = <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><Self::<a class="type" href="../actix_service/trait.Service.html#associatedtype.Response" title="type actix_service::Service::Response">Response</a>, Self::<a class="type" href="../actix_service/trait.Service.html#associatedtype.Error" title="type actix_service::Service::Error">Error</a>>, Error = Self::<a class="type" href="../actix_service/trait.Service.html#associatedtype.Error" title="type actix_service::Service::Error">Error</a>>, </span></code><a class='srclink' href='../src/actix_service/lib.rs.html#132-138' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Chain on a computation for when a call to the service finished, passing the result of the call to the next service <code>B</code>. <a href="../actix_service/trait.ServiceExt.html#method.then">Read more</a></p>
|
||||
</div><h4 id='method.map' class="method hidden"><code id='map.v'>fn <a href='../actix_service/trait.ServiceExt.html#method.map' class='fnname'>map</a><F, R>(self, f: F) -> <a class="struct" href="../actix_service/map/struct.Map.html" title="struct actix_service::map::Map">Map</a><Self, F, R> <span class="where fmt-newline">where<br> F: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(Self::<a class="type" href="../actix_service/trait.Service.html#associatedtype.Response" title="type actix_service::Service::Response">Response</a>) -> R, </span></code><a class='srclink' href='../src/actix_service/lib.rs.html#149-155' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Map this service's output to a different type, returning a new service of the resulting type. <a href="../actix_service/trait.ServiceExt.html#method.map">Read more</a></p>
|
||||
</div><h4 id='method.map_err' class="method hidden"><code id='map_err.v'>fn <a href='../actix_service/trait.ServiceExt.html#method.map_err' class='fnname'>map_err</a><F, E>(self, f: F) -> <a class="struct" href="../actix_service/map_err/struct.MapErr.html" title="struct actix_service::map_err::MapErr">MapErr</a><Self, F, E> <span class="where fmt-newline">where<br> F: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.Fn.html" title="trait core::ops::function::Fn">Fn</a>(Self::<a class="type" href="../actix_service/trait.Service.html#associatedtype.Error" title="type actix_service::Service::Error">Error</a>) -> E, </span></code><a class='srclink' href='../src/actix_service/lib.rs.html#165-171' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Map this service's error to a different error, returning a new service. <a href="../actix_service/trait.ServiceExt.html#method.map_err">Read more</a></p>
|
||||
</div></div><h3 id='impl-TryFrom%3CU%3E' class='impl'><code class='in-band'>impl<T, U> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><U> for T <span class="where fmt-newline">where<br> U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><T>, </span></code><a href='#impl-TryFrom%3CU%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#601-610' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Error-1' class="type"><code id='Error.t-1'>type <a href='https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error' class="type">Error</a> = <a class="enum" href="https://doc.rust-lang.org/nightly/core/convert/enum.Infallible.html" title="enum core::convert::Infallible">Infallible</a></code></h4><div class='docblock'><p>The type returned in the event of a conversion error.</p>
|
||||
</div><h4 id='method.try_from' class="method hidden"><code id='try_from.v'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#tymethod.try_from' class='fnname'>try_from</a>(value: U) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><T, <T as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><U>>::<a class="type" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>></code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#607-609' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||||
</div></div><h3 id='impl-TryInto%3CU%3E' class='impl'><code class='in-band'>impl<T, U> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html" title="trait core::convert::TryInto">TryInto</a><U> for T <span class="where fmt-newline">where<br> U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>, </span></code><a href='#impl-TryInto%3CU%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#587-596' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Error-2' class="type"><code id='Error.t-2'>type <a href='https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html#associatedtype.Error' class="type">Error</a> = <U as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>>::<a class="type" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a></code></h4><div class='docblock'><p>The type returned in the event of a conversion error.</p>
|
||||
</div><h4 id='method.try_into' class="method hidden"><code id='try_into.v'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html#tymethod.try_into' class='fnname'>try_into</a>(self) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><U, <U as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>>::<a class="type" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>></code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#593-595' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||||
</div></div><h3 id='impl-VZip%3CV%3E' class='impl'><code class='in-band'>impl<V, T> <a class="trait" href="../ppv_lite86/types/types/trait.VZip.html" title="trait ppv_lite86::types::types::VZip">VZip</a><V> for T <span class="where fmt-newline">where<br> V: <a class="trait" href="../ppv_lite86/types/types/trait.MultiLane.html" title="trait ppv_lite86::types::types::MultiLane">MultiLane</a><T>, </span></code><a href='#impl-VZip%3CV%3E' class='anchor'></a><a class='srclink' href='../src/ppv_lite86/types.rs.html#212-220' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.vzip' class="method hidden"><code id='vzip.v'>fn <a href='../ppv_lite86/types/types/trait.VZip.html#tymethod.vzip' class='fnname'>vzip</a>(self) -> V</code><a class='srclink' href='../src/ppv_lite86/types.rs.html#217-219' title='goto source code'>[src]</a></h4></div></div></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../";window.currentCrate = "actix_files";</script><script src="../aliases.js"></script><script src="../main.js"></script><script defer src="../search-index.js"></script></body></html>
|
||||
25
actix_files/struct.HttpRange.html
Normal file
25
actix_files/struct.HttpRange.html
Normal 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 `HttpRange` struct in crate `actix_files`."><meta name="keywords" content="rust, rustlang, rust-lang, HttpRange"><title>actix_files::HttpRange - 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><noscript><link rel="stylesheet" href="../noscript.css"></noscript><link rel="shortcut icon" href="../favicon.ico"><style type="text/css">#crate-search{background-image:url("../down-arrow.svg");}</style></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">☰</div><a href='../actix_files/index.html'><div class='logo-container'><img src='../rust-logo.png' alt='logo'></div></a><p class='location'>Struct HttpRange</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#fields">Fields</a><div class="sidebar-links"><a href="#structfield.start">start</a><a href="#structfield.length">length</a></div><a class="sidebar-title" href="#methods">Methods</a><div class="sidebar-links"><a href="#method.parse">parse</a></div><a class="sidebar-title" href="#implementations">Trait Implementations</a><div class="sidebar-links"><a href="#impl-Clone">Clone</a><a href="#impl-Copy">Copy</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-RefUnwindSafe">RefUnwindSafe</a><a href="#impl-Send">Send</a><a href="#impl-Sync">Sync</a><a href="#impl-Unpin">Unpin</a><a href="#impl-UnwindSafe">UnwindSafe</a></div><a class="sidebar-title" href="#blanket-implementations">Blanket Implementations</a><div class="sidebar-links"><a href="#impl-Any">Any</a><a href="#impl-Borrow%3CT%3E">Borrow<T></a><a href="#impl-BorrowMut%3CT%3E">BorrowMut<T></a><a href="#impl-From%3CT%3E">From<T></a><a href="#impl-Into%3CU%3E">Into<U></a><a href="#impl-ToOwned">ToOwned</a><a href="#impl-TryFrom%3CU%3E">TryFrom<U></a><a href="#impl-TryInto%3CU%3E">TryInto<U></a><a href="#impl-VZip%3CV%3E">VZip<V></a></div></div><p class='location'><a href='index.html'>actix_files</a></p><script>window.sidebarCurrent = {name: 'HttpRange', 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"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><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='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../src/actix_files/range.rs.html#3-6' title='goto source code'>[src]</a></span><span class='in-band'>Struct <a href='index.html'>actix_files</a>::<wbr><a class="struct" href=''>HttpRange</a></span></h1><div class="docblock type-decl hidden-by-usual-hider"><pre class='rust struct'>pub struct HttpRange {
|
||||
pub start: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u64.html">u64</a>,
|
||||
pub length: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u64.html">u64</a>,
|
||||
}</pre></div><div class='docblock'><p>HTTP Range header representation.</p>
|
||||
</div><h2 id='fields' class='fields small-section-header'>
|
||||
Fields<a href='#fields' class='anchor'></a></h2><span id="structfield.start" class="structfield small-section-header"><a href="#structfield.start" class="anchor field"></a><code id="start.v">start: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u64.html">u64</a></code></span><span id="structfield.length" class="structfield small-section-header"><a href="#structfield.length" class="anchor field"></a><code id="length.v">length: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u64.html">u64</a></code></span><h2 id='methods' class='small-section-header'>Methods<a href='#methods' class='anchor'></a></h2><h3 id='impl' class='impl'><code class='in-band'>impl <a class="struct" href="../actix_files/struct.HttpRange.html" title="struct actix_files::HttpRange">HttpRange</a></code><a href='#impl' class='anchor'></a><a class='srclink' href='../src/actix_files/range.rs.html#11-94' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.parse' class="method"><code id='parse.v'>pub fn <a href='#method.parse' class='fnname'>parse</a>(header: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>, size: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u64.html">u64</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="../actix_files/struct.HttpRange.html" title="struct actix_files::HttpRange">HttpRange</a>>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>></code><a class='srclink' href='../src/actix_files/range.rs.html#16-93' title='goto source code'>[src]</a></h4><div class='docblock'><p>Parses Range HTTP header string as per RFC 2616.</p>
|
||||
<p><code>header</code> is HTTP Range header (e.g. <code>bytes=bytes=0-9</code>).
|
||||
<code>size</code> is full size of response (file).</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-Clone' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> for <a class="struct" href="../actix_files/struct.HttpRange.html" title="struct actix_files::HttpRange">HttpRange</a></code><a href='#impl-Clone' class='anchor'></a><a class='srclink' href='../src/actix_files/range.rs.html#2' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.clone' class="method hidden"><code id='clone.v'>fn <a href='https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#tymethod.clone' class='fnname'>clone</a>(&self) -> <a class="struct" href="../actix_files/struct.HttpRange.html" title="struct actix_files::HttpRange">HttpRange</a></code><a class='srclink' href='../src/actix_files/range.rs.html#2' title='goto source code'>[src]</a></h4><div class='docblock hidden'><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 hidden"><code id='clone_from.v'>fn <a href='https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#method.clone_from' class='fnname'>clone_from</a>(&mut self, source: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>Self)</code><span class='since' title='Stable since Rust version 1.0.0'>1.0.0</span><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/clone.rs.html#131-133' title='goto source code'>[src]</a></h4><div class='docblock hidden'><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-Copy' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Copy.html" title="trait core::marker::Copy">Copy</a> for <a class="struct" href="../actix_files/struct.HttpRange.html" title="struct actix_files::HttpRange">HttpRange</a></code><a href='#impl-Copy' class='anchor'></a><a class='srclink' href='../src/actix_files/range.rs.html#2' title='goto source code'>[src]</a></h3><div class='impl-items'></div><h3 id='impl-Debug' class='impl'><code class='in-band'>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_files/struct.HttpRange.html" title="struct actix_files::HttpRange">HttpRange</a></code><a href='#impl-Debug' class='anchor'></a><a class='srclink' href='../src/actix_files/range.rs.html#2' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.fmt' class="method hidden"><code id='fmt.v'>fn <a href='https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt' class='fnname'>fmt</a>(&self, f: &mut <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a>) -> <a class="type" href="https://doc.rust-lang.org/nightly/core/fmt/type.Result.html" title="type core::fmt::Result">Result</a></code><a class='srclink' href='../src/actix_files/range.rs.html#2' title='goto source code'>[src]</a></h4><div class='docblock hidden'><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></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-RefUnwindSafe' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/std/panic/trait.RefUnwindSafe.html" title="trait std::panic::RefUnwindSafe">RefUnwindSafe</a> for <a class="struct" href="../actix_files/struct.HttpRange.html" title="struct actix_files::HttpRange">HttpRange</a></code><a href='#impl-RefUnwindSafe' class='anchor'></a></h3><div class='impl-items'></div><h3 id='impl-Send' class='impl'><code class='in-band'>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_files/struct.HttpRange.html" title="struct actix_files::HttpRange">HttpRange</a></code><a href='#impl-Send' class='anchor'></a></h3><div class='impl-items'></div><h3 id='impl-Sync' class='impl'><code class='in-band'>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_files/struct.HttpRange.html" title="struct actix_files::HttpRange">HttpRange</a></code><a href='#impl-Sync' class='anchor'></a></h3><div class='impl-items'></div><h3 id='impl-Unpin' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a> for <a class="struct" href="../actix_files/struct.HttpRange.html" title="struct actix_files::HttpRange">HttpRange</a></code><a href='#impl-Unpin' class='anchor'></a></h3><div class='impl-items'></div><h3 id='impl-UnwindSafe' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/std/panic/trait.UnwindSafe.html" title="trait std::panic::UnwindSafe">UnwindSafe</a> for <a class="struct" href="../actix_files/struct.HttpRange.html" title="struct actix_files::HttpRange">HttpRange</a></code><a href='#impl-UnwindSafe' class='anchor'></a></h3><div class='impl-items'></div></div><h2 id='blanket-implementations' class='small-section-header'>Blanket Implementations<a href='#blanket-implementations' class='anchor'></a></h2><div id='blanket-implementations-list'><h3 id='impl-Any' class='impl'><code class='in-band'>impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html" title="trait core::any::Any">Any</a> for T <span class="where fmt-newline">where<br> T: 'static + ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></code><a href='#impl-Any' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/any.rs.html#108-112' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.type_id' class="method hidden"><code id='type_id.v'>fn <a href='https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id' class='fnname'>type_id</a>(&self) -> <a class="struct" href="https://doc.rust-lang.org/nightly/core/any/struct.TypeId.html" title="struct core::any::TypeId">TypeId</a></code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/any.rs.html#109-111' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Gets the <code>TypeId</code> of <code>self</code>. <a href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id">Read more</a></p>
|
||||
</div></div><h3 id='impl-Borrow%3CT%3E' class='impl'><code class='in-band'>impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a><T> for T <span class="where fmt-newline">where<br> T: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></code><a href='#impl-Borrow%3CT%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#213-217' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.borrow' class="method hidden"><code id='borrow.v'>fn <a href='https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow' class='fnname'>borrow</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>T</code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#214-216' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Immutably borrows from an owned value. <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow">Read more</a></p>
|
||||
</div></div><h3 id='impl-BorrowMut%3CT%3E' class='impl'><code class='in-band'>impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html" title="trait core::borrow::BorrowMut">BorrowMut</a><T> for T <span class="where fmt-newline">where<br> T: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></code><a href='#impl-BorrowMut%3CT%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#220-224' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.borrow_mut' class="method hidden"><code id='borrow_mut.v'>fn <a href='https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut' class='fnname'>borrow_mut</a>(&mut self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>T</code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#221-223' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Mutably borrows from an owned value. <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read more</a></p>
|
||||
</div></div><h3 id='impl-From%3CT%3E' class='impl'><code class='in-band'>impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><T> for T</code><a href='#impl-From%3CT%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#564-568' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.from' class="method hidden"><code id='from.v'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from' class='fnname'>from</a>(t: T) -> T</code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#565-567' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||||
</div></div><h3 id='impl-Into%3CU%3E' class='impl'><code class='in-band'>impl<T, U> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><U> for T <span class="where fmt-newline">where<br> U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><T>, </span></code><a href='#impl-Into%3CU%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#553-560' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.into' class="method hidden"><code id='into.v'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.Into.html#tymethod.into' class='fnname'>into</a>(self) -> U</code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#557-559' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||||
</div></div><h3 id='impl-ToOwned' class='impl'><code class='in-band'>impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html" title="trait alloc::borrow::ToOwned">ToOwned</a> for T <span class="where fmt-newline">where<br> T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>, </span></code><a href='#impl-ToOwned' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/alloc/borrow.rs.html#80-92' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Owned' class="type"><code id='Owned.t'>type <a href='https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#associatedtype.Owned' class="type">Owned</a> = T</code></h4><div class='docblock'><p>The resulting type after obtaining ownership.</p>
|
||||
</div><h4 id='method.to_owned' class="method hidden"><code id='to_owned.v'>fn <a href='https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#tymethod.to_owned' class='fnname'>to_owned</a>(&self) -> T</code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/alloc/borrow.rs.html#85-87' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Creates owned data from borrowed data, usually by cloning. <a href="https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#tymethod.to_owned">Read more</a></p>
|
||||
</div><h4 id='method.clone_into' class="method hidden"><code id='clone_into.v'>fn <a href='https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#method.clone_into' class='fnname'>clone_into</a>(&self, target: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>T)</code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/alloc/borrow.rs.html#89-91' title='goto source code'>[src]</a></h4><div class='stability hidden'><div class='stab unstable'><details><summary><span class='emoji'>🔬</span> This is a nightly-only experimental API. (<code>toowned_clone_into</code>)</summary><p>recently added</p>
|
||||
</details></div></div><div class='docblock hidden'><p>Uses borrowed data to replace owned data, usually by cloning. <a href="https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#method.clone_into">Read more</a></p>
|
||||
</div></div><h3 id='impl-TryFrom%3CU%3E' class='impl'><code class='in-band'>impl<T, U> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><U> for T <span class="where fmt-newline">where<br> U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><T>, </span></code><a href='#impl-TryFrom%3CU%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#601-610' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Error' class="type"><code id='Error.t'>type <a href='https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error' class="type">Error</a> = <a class="enum" href="https://doc.rust-lang.org/nightly/core/convert/enum.Infallible.html" title="enum core::convert::Infallible">Infallible</a></code></h4><div class='docblock'><p>The type returned in the event of a conversion error.</p>
|
||||
</div><h4 id='method.try_from' class="method hidden"><code id='try_from.v'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#tymethod.try_from' class='fnname'>try_from</a>(value: U) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><T, <T as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><U>>::<a class="type" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>></code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#607-609' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||||
</div></div><h3 id='impl-TryInto%3CU%3E' class='impl'><code class='in-band'>impl<T, U> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html" title="trait core::convert::TryInto">TryInto</a><U> for T <span class="where fmt-newline">where<br> U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>, </span></code><a href='#impl-TryInto%3CU%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#587-596' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Error-1' class="type"><code id='Error.t-1'>type <a href='https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html#associatedtype.Error' class="type">Error</a> = <U as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>>::<a class="type" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a></code></h4><div class='docblock'><p>The type returned in the event of a conversion error.</p>
|
||||
</div><h4 id='method.try_into' class="method hidden"><code id='try_into.v'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html#tymethod.try_into' class='fnname'>try_into</a>(self) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><U, <U as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>>::<a class="type" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>></code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#593-595' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||||
</div></div><h3 id='impl-VZip%3CV%3E' class='impl'><code class='in-band'>impl<V, T> <a class="trait" href="../ppv_lite86/types/types/trait.VZip.html" title="trait ppv_lite86::types::types::VZip">VZip</a><V> for T <span class="where fmt-newline">where<br> V: <a class="trait" href="../ppv_lite86/types/types/trait.MultiLane.html" title="trait ppv_lite86::types::types::MultiLane">MultiLane</a><T>, </span></code><a href='#impl-VZip%3CV%3E' class='anchor'></a><a class='srclink' href='../src/ppv_lite86/types.rs.html#212-220' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.vzip' class="method hidden"><code id='vzip.v'>fn <a href='../ppv_lite86/types/types/trait.VZip.html#tymethod.vzip' class='fnname'>vzip</a>(self) -> V</code><a class='srclink' href='../src/ppv_lite86/types.rs.html#217-219' title='goto source code'>[src]</a></h4></div></div></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../";window.currentCrate = "actix_files";</script><script src="../aliases.js"></script><script src="../main.js"></script><script defer src="../search-index.js"></script></body></html>
|
||||
194
actix_files/struct.NamedFile.html
Normal file
194
actix_files/struct.NamedFile.html
Normal file
@@ -0,0 +1,194 @@
|
||||
<!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 `NamedFile` struct in crate `actix_files`."><meta name="keywords" content="rust, rustlang, rust-lang, NamedFile"><title>actix_files::NamedFile - 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><noscript><link rel="stylesheet" href="../noscript.css"></noscript><link rel="shortcut icon" href="../favicon.ico"><style type="text/css">#crate-search{background-image:url("../down-arrow.svg");}</style></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">☰</div><a href='../actix_files/index.html'><div class='logo-container'><img src='../rust-logo.png' alt='logo'></div></a><p class='location'>Struct NamedFile</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#methods">Methods</a><div class="sidebar-links"><a href="#method.disable_content_disposition">disable_content_disposition</a><a href="#method.file">file</a><a href="#method.from_file">from_file</a><a href="#method.open">open</a><a href="#method.path">path</a><a href="#method.set_content_disposition">set_content_disposition</a><a href="#method.set_content_encoding">set_content_encoding</a><a href="#method.set_content_type">set_content_type</a><a href="#method.set_status_code">set_status_code</a><a href="#method.use_etag">use_etag</a><a href="#method.use_last_modified">use_last_modified</a></div><a class="sidebar-title" href="#deref-methods">Methods from Deref<Target=File></a><div class="sidebar-links"><a href="#method.metadata">metadata</a><a href="#method.set_len">set_len</a><a href="#method.set_permissions">set_permissions</a><a href="#method.sync_all">sync_all</a><a href="#method.sync_data">sync_data</a><a href="#method.try_clone">try_clone</a></div><a class="sidebar-title" href="#implementations">Trait Implementations</a><div class="sidebar-links"><a href="#impl-Debug">Debug</a><a href="#impl-Deref">Deref</a><a href="#impl-DerefMut">DerefMut</a><a href="#impl-Responder">Responder</a></div><a class="sidebar-title" href="#synthetic-implementations">Auto Trait Implementations</a><div class="sidebar-links"><a href="#impl-RefUnwindSafe">RefUnwindSafe</a><a href="#impl-Send">Send</a><a href="#impl-Sync">Sync</a><a href="#impl-Unpin">Unpin</a><a href="#impl-UnwindSafe">UnwindSafe</a></div><a class="sidebar-title" href="#blanket-implementations">Blanket Implementations</a><div class="sidebar-links"><a href="#impl-Any">Any</a><a href="#impl-Borrow%3CT%3E">Borrow<T></a><a href="#impl-BorrowMut%3CT%3E">BorrowMut<T></a><a href="#impl-From%3CT%3E">From<T></a><a href="#impl-Into%3CU%3E">Into<U></a><a href="#impl-TryFrom%3CU%3E">TryFrom<U></a><a href="#impl-TryInto%3CU%3E">TryInto<U></a><a href="#impl-VZip%3CV%3E">VZip<V></a></div></div><p class='location'><a href='index.html'>actix_files</a></p><script>window.sidebarCurrent = {name: 'NamedFile', 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"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><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='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../src/actix_files/named.rs.html#41-51' title='goto source code'>[src]</a></span><span class='in-band'>Struct <a href='index.html'>actix_files</a>::<wbr><a class="struct" href=''>NamedFile</a></span></h1><div class="docblock type-decl hidden-by-usual-hider"><pre class='rust struct'>pub struct NamedFile { /* fields omitted */ }</pre></div><div class='docblock'><p>A file with an associated name.</p>
|
||||
</div><h2 id='methods' class='small-section-header'>Methods<a href='#methods' class='anchor'></a></h2><h3 id='impl' class='impl'><code class='in-band'>impl <a class="struct" href="../actix_files/struct.NamedFile.html" title="struct actix_files::NamedFile">NamedFile</a></code><a href='#impl' class='anchor'></a><a class='srclink' href='../src/actix_files/named.rs.html#53-258' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.from_file' class="method"><code id='from_file.v'>pub fn <a href='#method.from_file' class='fnname'>from_file</a><P: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><<a class="struct" href="https://doc.rust-lang.org/nightly/std/path/struct.Path.html" title="struct std::path::Path">Path</a>>>(file: <a class="struct" href="https://doc.rust-lang.org/nightly/std/fs/struct.File.html" title="struct std::fs::File">File</a>, path: P) -> <a class="type" href="https://doc.rust-lang.org/nightly/std/io/error/type.Result.html" title="type std::io::error::Result">Result</a><<a class="struct" href="../actix_files/struct.NamedFile.html" title="struct actix_files::NamedFile">NamedFile</a>></code><a class='srclink' href='../src/actix_files/named.rs.html#75-126' title='goto source code'>[src]</a></h4><div class='docblock'><p>Creates an instance from a previously opened file.</p>
|
||||
<p>The given <code>path</code> need not exist and is only used to determine the <code>ContentType</code> and
|
||||
<code>ContentDisposition</code> headers.</p>
|
||||
<h1 id="examples" class="section-header"><a href="#examples">Examples</a></h1>
|
||||
<div class="example-wrap"><pre class="rust rust-example-rendered">
|
||||
<span class="kw">use</span> <span class="ident">actix_files</span>::<span class="ident">NamedFile</span>;
|
||||
<span class="kw">use</span> <span class="ident">std</span>::<span class="ident">io</span>::{<span class="self">self</span>, <span class="ident">Write</span>};
|
||||
<span class="kw">use</span> <span class="ident">std</span>::<span class="ident">env</span>;
|
||||
<span class="kw">use</span> <span class="ident">std</span>::<span class="ident">fs</span>::<span class="ident">File</span>;
|
||||
|
||||
<span class="kw">fn</span> <span class="ident">main</span>() <span class="op">-</span><span class="op">></span> <span class="ident">io</span>::<span class="prelude-ty">Result</span><span class="op"><</span>()<span class="op">></span> {
|
||||
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">file</span> <span class="op">=</span> <span class="ident">File</span>::<span class="ident">create</span>(<span class="string">"foo.txt"</span>)<span class="question-mark">?</span>;
|
||||
<span class="ident">file</span>.<span class="ident">write_all</span>(<span class="string">b"Hello, world!"</span>)<span class="question-mark">?</span>;
|
||||
<span class="kw">let</span> <span class="ident">named_file</span> <span class="op">=</span> <span class="ident">NamedFile</span>::<span class="ident">from_file</span>(<span class="ident">file</span>, <span class="string">"bar.txt"</span>)<span class="question-mark">?</span>;
|
||||
<span class="prelude-val">Ok</span>(())
|
||||
}</pre></div>
|
||||
</div><h4 id='method.open' class="method"><code id='open.v'>pub fn <a href='#method.open' class='fnname'>open</a><P: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><<a class="struct" href="https://doc.rust-lang.org/nightly/std/path/struct.Path.html" title="struct std::path::Path">Path</a>>>(path: P) -> <a class="type" href="https://doc.rust-lang.org/nightly/std/io/error/type.Result.html" title="type std::io::error::Result">Result</a><<a class="struct" href="../actix_files/struct.NamedFile.html" title="struct actix_files::NamedFile">NamedFile</a>></code><a class='srclink' href='../src/actix_files/named.rs.html#137-139' title='goto source code'>[src]</a></h4><div class='docblock'><p>Attempts to open a file in read-only mode.</p>
|
||||
<h1 id="examples-1" class="section-header"><a href="#examples-1">Examples</a></h1>
|
||||
<div class="example-wrap"><pre class="rust rust-example-rendered">
|
||||
<span class="kw">use</span> <span class="ident">actix_files</span>::<span class="ident">NamedFile</span>;
|
||||
|
||||
<span class="kw">let</span> <span class="ident">file</span> <span class="op">=</span> <span class="ident">NamedFile</span>::<span class="ident">open</span>(<span class="string">"foo.txt"</span>);</pre></div>
|
||||
</div><h4 id='method.file' class="method"><code id='file.v'>pub fn <a href='#method.file' class='fnname'>file</a>(&self) -> &<a class="struct" href="https://doc.rust-lang.org/nightly/std/fs/struct.File.html" title="struct std::fs::File">File</a></code><a class='srclink' href='../src/actix_files/named.rs.html#143-145' title='goto source code'>[src]</a></h4><div class='docblock'><p>Returns reference to the underlying <code>File</code> object.</p>
|
||||
</div><h4 id='method.path' class="method"><code id='path.v'>pub fn <a href='#method.path' class='fnname'>path</a>(&self) -> &<a class="struct" href="https://doc.rust-lang.org/nightly/std/path/struct.Path.html" title="struct std::path::Path">Path</a></code><a class='srclink' href='../src/actix_files/named.rs.html#162-164' title='goto source code'>[src]</a></h4><div class='docblock'><p>Retrieve the path of this file.</p>
|
||||
<h1 id="examples-2" class="section-header"><a href="#examples-2">Examples</a></h1>
|
||||
<div class="example-wrap"><pre class="rust rust-example-rendered">
|
||||
<span class="kw">use</span> <span class="ident">actix_files</span>::<span class="ident">NamedFile</span>;
|
||||
|
||||
<span class="kw">let</span> <span class="ident">file</span> <span class="op">=</span> <span class="ident">NamedFile</span>::<span class="ident">open</span>(<span class="string">"test.txt"</span>)<span class="question-mark">?</span>;
|
||||
<span class="macro">assert_eq</span><span class="macro">!</span>(<span class="ident">file</span>.<span class="ident">path</span>().<span class="ident">as_os_str</span>(), <span class="string">"foo.txt"</span>);</pre></div>
|
||||
</div><h4 id='method.set_status_code' class="method"><code id='set_status_code.v'>pub fn <a href='#method.set_status_code' class='fnname'>set_status_code</a>(self, status: <a class="struct" href="../http/status/struct.StatusCode.html" title="struct http::status::StatusCode">StatusCode</a>) -> Self</code><a class='srclink' href='../src/actix_files/named.rs.html#167-170' title='goto source code'>[src]</a></h4><div class='docblock'><p>Set response <strong>Status Code</strong></p>
|
||||
</div><h4 id='method.set_content_type' class="method"><code id='set_content_type.v'>pub fn <a href='#method.set_content_type' class='fnname'>set_content_type</a>(self, mime_type: <a class="struct" href="../mime/struct.Mime.html" title="struct mime::Mime">Mime</a>) -> Self</code><a class='srclink' href='../src/actix_files/named.rs.html#175-178' title='goto source code'>[src]</a></h4><div class='docblock'><p>Set the MIME Content-Type for serving this file. By default
|
||||
the Content-Type is inferred from the filename extension.</p>
|
||||
</div><h4 id='method.set_content_disposition' class="method"><code id='set_content_disposition.v'>pub fn <a href='#method.set_content_disposition' class='fnname'>set_content_disposition</a>(self, cd: <a class="struct" href="../actix_http/header/common/content_disposition/struct.ContentDisposition.html" title="struct actix_http::header::common::content_disposition::ContentDisposition">ContentDisposition</a>) -> Self</code><a class='srclink' href='../src/actix_files/named.rs.html#188-192' title='goto source code'>[src]</a></h4><div class='docblock'><p>Set the Content-Disposition for serving this file. This allows
|
||||
changing the inline/attachment disposition as well as the filename
|
||||
sent to the peer. By default the disposition is <code>inline</code> for text,
|
||||
image, and video content types, and <code>attachment</code> otherwise, and
|
||||
the filename is taken from the path provided in the <code>open</code> method
|
||||
after converting it to UTF-8 using.
|
||||
<a href="https://doc.rust-lang.org/std/ffi/struct.OsStr.html#method.to_string_lossy">to_string_lossy</a>.</p>
|
||||
</div><h4 id='method.disable_content_disposition' class="method"><code id='disable_content_disposition.v'>pub fn <a href='#method.disable_content_disposition' class='fnname'>disable_content_disposition</a>(self) -> Self</code><a class='srclink' href='../src/actix_files/named.rs.html#198-201' title='goto source code'>[src]</a></h4><div class='docblock'><p>Disable <code>Content-Disposition</code> header.</p>
|
||||
<p>By default Content-Disposition` header is enabled.</p>
|
||||
</div><h4 id='method.set_content_encoding' class="method"><code id='set_content_encoding.v'>pub fn <a href='#method.set_content_encoding' class='fnname'>set_content_encoding</a>(self, enc: <a class="enum" href="../actix_http/header/enum.ContentEncoding.html" title="enum actix_http::header::ContentEncoding">ContentEncoding</a>) -> Self</code><a class='srclink' href='../src/actix_files/named.rs.html#205-208' title='goto source code'>[src]</a></h4><div class='docblock'><p>Set content encoding for serving this file</p>
|
||||
</div><h4 id='method.use_etag' class="method"><code id='use_etag.v'>pub fn <a href='#method.use_etag' class='fnname'>use_etag</a>(self, value: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>) -> Self</code><a class='srclink' href='../src/actix_files/named.rs.html#214-217' title='goto source code'>[src]</a></h4><div class='docblock'><p>Specifies whether to use ETag or not.</p>
|
||||
<p>Default is true.</p>
|
||||
</div><h4 id='method.use_last_modified' class="method"><code id='use_last_modified.v'>pub fn <a href='#method.use_last_modified' class='fnname'>use_last_modified</a>(self, value: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>) -> Self</code><a class='srclink' href='../src/actix_files/named.rs.html#223-226' title='goto source code'>[src]</a></h4><div class='docblock'><p>Specifies whether to use Last-Modified or not.</p>
|
||||
<p>Default is true.</p>
|
||||
</div></div><h2 id='deref-methods' class='small-section-header'>Methods from <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/deref/trait.Deref.html" title="trait core::ops::deref::Deref">Deref</a><Target = <a class="struct" href="https://doc.rust-lang.org/nightly/std/fs/struct.File.html" title="struct std::fs::File">File</a>><a href='#deref-methods' class='anchor'></a></h2><div class='impl-items'><h4 id='method.sync_all' class="method"><code id='sync_all.v'>pub fn <a href='#method.sync_all' class='fnname'>sync_all</a>(&self) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<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/std/io/error/struct.Error.html" title="struct std::io::error::Error">Error</a>></code><span class='since' title='Stable since Rust version 1.0.0'>1.0.0</span><a class='srclink' href='https://doc.rust-lang.org/nightly/src/std/fs.rs.html#457-459' title='goto source code'>[src]</a></h4><div class='docblock'><p>Attempts to sync all OS-internal metadata to disk.</p>
|
||||
<p>This function will attempt to ensure that all in-memory data reaches the
|
||||
filesystem before returning.</p>
|
||||
<p>This can be used to handle errors that would otherwise only be caught
|
||||
when the <code>File</code> is closed. Dropping a file will ignore errors in
|
||||
synchronizing this in-memory data.</p>
|
||||
<h1 id="examples-3" class="section-header"><a href="#examples-3">Examples</a></h1>
|
||||
<div class="example-wrap"><pre class="rust rust-example-rendered">
|
||||
<span class="kw">use</span> <span class="ident">std</span>::<span class="ident">fs</span>::<span class="ident">File</span>;
|
||||
<span class="kw">use</span> <span class="ident">std</span>::<span class="ident">io</span>::<span class="ident">prelude</span>::<span class="kw-2">*</span>;
|
||||
|
||||
<span class="kw">fn</span> <span class="ident">main</span>() <span class="op">-</span><span class="op">></span> <span class="ident">std</span>::<span class="ident">io</span>::<span class="prelude-ty">Result</span><span class="op"><</span>()<span class="op">></span> {
|
||||
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">f</span> <span class="op">=</span> <span class="ident">File</span>::<span class="ident">create</span>(<span class="string">"foo.txt"</span>)<span class="question-mark">?</span>;
|
||||
<span class="ident">f</span>.<span class="ident">write_all</span>(<span class="string">b"Hello, world!"</span>)<span class="question-mark">?</span>;
|
||||
|
||||
<span class="ident">f</span>.<span class="ident">sync_all</span>()<span class="question-mark">?</span>;
|
||||
<span class="prelude-val">Ok</span>(())
|
||||
}</pre></div>
|
||||
</div><h4 id='method.sync_data' class="method"><code id='sync_data.v'>pub fn <a href='#method.sync_data' class='fnname'>sync_data</a>(&self) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<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/std/io/error/struct.Error.html" title="struct std::io::error::Error">Error</a>></code><span class='since' title='Stable since Rust version 1.0.0'>1.0.0</span><a class='srclink' href='https://doc.rust-lang.org/nightly/src/std/fs.rs.html#488-490' title='goto source code'>[src]</a></h4><div class='docblock'><p>This function is similar to <a href="struct.File.html#method.sync_all"><code>sync_all</code></a>, except that it may not
|
||||
synchronize file metadata to the filesystem.</p>
|
||||
<p>This is intended for use cases that must synchronize content, but don't
|
||||
need the metadata on disk. The goal of this method is to reduce disk
|
||||
operations.</p>
|
||||
<p>Note that some platforms may simply implement this in terms of
|
||||
<a href="struct.File.html#method.sync_all"><code>sync_all</code></a>.</p>
|
||||
<h1 id="examples-4" class="section-header"><a href="#examples-4">Examples</a></h1>
|
||||
<div class="example-wrap"><pre class="rust rust-example-rendered">
|
||||
<span class="kw">use</span> <span class="ident">std</span>::<span class="ident">fs</span>::<span class="ident">File</span>;
|
||||
<span class="kw">use</span> <span class="ident">std</span>::<span class="ident">io</span>::<span class="ident">prelude</span>::<span class="kw-2">*</span>;
|
||||
|
||||
<span class="kw">fn</span> <span class="ident">main</span>() <span class="op">-</span><span class="op">></span> <span class="ident">std</span>::<span class="ident">io</span>::<span class="prelude-ty">Result</span><span class="op"><</span>()<span class="op">></span> {
|
||||
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">f</span> <span class="op">=</span> <span class="ident">File</span>::<span class="ident">create</span>(<span class="string">"foo.txt"</span>)<span class="question-mark">?</span>;
|
||||
<span class="ident">f</span>.<span class="ident">write_all</span>(<span class="string">b"Hello, world!"</span>)<span class="question-mark">?</span>;
|
||||
|
||||
<span class="ident">f</span>.<span class="ident">sync_data</span>()<span class="question-mark">?</span>;
|
||||
<span class="prelude-val">Ok</span>(())
|
||||
}</pre></div>
|
||||
</div><h4 id='method.set_len' class="method"><code id='set_len.v'>pub fn <a href='#method.set_len' class='fnname'>set_len</a>(&self, size: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u64.html">u64</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<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/std/io/error/struct.Error.html" title="struct std::io::error::Error">Error</a>></code><span class='since' title='Stable since Rust version 1.0.0'>1.0.0</span><a class='srclink' href='https://doc.rust-lang.org/nightly/src/std/fs.rs.html#525-527' title='goto source code'>[src]</a></h4><div class='docblock'><p>Truncates or extends the underlying file, updating the size of
|
||||
this file to become <code>size</code>.</p>
|
||||
<p>If the <code>size</code> is less than the current file's size, then the file will
|
||||
be shrunk. If it is greater than the current file's size, then the file
|
||||
will be extended to <code>size</code> and have all of the intermediate data filled
|
||||
in with 0s.</p>
|
||||
<p>The file's cursor isn't changed. In particular, if the cursor was at the
|
||||
end and the file is shrunk using this operation, the cursor will now be
|
||||
past the end.</p>
|
||||
<h1 id="errors" class="section-header"><a href="#errors">Errors</a></h1>
|
||||
<p>This function will return an error if the file is not opened for writing.
|
||||
Also, std::io::ErrorKind::InvalidInput will be returned if the desired
|
||||
length would cause an overflow due to the implementation specifics.</p>
|
||||
<h1 id="examples-5" class="section-header"><a href="#examples-5">Examples</a></h1>
|
||||
<div class="example-wrap"><pre class="rust rust-example-rendered">
|
||||
<span class="kw">use</span> <span class="ident">std</span>::<span class="ident">fs</span>::<span class="ident">File</span>;
|
||||
|
||||
<span class="kw">fn</span> <span class="ident">main</span>() <span class="op">-</span><span class="op">></span> <span class="ident">std</span>::<span class="ident">io</span>::<span class="prelude-ty">Result</span><span class="op"><</span>()<span class="op">></span> {
|
||||
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">f</span> <span class="op">=</span> <span class="ident">File</span>::<span class="ident">create</span>(<span class="string">"foo.txt"</span>)<span class="question-mark">?</span>;
|
||||
<span class="ident">f</span>.<span class="ident">set_len</span>(<span class="number">10</span>)<span class="question-mark">?</span>;
|
||||
<span class="prelude-val">Ok</span>(())
|
||||
}</pre></div>
|
||||
<p>Note that this method alters the content of the underlying file, even
|
||||
though it takes <code>&self</code> rather than <code>&mut self</code>.</p>
|
||||
</div><h4 id='method.metadata' class="method"><code id='metadata.v'>pub fn <a href='#method.metadata' class='fnname'>metadata</a>(&self) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="struct" href="https://doc.rust-lang.org/nightly/std/fs/struct.Metadata.html" title="struct std::fs::Metadata">Metadata</a>, <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 class='since' title='Stable since Rust version 1.0.0'>1.0.0</span><a class='srclink' href='https://doc.rust-lang.org/nightly/src/std/fs.rs.html#543-545' title='goto source code'>[src]</a></h4><div class='docblock'><p>Queries metadata about the underlying file.</p>
|
||||
<h1 id="examples-6" class="section-header"><a href="#examples-6">Examples</a></h1>
|
||||
<div class="example-wrap"><pre class="rust rust-example-rendered">
|
||||
<span class="kw">use</span> <span class="ident">std</span>::<span class="ident">fs</span>::<span class="ident">File</span>;
|
||||
|
||||
<span class="kw">fn</span> <span class="ident">main</span>() <span class="op">-</span><span class="op">></span> <span class="ident">std</span>::<span class="ident">io</span>::<span class="prelude-ty">Result</span><span class="op"><</span>()<span class="op">></span> {
|
||||
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">f</span> <span class="op">=</span> <span class="ident">File</span>::<span class="ident">open</span>(<span class="string">"foo.txt"</span>)<span class="question-mark">?</span>;
|
||||
<span class="kw">let</span> <span class="ident">metadata</span> <span class="op">=</span> <span class="ident">f</span>.<span class="ident">metadata</span>()<span class="question-mark">?</span>;
|
||||
<span class="prelude-val">Ok</span>(())
|
||||
}</pre></div>
|
||||
</div><h4 id='method.try_clone' class="method"><code id='try_clone.v'>pub fn <a href='#method.try_clone' class='fnname'>try_clone</a>(&self) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="struct" href="https://doc.rust-lang.org/nightly/std/fs/struct.File.html" title="struct std::fs::File">File</a>, <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 class='since' title='Stable since Rust version 1.9.0'>1.9.0</span><a class='srclink' href='https://doc.rust-lang.org/nightly/src/std/fs.rs.html#587-589' title='goto source code'>[src]</a></h4><div class='docblock'><p>Creates a new <code>File</code> instance that shares the same underlying file handle
|
||||
as the existing <code>File</code> instance. Reads, writes, and seeks will affect
|
||||
both <code>File</code> instances simultaneously.</p>
|
||||
<h1 id="examples-7" class="section-header"><a href="#examples-7">Examples</a></h1>
|
||||
<p>Creates two handles for a file named <code>foo.txt</code>:</p>
|
||||
|
||||
<div class="example-wrap"><pre class="rust rust-example-rendered">
|
||||
<span class="kw">use</span> <span class="ident">std</span>::<span class="ident">fs</span>::<span class="ident">File</span>;
|
||||
|
||||
<span class="kw">fn</span> <span class="ident">main</span>() <span class="op">-</span><span class="op">></span> <span class="ident">std</span>::<span class="ident">io</span>::<span class="prelude-ty">Result</span><span class="op"><</span>()<span class="op">></span> {
|
||||
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">file</span> <span class="op">=</span> <span class="ident">File</span>::<span class="ident">open</span>(<span class="string">"foo.txt"</span>)<span class="question-mark">?</span>;
|
||||
<span class="kw">let</span> <span class="ident">file_copy</span> <span class="op">=</span> <span class="ident">file</span>.<span class="ident">try_clone</span>()<span class="question-mark">?</span>;
|
||||
<span class="prelude-val">Ok</span>(())
|
||||
}</pre></div>
|
||||
<p>Assuming there’s a file named <code>foo.txt</code> with contents <code>abcdef\n</code>, create
|
||||
two handles, seek one of them, and read the remaining bytes from the
|
||||
other handle:</p>
|
||||
|
||||
<div class="example-wrap"><pre class="rust rust-example-rendered">
|
||||
<span class="kw">use</span> <span class="ident">std</span>::<span class="ident">fs</span>::<span class="ident">File</span>;
|
||||
<span class="kw">use</span> <span class="ident">std</span>::<span class="ident">io</span>::<span class="ident">SeekFrom</span>;
|
||||
<span class="kw">use</span> <span class="ident">std</span>::<span class="ident">io</span>::<span class="ident">prelude</span>::<span class="kw-2">*</span>;
|
||||
|
||||
<span class="kw">fn</span> <span class="ident">main</span>() <span class="op">-</span><span class="op">></span> <span class="ident">std</span>::<span class="ident">io</span>::<span class="prelude-ty">Result</span><span class="op"><</span>()<span class="op">></span> {
|
||||
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">file</span> <span class="op">=</span> <span class="ident">File</span>::<span class="ident">open</span>(<span class="string">"foo.txt"</span>)<span class="question-mark">?</span>;
|
||||
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">file_copy</span> <span class="op">=</span> <span class="ident">file</span>.<span class="ident">try_clone</span>()<span class="question-mark">?</span>;
|
||||
|
||||
<span class="ident">file</span>.<span class="ident">seek</span>(<span class="ident">SeekFrom</span>::<span class="ident">Start</span>(<span class="number">3</span>))<span class="question-mark">?</span>;
|
||||
|
||||
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">contents</span> <span class="op">=</span> <span class="macro">vec</span><span class="macro">!</span>[];
|
||||
<span class="ident">file_copy</span>.<span class="ident">read_to_end</span>(<span class="kw-2">&</span><span class="kw-2">mut</span> <span class="ident">contents</span>)<span class="question-mark">?</span>;
|
||||
<span class="macro">assert_eq</span><span class="macro">!</span>(<span class="ident">contents</span>, <span class="string">b"def\n"</span>);
|
||||
<span class="prelude-val">Ok</span>(())
|
||||
}</pre></div>
|
||||
</div><h4 id='method.set_permissions' class="method"><code id='set_permissions.v'>pub fn <a href='#method.set_permissions' class='fnname'>set_permissions</a>(&self, perm: <a class="struct" href="https://doc.rust-lang.org/nightly/std/fs/struct.Permissions.html" title="struct std::fs::Permissions">Permissions</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<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/std/io/error/struct.Error.html" title="struct std::io::error::Error">Error</a>></code><span class='since' title='Stable since Rust version 1.16.0'>1.16.0</span><a class='srclink' href='https://doc.rust-lang.org/nightly/src/std/fs.rs.html#624-626' title='goto source code'>[src]</a></h4><div class='docblock'><p>Changes the permissions on the underlying file.</p>
|
||||
<h1 id="platform-specific-behavior" class="section-header"><a href="#platform-specific-behavior">Platform-specific behavior</a></h1>
|
||||
<p>This function currently corresponds to the <code>fchmod</code> function on Unix and
|
||||
the <code>SetFileInformationByHandle</code> function on Windows. Note that, this
|
||||
<a href="../io/index.html#platform-specific-behavior">may change in the future</a>.</p>
|
||||
<h1 id="errors-1" class="section-header"><a href="#errors-1">Errors</a></h1>
|
||||
<p>This function will return an error if the user lacks permission change
|
||||
attributes on the underlying file. It may also return an error in other
|
||||
os-specific unspecified cases.</p>
|
||||
<h1 id="examples-8" class="section-header"><a href="#examples-8">Examples</a></h1>
|
||||
<div class="example-wrap"><pre class="rust rust-example-rendered">
|
||||
<span class="kw">fn</span> <span class="ident">main</span>() <span class="op">-</span><span class="op">></span> <span class="ident">std</span>::<span class="ident">io</span>::<span class="prelude-ty">Result</span><span class="op"><</span>()<span class="op">></span> {
|
||||
<span class="kw">use</span> <span class="ident">std</span>::<span class="ident">fs</span>::<span class="ident">File</span>;
|
||||
|
||||
<span class="kw">let</span> <span class="ident">file</span> <span class="op">=</span> <span class="ident">File</span>::<span class="ident">open</span>(<span class="string">"foo.txt"</span>)<span class="question-mark">?</span>;
|
||||
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">perms</span> <span class="op">=</span> <span class="ident">file</span>.<span class="ident">metadata</span>()<span class="question-mark">?</span>.<span class="ident">permissions</span>();
|
||||
<span class="ident">perms</span>.<span class="ident">set_readonly</span>(<span class="bool-val">true</span>);
|
||||
<span class="ident">file</span>.<span class="ident">set_permissions</span>(<span class="ident">perms</span>)<span class="question-mark">?</span>;
|
||||
<span class="prelude-val">Ok</span>(())
|
||||
}</pre></div>
|
||||
<p>Note that this method alters the permissions of the underlying file,
|
||||
even though it takes <code>&self</code> rather than <code>&mut self</code>.</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-Debug' class='impl'><code class='in-band'>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_files/struct.NamedFile.html" title="struct actix_files::NamedFile">NamedFile</a></code><a href='#impl-Debug' class='anchor'></a><a class='srclink' href='../src/actix_files/named.rs.html#40' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.fmt' class="method hidden"><code id='fmt.v'>fn <a href='https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt' class='fnname'>fmt</a>(&self, f: &mut <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a>) -> <a class="type" href="https://doc.rust-lang.org/nightly/core/fmt/type.Result.html" title="type core::fmt::Result">Result</a></code><a class='srclink' href='../src/actix_files/named.rs.html#40' title='goto source code'>[src]</a></h4><div class='docblock hidden'><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-Deref' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/deref/trait.Deref.html" title="trait core::ops::deref::Deref">Deref</a> for <a class="struct" href="../actix_files/struct.NamedFile.html" title="struct actix_files::NamedFile">NamedFile</a></code><a href='#impl-Deref' class='anchor'></a><a class='srclink' href='../src/actix_files/named.rs.html#260-266' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Target' class="type"><code id='Target.t'>type <a href='https://doc.rust-lang.org/nightly/core/ops/deref/trait.Deref.html#associatedtype.Target' class="type">Target</a> = <a class="struct" href="https://doc.rust-lang.org/nightly/std/fs/struct.File.html" title="struct std::fs::File">File</a></code></h4><div class='docblock'><p>The resulting type after dereferencing.</p>
|
||||
</div><h4 id='method.deref' class="method hidden"><code id='deref.v'>fn <a href='https://doc.rust-lang.org/nightly/core/ops/deref/trait.Deref.html#tymethod.deref' class='fnname'>deref</a>(&self) -> &<a class="struct" href="https://doc.rust-lang.org/nightly/std/fs/struct.File.html" title="struct std::fs::File">File</a></code><a class='srclink' href='../src/actix_files/named.rs.html#263-265' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Dereferences the value.</p>
|
||||
</div></div><h3 id='impl-DerefMut' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/deref/trait.DerefMut.html" title="trait core::ops::deref::DerefMut">DerefMut</a> for <a class="struct" href="../actix_files/struct.NamedFile.html" title="struct actix_files::NamedFile">NamedFile</a></code><a href='#impl-DerefMut' class='anchor'></a><a class='srclink' href='../src/actix_files/named.rs.html#268-272' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.deref_mut' class="method hidden"><code id='deref_mut.v'>fn <a href='https://doc.rust-lang.org/nightly/core/ops/deref/trait.DerefMut.html#tymethod.deref_mut' class='fnname'>deref_mut</a>(&mut self) -> &mut <a class="struct" href="https://doc.rust-lang.org/nightly/std/fs/struct.File.html" title="struct std::fs::File">File</a></code><a class='srclink' href='../src/actix_files/named.rs.html#269-271' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Mutably dereferences the value.</p>
|
||||
</div></div><h3 id='impl-Responder' class='impl'><code class='in-band'>impl <a class="trait" href="../actix_web/responder/trait.Responder.html" title="trait actix_web::responder::Responder">Responder</a> for <a class="struct" href="../actix_files/struct.NamedFile.html" title="struct actix_files::NamedFile">NamedFile</a></code><a href='#impl-Responder' class='anchor'></a><a class='srclink' href='../src/actix_files/named.rs.html#309-449' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Error' class="type"><code id='Error.t'>type <a href='../actix_web/responder/trait.Responder.html#associatedtype.Error' class="type">Error</a> = <a class="struct" href="../actix_http/error/struct.Error.html" title="struct actix_http::error::Error">Error</a></code></h4><div class='docblock'><p>The associated error which can be returned.</p>
|
||||
</div><h4 id='associatedtype.Future' class="type"><code id='Future.t'>type <a href='../actix_web/responder/trait.Responder.html#associatedtype.Future' class="type">Future</a> = <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="struct" href="../actix_http/response/struct.Response.html" title="struct actix_http::response::Response">HttpResponse</a>, <a class="struct" href="../actix_http/error/struct.Error.html" title="struct actix_http::error::Error">Error</a>></code></h4><div class='docblock'><p>The future response value.</p>
|
||||
</div><h4 id='method.respond_to' class="method hidden"><code id='respond_to.v'>fn <a href='../actix_web/responder/trait.Responder.html#tymethod.respond_to' class='fnname'>respond_to</a>(self, req: &<a class="struct" href="../actix_web/request/struct.HttpRequest.html" title="struct actix_web::request::HttpRequest">HttpRequest</a>) -> Self::<a class="type" href="../actix_web/responder/trait.Responder.html#associatedtype.Future" title="type actix_web::responder::Responder::Future">Future</a></code><a class='srclink' href='../src/actix_files/named.rs.html#313-448' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Convert itself to <code>AsyncResult</code> or <code>Error</code>.</p>
|
||||
</div><h4 id='method.with_status' class="method hidden"><code id='with_status.v'>fn <a href='../actix_web/responder/trait.Responder.html#method.with_status' class='fnname'>with_status</a>(self, status: <a class="struct" href="../http/status/struct.StatusCode.html" title="struct http::status::StatusCode">StatusCode</a>) -> CustomResponder<Self></code><a class='srclink' href='../src/actix_web/responder.rs.html#36-41' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Override a status code for a Responder. <a href="../actix_web/responder/trait.Responder.html#method.with_status">Read more</a></p>
|
||||
</div><h4 id='method.with_header' class="method hidden"><code id='with_header.v'>fn <a href='../actix_web/responder/trait.Responder.html#method.with_header' class='fnname'>with_header</a><K, V>(self, key: K, value: V) -> CustomResponder<Self> <span class="where fmt-newline">where<br> V: <a class="trait" href="../actix_http/header/trait.IntoHeaderValue.html" title="trait actix_http::header::IntoHeaderValue">IntoHeaderValue</a>,<br> <a class="struct" href="../http/header/name/struct.HeaderName.html" title="struct http::header::name::HeaderName">HeaderName</a>: <a class="trait" href="../http/convert/trait.HttpTryFrom.html" title="trait http::convert::HttpTryFrom">HttpTryFrom</a><K>, </span></code><a class='srclink' href='../src/actix_web/responder.rs.html#62-69' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Add header to the Responder's response. <a href="../actix_web/responder/trait.Responder.html#method.with_header">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-RefUnwindSafe' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/std/panic/trait.RefUnwindSafe.html" title="trait std::panic::RefUnwindSafe">RefUnwindSafe</a> for <a class="struct" href="../actix_files/struct.NamedFile.html" title="struct actix_files::NamedFile">NamedFile</a></code><a href='#impl-RefUnwindSafe' class='anchor'></a></h3><div class='impl-items'></div><h3 id='impl-Send' class='impl'><code class='in-band'>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_files/struct.NamedFile.html" title="struct actix_files::NamedFile">NamedFile</a></code><a href='#impl-Send' class='anchor'></a></h3><div class='impl-items'></div><h3 id='impl-Sync' class='impl'><code class='in-band'>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_files/struct.NamedFile.html" title="struct actix_files::NamedFile">NamedFile</a></code><a href='#impl-Sync' class='anchor'></a></h3><div class='impl-items'></div><h3 id='impl-Unpin' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a> for <a class="struct" href="../actix_files/struct.NamedFile.html" title="struct actix_files::NamedFile">NamedFile</a></code><a href='#impl-Unpin' class='anchor'></a></h3><div class='impl-items'></div><h3 id='impl-UnwindSafe' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/std/panic/trait.UnwindSafe.html" title="trait std::panic::UnwindSafe">UnwindSafe</a> for <a class="struct" href="../actix_files/struct.NamedFile.html" title="struct actix_files::NamedFile">NamedFile</a></code><a href='#impl-UnwindSafe' class='anchor'></a></h3><div class='impl-items'></div></div><h2 id='blanket-implementations' class='small-section-header'>Blanket Implementations<a href='#blanket-implementations' class='anchor'></a></h2><div id='blanket-implementations-list'><h3 id='impl-Any' class='impl'><code class='in-band'>impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html" title="trait core::any::Any">Any</a> for T <span class="where fmt-newline">where<br> T: 'static + ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></code><a href='#impl-Any' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/any.rs.html#108-112' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.type_id' class="method hidden"><code id='type_id.v'>fn <a href='https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id' class='fnname'>type_id</a>(&self) -> <a class="struct" href="https://doc.rust-lang.org/nightly/core/any/struct.TypeId.html" title="struct core::any::TypeId">TypeId</a></code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/any.rs.html#109-111' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Gets the <code>TypeId</code> of <code>self</code>. <a href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id">Read more</a></p>
|
||||
</div></div><h3 id='impl-Borrow%3CT%3E' class='impl'><code class='in-band'>impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a><T> for T <span class="where fmt-newline">where<br> T: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></code><a href='#impl-Borrow%3CT%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#213-217' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.borrow' class="method hidden"><code id='borrow.v'>fn <a href='https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow' class='fnname'>borrow</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>T</code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#214-216' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Immutably borrows from an owned value. <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow">Read more</a></p>
|
||||
</div></div><h3 id='impl-BorrowMut%3CT%3E' class='impl'><code class='in-band'>impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html" title="trait core::borrow::BorrowMut">BorrowMut</a><T> for T <span class="where fmt-newline">where<br> T: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></code><a href='#impl-BorrowMut%3CT%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#220-224' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.borrow_mut' class="method hidden"><code id='borrow_mut.v'>fn <a href='https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut' class='fnname'>borrow_mut</a>(&mut self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>T</code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#221-223' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Mutably borrows from an owned value. <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read more</a></p>
|
||||
</div></div><h3 id='impl-From%3CT%3E' class='impl'><code class='in-band'>impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><T> for T</code><a href='#impl-From%3CT%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#564-568' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.from' class="method hidden"><code id='from.v'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from' class='fnname'>from</a>(t: T) -> T</code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#565-567' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||||
</div></div><h3 id='impl-Into%3CU%3E' class='impl'><code class='in-band'>impl<T, U> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><U> for T <span class="where fmt-newline">where<br> U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><T>, </span></code><a href='#impl-Into%3CU%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#553-560' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.into' class="method hidden"><code id='into.v'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.Into.html#tymethod.into' class='fnname'>into</a>(self) -> U</code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#557-559' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||||
</div></div><h3 id='impl-TryFrom%3CU%3E' class='impl'><code class='in-band'>impl<T, U> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><U> for T <span class="where fmt-newline">where<br> U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><T>, </span></code><a href='#impl-TryFrom%3CU%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#601-610' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Error-1' class="type"><code id='Error.t-1'>type <a href='https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error' class="type">Error</a> = <a class="enum" href="https://doc.rust-lang.org/nightly/core/convert/enum.Infallible.html" title="enum core::convert::Infallible">Infallible</a></code></h4><div class='docblock'><p>The type returned in the event of a conversion error.</p>
|
||||
</div><h4 id='method.try_from' class="method hidden"><code id='try_from.v'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#tymethod.try_from' class='fnname'>try_from</a>(value: U) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><T, <T as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><U>>::<a class="type" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>></code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#607-609' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||||
</div></div><h3 id='impl-TryInto%3CU%3E' class='impl'><code class='in-band'>impl<T, U> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html" title="trait core::convert::TryInto">TryInto</a><U> for T <span class="where fmt-newline">where<br> U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>, </span></code><a href='#impl-TryInto%3CU%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#587-596' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Error-2' class="type"><code id='Error.t-2'>type <a href='https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html#associatedtype.Error' class="type">Error</a> = <U as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>>::<a class="type" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a></code></h4><div class='docblock'><p>The type returned in the event of a conversion error.</p>
|
||||
</div><h4 id='method.try_into' class="method hidden"><code id='try_into.v'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html#tymethod.try_into' class='fnname'>try_into</a>(self) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><U, <U as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>>::<a class="type" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>></code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#593-595' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||||
</div></div><h3 id='impl-VZip%3CV%3E' class='impl'><code class='in-band'>impl<V, T> <a class="trait" href="../ppv_lite86/types/types/trait.VZip.html" title="trait ppv_lite86::types::types::VZip">VZip</a><V> for T <span class="where fmt-newline">where<br> V: <a class="trait" href="../ppv_lite86/types/types/trait.MultiLane.html" title="trait ppv_lite86::types::types::MultiLane">MultiLane</a><T>, </span></code><a href='#impl-VZip%3CV%3E' class='anchor'></a><a class='srclink' href='../src/ppv_lite86/types.rs.html#212-220' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.vzip' class="method hidden"><code id='vzip.v'>fn <a href='../ppv_lite86/types/types/trait.VZip.html#tymethod.vzip' class='fnname'>vzip</a>(self) -> V</code><a class='srclink' href='../src/ppv_lite86/types.rs.html#217-219' title='goto source code'>[src]</a></h4></div></div></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../";window.currentCrate = "actix_files";</script><script src="../aliases.js"></script><script src="../main.js"></script><script defer src="../search-index.js"></script></body></html>
|
||||
3
actix_http/all.html
Normal file
3
actix_http/all.html
Normal file
File diff suppressed because one or more lines are too long
38
actix_http/body/enum.Body.html
Normal file
38
actix_http/body/enum.Body.html
Normal file
File diff suppressed because one or more lines are too long
28
actix_http/body/enum.BodySize.html
Normal file
28
actix_http/body/enum.BodySize.html
Normal 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 `BodySize` enum in crate `actix_http`."><meta name="keywords" content="rust, rustlang, rust-lang, BodySize"><title>actix_http::body::BodySize - 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><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="shortcut icon" href="../../favicon.ico"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></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">☰</div><a href='../../actix_http/index.html'><div class='logo-container'><img src='../../rust-logo.png' alt='logo'></div></a><p class='location'>Enum BodySize</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#variants">Variants</a><div class="sidebar-links"><a href="#variant.None">None</a><a href="#variant.Empty">Empty</a><a href="#variant.Sized">Sized</a><a href="#variant.Sized64">Sized64</a><a href="#variant.Stream">Stream</a></div><a class="sidebar-title" href="#methods">Methods</a><div class="sidebar-links"><a href="#method.is_eof">is_eof</a></div><a class="sidebar-title" href="#implementations">Trait Implementations</a><div class="sidebar-links"><a href="#impl-Clone">Clone</a><a href="#impl-Copy">Copy</a><a href="#impl-Debug">Debug</a><a href="#impl-PartialEq%3CBodySize%3E">PartialEq<BodySize></a><a href="#impl-StructuralPartialEq">StructuralPartialEq</a></div><a class="sidebar-title" href="#synthetic-implementations">Auto Trait Implementations</a><div class="sidebar-links"><a href="#impl-RefUnwindSafe">RefUnwindSafe</a><a href="#impl-Send">Send</a><a href="#impl-Sync">Sync</a><a href="#impl-Unpin">Unpin</a><a href="#impl-UnwindSafe">UnwindSafe</a></div><a class="sidebar-title" href="#blanket-implementations">Blanket Implementations</a><div class="sidebar-links"><a href="#impl-Any">Any</a><a href="#impl-Borrow%3CT%3E">Borrow<T></a><a href="#impl-BorrowMut%3CT%3E">BorrowMut<T></a><a href="#impl-From%3CT%3E">From<T></a><a href="#impl-Into%3CU%3E">Into<U></a><a href="#impl-ToOwned">ToOwned</a><a href="#impl-TryFrom%3CU%3E">TryFrom<U></a><a href="#impl-TryInto%3CU%3E">TryInto<U></a><a href="#impl-VZip%3CV%3E">VZip<V></a></div></div><p class='location'><a href='../index.html'>actix_http</a>::<wbr><a href='index.html'>body</a></p><script>window.sidebarCurrent = {name: 'BodySize', 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"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><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='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../../src/actix_http/body.rs.html#11-17' title='goto source code'>[src]</a></span><span class='in-band'>Enum <a href='../index.html'>actix_http</a>::<wbr><a href='index.html'>body</a>::<wbr><a class="enum" href=''>BodySize</a></span></h1><div class="docblock type-decl hidden-by-usual-hider"><pre class='rust enum'>pub enum BodySize {
|
||||
None,
|
||||
Empty,
|
||||
Sized(<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>),
|
||||
Sized64(<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u64.html">u64</a>),
|
||||
Stream,
|
||||
}</pre></div><div class='docblock'><p>Body size hint</p>
|
||||
</div><h2 id='variants' class='variants small-section-header'>
|
||||
Variants<a href='#variants' class='anchor'></a></h2>
|
||||
<div id="variant.None" class="variant small-section-header"><a href="#variant.None" class="anchor field"></a><code id='None.v'>None</code></div><div id="variant.Empty" class="variant small-section-header"><a href="#variant.Empty" class="anchor field"></a><code id='Empty.v'>Empty</code></div><div id="variant.Sized" class="variant small-section-header"><a href="#variant.Sized" class="anchor field"></a><code id='Sized.v'>Sized(<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>)</code></div><div id="variant.Sized64" class="variant small-section-header"><a href="#variant.Sized64" class="anchor field"></a><code id='Sized64.v'>Sized64(<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u64.html">u64</a>)</code></div><div id="variant.Stream" class="variant small-section-header"><a href="#variant.Stream" class="anchor field"></a><code id='Stream.v'>Stream</code></div><h2 id='methods' class='small-section-header'>Methods<a href='#methods' class='anchor'></a></h2><h3 id='impl' class='impl'><code class='in-band'>impl <a class="enum" href="../../actix_http/body/enum.BodySize.html" title="enum actix_http::body::BodySize">BodySize</a></code><a href='#impl' class='anchor'></a><a class='srclink' href='../../src/actix_http/body.rs.html#19-29' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.is_eof' class="method"><code id='is_eof.v'>pub fn <a href='#method.is_eof' class='fnname'>is_eof</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><a class='srclink' href='../../src/actix_http/body.rs.html#20-28' title='goto source code'>[src]</a></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-Clone' class='impl'><code class='in-band'>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_http/body/enum.BodySize.html" title="enum actix_http::body::BodySize">BodySize</a></code><a href='#impl-Clone' class='anchor'></a><a class='srclink' href='../../src/actix_http/body.rs.html#9' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.clone' class="method hidden"><code id='clone.v'>fn <a href='https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#tymethod.clone' class='fnname'>clone</a>(&self) -> <a class="enum" href="../../actix_http/body/enum.BodySize.html" title="enum actix_http::body::BodySize">BodySize</a></code><a class='srclink' href='../../src/actix_http/body.rs.html#9' title='goto source code'>[src]</a></h4><div class='docblock hidden'><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 hidden"><code id='clone_from.v'>fn <a href='https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#method.clone_from' class='fnname'>clone_from</a>(&mut self, source: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>Self)</code><span class='since' title='Stable since Rust version 1.0.0'>1.0.0</span><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/clone.rs.html#131-133' title='goto source code'>[src]</a></h4><div class='docblock hidden'><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-Copy' class='impl'><code class='in-band'>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_http/body/enum.BodySize.html" title="enum actix_http::body::BodySize">BodySize</a></code><a href='#impl-Copy' class='anchor'></a><a class='srclink' href='../../src/actix_http/body.rs.html#9' title='goto source code'>[src]</a></h3><div class='impl-items'></div><h3 id='impl-Debug' class='impl'><code class='in-band'>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_http/body/enum.BodySize.html" title="enum actix_http::body::BodySize">BodySize</a></code><a href='#impl-Debug' class='anchor'></a><a class='srclink' href='../../src/actix_http/body.rs.html#9' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.fmt' class="method hidden"><code id='fmt.v'>fn <a href='https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt' class='fnname'>fmt</a>(&self, f: &mut <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a>) -> <a class="type" href="https://doc.rust-lang.org/nightly/core/fmt/type.Result.html" title="type core::fmt::Result">Result</a></code><a class='srclink' href='../../src/actix_http/body.rs.html#9' title='goto source code'>[src]</a></h4><div class='docblock hidden'><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-PartialEq%3CBodySize%3E' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a><<a class="enum" href="../../actix_http/body/enum.BodySize.html" title="enum actix_http::body::BodySize">BodySize</a>> for <a class="enum" href="../../actix_http/body/enum.BodySize.html" title="enum actix_http::body::BodySize">BodySize</a></code><a href='#impl-PartialEq%3CBodySize%3E' class='anchor'></a><a class='srclink' href='../../src/actix_http/body.rs.html#9' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.eq' class="method hidden"><code id='eq.v'>fn <a href='https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html#tymethod.eq' class='fnname'>eq</a>(&self, other: &<a class="enum" href="../../actix_http/body/enum.BodySize.html" title="enum actix_http::body::BodySize">BodySize</a>) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><a class='srclink' href='../../src/actix_http/body.rs.html#9' title='goto source code'>[src]</a></h4><div class='docblock hidden'><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 hidden"><code id='ne.v'>fn <a href='https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html#method.ne' class='fnname'>ne</a>(&self, other: &<a class="enum" href="../../actix_http/body/enum.BodySize.html" title="enum actix_http::body::BodySize">BodySize</a>) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><a class='srclink' href='../../src/actix_http/body.rs.html#9' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>This method tests for <code>!=</code>.</p>
|
||||
</div></div><h3 id='impl-StructuralPartialEq' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.StructuralPartialEq.html" title="trait core::marker::StructuralPartialEq">StructuralPartialEq</a> for <a class="enum" href="../../actix_http/body/enum.BodySize.html" title="enum actix_http::body::BodySize">BodySize</a></code><a href='#impl-StructuralPartialEq' class='anchor'></a><a class='srclink' href='../../src/actix_http/body.rs.html#9' title='goto source code'>[src]</a></h3><div class='impl-items'></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-RefUnwindSafe' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/std/panic/trait.RefUnwindSafe.html" title="trait std::panic::RefUnwindSafe">RefUnwindSafe</a> for <a class="enum" href="../../actix_http/body/enum.BodySize.html" title="enum actix_http::body::BodySize">BodySize</a></code><a href='#impl-RefUnwindSafe' class='anchor'></a></h3><div class='impl-items'></div><h3 id='impl-Send' class='impl'><code class='in-band'>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_http/body/enum.BodySize.html" title="enum actix_http::body::BodySize">BodySize</a></code><a href='#impl-Send' class='anchor'></a></h3><div class='impl-items'></div><h3 id='impl-Sync' class='impl'><code class='in-band'>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_http/body/enum.BodySize.html" title="enum actix_http::body::BodySize">BodySize</a></code><a href='#impl-Sync' class='anchor'></a></h3><div class='impl-items'></div><h3 id='impl-Unpin' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a> for <a class="enum" href="../../actix_http/body/enum.BodySize.html" title="enum actix_http::body::BodySize">BodySize</a></code><a href='#impl-Unpin' class='anchor'></a></h3><div class='impl-items'></div><h3 id='impl-UnwindSafe' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/std/panic/trait.UnwindSafe.html" title="trait std::panic::UnwindSafe">UnwindSafe</a> for <a class="enum" href="../../actix_http/body/enum.BodySize.html" title="enum actix_http::body::BodySize">BodySize</a></code><a href='#impl-UnwindSafe' class='anchor'></a></h3><div class='impl-items'></div></div><h2 id='blanket-implementations' class='small-section-header'>Blanket Implementations<a href='#blanket-implementations' class='anchor'></a></h2><div id='blanket-implementations-list'><h3 id='impl-Any' class='impl'><code class='in-band'>impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html" title="trait core::any::Any">Any</a> for T <span class="where fmt-newline">where<br> T: 'static + ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></code><a href='#impl-Any' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/any.rs.html#108-112' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.type_id' class="method hidden"><code id='type_id.v'>fn <a href='https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id' class='fnname'>type_id</a>(&self) -> <a class="struct" href="https://doc.rust-lang.org/nightly/core/any/struct.TypeId.html" title="struct core::any::TypeId">TypeId</a></code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/any.rs.html#109-111' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Gets the <code>TypeId</code> of <code>self</code>. <a href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id">Read more</a></p>
|
||||
</div></div><h3 id='impl-Borrow%3CT%3E' class='impl'><code class='in-band'>impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a><T> for T <span class="where fmt-newline">where<br> T: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></code><a href='#impl-Borrow%3CT%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#213-217' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.borrow' class="method hidden"><code id='borrow.v'>fn <a href='https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow' class='fnname'>borrow</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>T</code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#214-216' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Immutably borrows from an owned value. <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow">Read more</a></p>
|
||||
</div></div><h3 id='impl-BorrowMut%3CT%3E' class='impl'><code class='in-band'>impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html" title="trait core::borrow::BorrowMut">BorrowMut</a><T> for T <span class="where fmt-newline">where<br> T: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></code><a href='#impl-BorrowMut%3CT%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#220-224' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.borrow_mut' class="method hidden"><code id='borrow_mut.v'>fn <a href='https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut' class='fnname'>borrow_mut</a>(&mut self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>T</code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#221-223' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Mutably borrows from an owned value. <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read more</a></p>
|
||||
</div></div><h3 id='impl-From%3CT%3E' class='impl'><code class='in-band'>impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><T> for T</code><a href='#impl-From%3CT%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#564-568' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.from' class="method hidden"><code id='from.v'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from' class='fnname'>from</a>(t: T) -> T</code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#565-567' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||||
</div></div><h3 id='impl-Into%3CU%3E' class='impl'><code class='in-band'>impl<T, U> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><U> for T <span class="where fmt-newline">where<br> U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><T>, </span></code><a href='#impl-Into%3CU%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#553-560' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.into' class="method hidden"><code id='into.v'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.Into.html#tymethod.into' class='fnname'>into</a>(self) -> U</code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#557-559' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||||
</div></div><h3 id='impl-ToOwned' class='impl'><code class='in-band'>impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html" title="trait alloc::borrow::ToOwned">ToOwned</a> for T <span class="where fmt-newline">where<br> T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>, </span></code><a href='#impl-ToOwned' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/alloc/borrow.rs.html#80-92' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Owned' class="type"><code id='Owned.t'>type <a href='https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#associatedtype.Owned' class="type">Owned</a> = T</code></h4><div class='docblock'><p>The resulting type after obtaining ownership.</p>
|
||||
</div><h4 id='method.to_owned' class="method hidden"><code id='to_owned.v'>fn <a href='https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#tymethod.to_owned' class='fnname'>to_owned</a>(&self) -> T</code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/alloc/borrow.rs.html#85-87' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Creates owned data from borrowed data, usually by cloning. <a href="https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#tymethod.to_owned">Read more</a></p>
|
||||
</div><h4 id='method.clone_into' class="method hidden"><code id='clone_into.v'>fn <a href='https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#method.clone_into' class='fnname'>clone_into</a>(&self, target: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>T)</code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/alloc/borrow.rs.html#89-91' title='goto source code'>[src]</a></h4><div class='stability hidden'><div class='stab unstable'><details><summary><span class='emoji'>🔬</span> This is a nightly-only experimental API. (<code>toowned_clone_into</code>)</summary><p>recently added</p>
|
||||
</details></div></div><div class='docblock hidden'><p>Uses borrowed data to replace owned data, usually by cloning. <a href="https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#method.clone_into">Read more</a></p>
|
||||
</div></div><h3 id='impl-TryFrom%3CU%3E' class='impl'><code class='in-band'>impl<T, U> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><U> for T <span class="where fmt-newline">where<br> U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><T>, </span></code><a href='#impl-TryFrom%3CU%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#601-610' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Error' class="type"><code id='Error.t'>type <a href='https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error' class="type">Error</a> = <a class="enum" href="https://doc.rust-lang.org/nightly/core/convert/enum.Infallible.html" title="enum core::convert::Infallible">Infallible</a></code></h4><div class='docblock'><p>The type returned in the event of a conversion error.</p>
|
||||
</div><h4 id='method.try_from' class="method hidden"><code id='try_from.v'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#tymethod.try_from' class='fnname'>try_from</a>(value: U) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><T, <T as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><U>>::<a class="type" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>></code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#607-609' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||||
</div></div><h3 id='impl-TryInto%3CU%3E' class='impl'><code class='in-band'>impl<T, U> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html" title="trait core::convert::TryInto">TryInto</a><U> for T <span class="where fmt-newline">where<br> U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>, </span></code><a href='#impl-TryInto%3CU%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#587-596' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Error-1' class="type"><code id='Error.t-1'>type <a href='https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html#associatedtype.Error' class="type">Error</a> = <U as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>>::<a class="type" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a></code></h4><div class='docblock'><p>The type returned in the event of a conversion error.</p>
|
||||
</div><h4 id='method.try_into' class="method hidden"><code id='try_into.v'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html#tymethod.try_into' class='fnname'>try_into</a>(self) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><U, <U as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>>::<a class="type" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>></code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#593-595' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||||
</div></div><h3 id='impl-VZip%3CV%3E' class='impl'><code class='in-band'>impl<V, T> <a class="trait" href="../../ppv_lite86/types/types/trait.VZip.html" title="trait ppv_lite86::types::types::VZip">VZip</a><V> for T <span class="where fmt-newline">where<br> V: <a class="trait" href="../../ppv_lite86/types/types/trait.MultiLane.html" title="trait ppv_lite86::types::types::MultiLane">MultiLane</a><T>, </span></code><a href='#impl-VZip%3CV%3E' class='anchor'></a><a class='srclink' href='../../src/ppv_lite86/types.rs.html#212-220' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.vzip' class="method hidden"><code id='vzip.v'>fn <a href='../../ppv_lite86/types/types/trait.VZip.html#tymethod.vzip' class='fnname'>vzip</a>(self) -> V</code><a class='srclink' href='../../src/ppv_lite86/types.rs.html#217-219' title='goto source code'>[src]</a></h4></div></div></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../";window.currentCrate = "actix_http";</script><script src="../../aliases.js"></script><script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
|
||||
55
actix_http/body/enum.ResponseBody.html
Normal file
55
actix_http/body/enum.ResponseBody.html
Normal file
File diff suppressed because one or more lines are too long
11
actix_http/body/index.html
Normal file
11
actix_http/body/index.html
Normal file
@@ -0,0 +1,11 @@
|
||||
<!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 `body` mod in crate `actix_http`."><meta name="keywords" content="rust, rustlang, rust-lang, body"><title>actix_http::body - 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><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="shortcut icon" href="../../favicon.ico"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></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">☰</div><a href='../../actix_http/index.html'><div class='logo-container'><img src='../../rust-logo.png' alt='logo'></div></a><p class='location'>Module body</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="#traits">Traits</a></li></ul></div><p class='location'><a href='../index.html'>actix_http</a></p><script>window.sidebarCurrent = {name: 'body', 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"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><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='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../../src/actix_http/body.rs.html#1-570' title='goto source code'>[src]</a></span><span class='in-band'>Module <a href='../index.html'>actix_http</a>::<wbr><a class="mod" href=''>body</a></span></h1><h2 id='structs' class='section-header'><a href="#structs">Structs</a></h2>
|
||||
<table><tr class='module-item'><td><a class="struct" href="struct.BodyStream.html" title='actix_http::body::BodyStream struct'>BodyStream</a></td><td class='docblock-short'><p>Type represent streaming body.
|
||||
Response does not contain <code>content-length</code> header and appropriate transfer encoding is used.</p>
|
||||
</td></tr><tr class='module-item'><td><a class="struct" href="struct.SizedStream.html" title='actix_http::body::SizedStream struct'>SizedStream</a></td><td class='docblock-short'><p>Type represent streaming body. This body implementation should be used
|
||||
if total size of stream is known. Data get sent as is without using transfer encoding.</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.Body.html" title='actix_http::body::Body enum'>Body</a></td><td class='docblock-short'><p>Represents various types of http message body.</p>
|
||||
</td></tr><tr class='module-item'><td><a class="enum" href="enum.BodySize.html" title='actix_http::body::BodySize enum'>BodySize</a></td><td class='docblock-short'><p>Body size hint</p>
|
||||
</td></tr><tr class='module-item'><td><a class="enum" href="enum.ResponseBody.html" title='actix_http::body::ResponseBody enum'>ResponseBody</a></td><td class='docblock-short'></td></tr></table><h2 id='traits' class='section-header'><a href="#traits">Traits</a></h2>
|
||||
<table><tr class='module-item'><td><a class="trait" href="trait.MessageBody.html" title='actix_http::body::MessageBody trait'>MessageBody</a></td><td class='docblock-short'><p>Type that provides this trait can be streamed to a peer.</p>
|
||||
</td></tr></table></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../";window.currentCrate = "actix_http";</script><script src="../../aliases.js"></script><script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
|
||||
1
actix_http/body/sidebar-items.js
Normal file
1
actix_http/body/sidebar-items.js
Normal file
@@ -0,0 +1 @@
|
||||
initSidebarItems({"enum":[["Body","Represents various types of http message body."],["BodySize","Body size hint"],["ResponseBody",""]],"struct":[["BodyStream","Type represent streaming body. Response does not contain `content-length` header and appropriate transfer encoding is used."],["SizedStream","Type represent streaming body. This body implementation should be used if total size of stream is known. Data get sent as is without using transfer encoding."]],"trait":[["MessageBody","Type that provides this trait can be streamed to a peer."]]});
|
||||
13
actix_http/body/struct.BodyStream.html
Normal file
13
actix_http/body/struct.BodyStream.html
Normal file
File diff suppressed because one or more lines are too long
13
actix_http/body/struct.SizedStream.html
Normal file
13
actix_http/body/struct.SizedStream.html
Normal file
File diff suppressed because one or more lines are too long
8
actix_http/body/trait.MessageBody.html
Normal file
8
actix_http/body/trait.MessageBody.html
Normal file
File diff suppressed because one or more lines are too long
10
actix_http/builder/struct.HttpServiceBuilder.html
Normal file
10
actix_http/builder/struct.HttpServiceBuilder.html
Normal file
@@ -0,0 +1,10 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="refresh" content="0;URL=../../actix_http/struct.HttpServiceBuilder.html">
|
||||
</head>
|
||||
<body>
|
||||
<p>Redirecting to <a href="../../actix_http/struct.HttpServiceBuilder.html">../../actix_http/struct.HttpServiceBuilder.html</a>...</p>
|
||||
<script>location.replace("../../actix_http/struct.HttpServiceBuilder.html" + location.search + location.hash);</script>
|
||||
</body>
|
||||
</html>
|
||||
10
actix_http/client/connection/trait.Connection.html
Normal file
10
actix_http/client/connection/trait.Connection.html
Normal file
@@ -0,0 +1,10 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="refresh" content="0;URL=../../../actix_http/client/trait.Connection.html">
|
||||
</head>
|
||||
<body>
|
||||
<p>Redirecting to <a href="../../../actix_http/client/trait.Connection.html">../../../actix_http/client/trait.Connection.html</a>...</p>
|
||||
<script>location.replace("../../../actix_http/client/trait.Connection.html" + location.search + location.hash);</script>
|
||||
</body>
|
||||
</html>
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user