diff --git a/current/hyper/body/struct.Bytes.html b/current/hyper/body/struct.Bytes.html index 5addeb4ec11..8d74a1b7506 100644 --- a/current/hyper/body/struct.Bytes.html +++ b/current/hyper/body/struct.Bytes.html @@ -1337,7 +1337,7 @@
§ExamplesSized,
Creates an adaptor which will read at most limit bytes from self. Read more
source§

fn chain<U>(self, next: U) -> Chain<Self, U>
where U: Buf, Self: Sized,

Creates an adaptor which will chain this buffer with another. Read more
source§

fn reader(self) -> Reader<Self>
where - Self: Sized,

Creates an adaptor which implements the Read trait for self. Read more
source§

impl Clone for Bytes

source§

fn clone(&self) -> Bytes

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Bytes

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl Default for Bytes

source§

fn default() -> Bytes

Returns the “default value” for a type. Read more
source§

impl Deref for Bytes

source§

type Target = [u8]

The resulting type after dereferencing.
source§

fn deref(&self) -> &[u8]

Dereferences the value.
source§

impl Drop for Bytes

source§

fn drop(&mut self)

Executes the destructor for this type. Read more
source§

impl From<&'static [u8]> for Bytes

source§

fn from(slice: &'static [u8]) -> Bytes

Converts to this type from the input type.
source§

impl From<&'static str> for Bytes

source§

fn from(slice: &'static str) -> Bytes

Converts to this type from the input type.
source§

impl From<Box<[u8]>> for Bytes

source§

fn from(slice: Box<[u8]>) -> Bytes

Converts to this type from the input type.
source§

impl From<ByteStr> for Bytes

source§

fn from(src: ByteStr) -> Bytes

Converts to this type from the input type.
source§

impl From<Bytes> for Body

source§

fn from(chunk: Bytes) -> Body

Converts to this type from the input type.
source§

impl From<BytesMut> for Bytes

source§

fn from(src: BytesMut) -> Bytes

Converts to this type from the input type.
source§

impl From<Custom> for Bytes

source§

fn from(_: Custom) -> Bytes

Converts to this type from the input type.
source§

impl From<String> for Bytes

source§

fn from(s: String) -> Bytes

Converts to this type from the input type.
source§

impl From<Vec<u8>> for Bytes

source§

fn from(vec: Vec<u8>) -> Bytes

Converts to this type from the input type.
source§

impl FromIterator<u8> for Bytes

source§

fn from_iter<T>(into_iter: T) -> Bytes
where + Self: Sized,

Creates an adaptor which implements the Read trait for self. Read more
source§

impl Clone for Bytes

source§

fn clone(&self) -> Bytes

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Bytes

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl Default for Bytes

source§

fn default() -> Bytes

Returns the “default value” for a type. Read more
source§

impl Deref for Bytes

source§

type Target = [u8]

The resulting type after dereferencing.
source§

fn deref(&self) -> &[u8]

Dereferences the value.
source§

impl Drop for Bytes

source§

fn drop(&mut self)

Executes the destructor for this type. Read more
source§

impl From<&'static [u8]> for Bytes

source§

fn from(slice: &'static [u8]) -> Bytes

Converts to this type from the input type.
source§

impl From<&'static str> for Bytes

source§

fn from(slice: &'static str) -> Bytes

Converts to this type from the input type.
source§

impl From<Box<[u8]>> for Bytes

source§

fn from(slice: Box<[u8]>) -> Bytes

Converts to this type from the input type.
source§

impl From<ByteStr> for Bytes

source§

fn from(src: ByteStr) -> Bytes

Converts to this type from the input type.
source§

impl From<Bytes> for Body

source§

fn from(chunk: Bytes) -> Body

Converts to this type from the input type.
source§

impl From<BytesMut> for Bytes

source§

fn from(src: BytesMut) -> Bytes

Converts to this type from the input type.
source§

impl From<Custom> for Bytes

source§

fn from(_: Custom) -> Bytes

Converts to this type from the input type.
source§

impl From<String> for Bytes

source§

fn from(s: String) -> Bytes

Converts to this type from the input type.
source§

impl From<Vec<u8>> for Bytes

source§

fn from(vec: Vec<u8>) -> Bytes

Converts to this type from the input type.
source§

impl FromIterator<u8> for Bytes

source§

fn from_iter<T>(into_iter: T) -> Bytes
where T: IntoIterator<Item = u8>,

Creates a value from an iterator. Read more
source§

impl Hash for Bytes

source§

fn hash<H>(&self, state: &mut H)
where H: Hasher,

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, diff --git a/current/hyper/client/connect/struct.Connected.html b/current/hyper/client/connect/struct.Connected.html index 8942f0f9e29..e605882ba8c 100644 --- a/current/hyper/client/connect/struct.Connected.html +++ b/current/hyper/client/connect/struct.Connected.html @@ -16,7 +16,7 @@

Default is false.

source

pub fn is_proxied(&self) -> bool

Determines if the connected transport is to an HTTP proxy.

source

pub fn extra<T: Clone + Send + Sync + 'static>(self, extra: T) -> Connected

Set extra connection information to be set in the extensions of every Response.

-
source

pub fn get_extras(&self, extensions: &mut Extensions)

Copies the extra connection information into an Extensions map.

+
source

pub fn get_extras(&self, extensions: &mut Extensions)

Copies the extra connection information into an Extensions map.

source

pub fn negotiated_h2(self) -> Connected

Set that the connected transport negotiated HTTP/2 as its next protocol.

source

pub fn is_negotiated_h2(&self) -> bool

Determines if the connected transport negotiated HTTP/2 as its next protocol.

source

pub fn poison(&self)

Poison this connection

diff --git a/current/hyper/header/constant.ACCEPT.html b/current/hyper/header/constant.ACCEPT.html index 5351c1b8e7e..49f1ed97983 100644 --- a/current/hyper/header/constant.ACCEPT.html +++ b/current/hyper/header/constant.ACCEPT.html @@ -1,4 +1,4 @@ -ACCEPT in hyper::header - Rust
hyper::header

Constant ACCEPT

source
pub const ACCEPT: HeaderName;
Expand description

Advertises which content types the client is able to understand.

+ACCEPT in hyper::header - Rust
hyper::header

Constant ACCEPT

source
pub const ACCEPT: HeaderName;
Expand description

Advertises which content types the client is able to understand.

The Accept request HTTP header advertises which content types, expressed as MIME types, the client is able to understand. Using content negotiation, the server then selects one of the proposals, uses it and diff --git a/current/hyper/header/constant.ACCEPT_CHARSET.html b/current/hyper/header/constant.ACCEPT_CHARSET.html index f05513f006b..cd9e02c2fec 100644 --- a/current/hyper/header/constant.ACCEPT_CHARSET.html +++ b/current/hyper/header/constant.ACCEPT_CHARSET.html @@ -1,4 +1,4 @@ -ACCEPT_CHARSET in hyper::header - Rust

hyper::header

Constant ACCEPT_CHARSET

source
pub const ACCEPT_CHARSET: HeaderName;
Expand description

Advertises which character set the client is able to understand.

+ACCEPT_CHARSET in hyper::header - Rust
hyper::header

Constant ACCEPT_CHARSET

source
pub const ACCEPT_CHARSET: HeaderName;
Expand description

Advertises which character set the client is able to understand.

The Accept-Charset request HTTP header advertises which character set the client is able to understand. Using content negotiation, the server then selects one of the proposals, uses it and informs the client of its diff --git a/current/hyper/header/constant.ACCEPT_ENCODING.html b/current/hyper/header/constant.ACCEPT_ENCODING.html index 091ca498c38..2f2c28d0ddb 100644 --- a/current/hyper/header/constant.ACCEPT_ENCODING.html +++ b/current/hyper/header/constant.ACCEPT_ENCODING.html @@ -1,4 +1,4 @@ -ACCEPT_ENCODING in hyper::header - Rust

hyper::header

Constant ACCEPT_ENCODING

source
pub const ACCEPT_ENCODING: HeaderName;
Expand description

Advertises which content encoding the client is able to understand.

+ACCEPT_ENCODING in hyper::header - Rust
hyper::header

Constant ACCEPT_ENCODING

source
pub const ACCEPT_ENCODING: HeaderName;
Expand description

Advertises which content encoding the client is able to understand.

The Accept-Encoding request HTTP header advertises which content encoding, usually a compression algorithm, the client is able to understand. Using content negotiation, the server selects one of the diff --git a/current/hyper/header/constant.ACCEPT_LANGUAGE.html b/current/hyper/header/constant.ACCEPT_LANGUAGE.html index a93d3a31e89..0e726222d7d 100644 --- a/current/hyper/header/constant.ACCEPT_LANGUAGE.html +++ b/current/hyper/header/constant.ACCEPT_LANGUAGE.html @@ -1,4 +1,4 @@ -ACCEPT_LANGUAGE in hyper::header - Rust

hyper::header

Constant ACCEPT_LANGUAGE

source
pub const ACCEPT_LANGUAGE: HeaderName;
Expand description

Advertises which languages the client is able to understand.

+ACCEPT_LANGUAGE in hyper::header - Rust
hyper::header

Constant ACCEPT_LANGUAGE

source
pub const ACCEPT_LANGUAGE: HeaderName;
Expand description

Advertises which languages the client is able to understand.

The Accept-Language request HTTP header advertises which languages the client is able to understand, and which locale variant is preferred. Using content negotiation, the server then selects one of the proposals, diff --git a/current/hyper/header/constant.ACCEPT_RANGES.html b/current/hyper/header/constant.ACCEPT_RANGES.html index 2407a8dc40a..38f580250bc 100644 --- a/current/hyper/header/constant.ACCEPT_RANGES.html +++ b/current/hyper/header/constant.ACCEPT_RANGES.html @@ -1,4 +1,4 @@ -ACCEPT_RANGES in hyper::header - Rust

hyper::header

Constant ACCEPT_RANGES

source
pub const ACCEPT_RANGES: HeaderName;
Expand description

Marker used by the server to advertise partial request support.

+ACCEPT_RANGES in hyper::header - Rust
hyper::header

Constant ACCEPT_RANGES

source
pub const ACCEPT_RANGES: HeaderName;
Expand description

Marker used by the server to advertise partial request support.

The Accept-Ranges response HTTP header is a marker used by the server to advertise its support of partial requests. The value of this field indicates the unit that can be used to define a range.

diff --git a/current/hyper/header/constant.ACCESS_CONTROL_ALLOW_CREDENTIALS.html b/current/hyper/header/constant.ACCESS_CONTROL_ALLOW_CREDENTIALS.html index 1b4b08a767d..b14ed1cf3a7 100644 --- a/current/hyper/header/constant.ACCESS_CONTROL_ALLOW_CREDENTIALS.html +++ b/current/hyper/header/constant.ACCESS_CONTROL_ALLOW_CREDENTIALS.html @@ -1,4 +1,4 @@ -ACCESS_CONTROL_ALLOW_CREDENTIALS in hyper::header - Rust
hyper::header

Constant ACCESS_CONTROL_ALLOW_CREDENTIALS

source
pub const ACCESS_CONTROL_ALLOW_CREDENTIALS: HeaderName;
Expand description

Preflight response indicating if the response to the request can be +ACCESS_CONTROL_ALLOW_CREDENTIALS in hyper::header - Rust

hyper::header

Constant ACCESS_CONTROL_ALLOW_CREDENTIALS

source
pub const ACCESS_CONTROL_ALLOW_CREDENTIALS: HeaderName;
Expand description

Preflight response indicating if the response to the request can be exposed to the page.

The Access-Control-Allow-Credentials response header indicates whether or not the response to the request can be exposed to the page. It can be diff --git a/current/hyper/header/constant.ACCESS_CONTROL_ALLOW_HEADERS.html b/current/hyper/header/constant.ACCESS_CONTROL_ALLOW_HEADERS.html index 2cd8a4bdf4c..87a82a3a2aa 100644 --- a/current/hyper/header/constant.ACCESS_CONTROL_ALLOW_HEADERS.html +++ b/current/hyper/header/constant.ACCESS_CONTROL_ALLOW_HEADERS.html @@ -1,4 +1,4 @@ -ACCESS_CONTROL_ALLOW_HEADERS in hyper::header - Rust

hyper::header

Constant ACCESS_CONTROL_ALLOW_HEADERS

source
pub const ACCESS_CONTROL_ALLOW_HEADERS: HeaderName;
Expand description

Preflight response indicating permitted HTTP headers.

+ACCESS_CONTROL_ALLOW_HEADERS in hyper::header - Rust
hyper::header

Constant ACCESS_CONTROL_ALLOW_HEADERS

source
pub const ACCESS_CONTROL_ALLOW_HEADERS: HeaderName;
Expand description

Preflight response indicating permitted HTTP headers.

The Access-Control-Allow-Headers response header is used in response to a preflight request to indicate which HTTP headers will be available via Access-Control-Expose-Headers when making the actual request.

diff --git a/current/hyper/header/constant.ACCESS_CONTROL_ALLOW_METHODS.html b/current/hyper/header/constant.ACCESS_CONTROL_ALLOW_METHODS.html index 7fa3fb0fd53..6a064049f9d 100644 --- a/current/hyper/header/constant.ACCESS_CONTROL_ALLOW_METHODS.html +++ b/current/hyper/header/constant.ACCESS_CONTROL_ALLOW_METHODS.html @@ -1,4 +1,4 @@ -ACCESS_CONTROL_ALLOW_METHODS in hyper::header - Rust
hyper::header

Constant ACCESS_CONTROL_ALLOW_METHODS

source
pub const ACCESS_CONTROL_ALLOW_METHODS: HeaderName;
Expand description

Preflight header response indicating permitted access methods.

+ACCESS_CONTROL_ALLOW_METHODS in hyper::header - Rust
hyper::header

Constant ACCESS_CONTROL_ALLOW_METHODS

source
pub const ACCESS_CONTROL_ALLOW_METHODS: HeaderName;
Expand description

Preflight header response indicating permitted access methods.

The Access-Control-Allow-Methods response header specifies the method or methods allowed when accessing the resource in response to a preflight request.

diff --git a/current/hyper/header/constant.ACCESS_CONTROL_ALLOW_ORIGIN.html b/current/hyper/header/constant.ACCESS_CONTROL_ALLOW_ORIGIN.html index 0d8b278bcf9..b284db2e41b 100644 --- a/current/hyper/header/constant.ACCESS_CONTROL_ALLOW_ORIGIN.html +++ b/current/hyper/header/constant.ACCESS_CONTROL_ALLOW_ORIGIN.html @@ -1,3 +1,3 @@ -ACCESS_CONTROL_ALLOW_ORIGIN in hyper::header - Rust
hyper::header

Constant ACCESS_CONTROL_ALLOW_ORIGIN

source
pub const ACCESS_CONTROL_ALLOW_ORIGIN: HeaderName;
Expand description

Indicates whether the response can be shared with resources with the +ACCESS_CONTROL_ALLOW_ORIGIN in hyper::header - Rust

hyper::header

Constant ACCESS_CONTROL_ALLOW_ORIGIN

source
pub const ACCESS_CONTROL_ALLOW_ORIGIN: HeaderName;
Expand description

Indicates whether the response can be shared with resources with the given origin.

\ No newline at end of file diff --git a/current/hyper/header/constant.ACCESS_CONTROL_EXPOSE_HEADERS.html b/current/hyper/header/constant.ACCESS_CONTROL_EXPOSE_HEADERS.html index 6116cc63fd5..1f5de8e9605 100644 --- a/current/hyper/header/constant.ACCESS_CONTROL_EXPOSE_HEADERS.html +++ b/current/hyper/header/constant.ACCESS_CONTROL_EXPOSE_HEADERS.html @@ -1,3 +1,3 @@ -ACCESS_CONTROL_EXPOSE_HEADERS in hyper::header - Rust
hyper::header

Constant ACCESS_CONTROL_EXPOSE_HEADERS

source
pub const ACCESS_CONTROL_EXPOSE_HEADERS: HeaderName;
Expand description

Indicates which headers can be exposed as part of the response by +ACCESS_CONTROL_EXPOSE_HEADERS in hyper::header - Rust

hyper::header

Constant ACCESS_CONTROL_EXPOSE_HEADERS

source
pub const ACCESS_CONTROL_EXPOSE_HEADERS: HeaderName;
Expand description

Indicates which headers can be exposed as part of the response by listing their names.

\ No newline at end of file diff --git a/current/hyper/header/constant.ACCESS_CONTROL_MAX_AGE.html b/current/hyper/header/constant.ACCESS_CONTROL_MAX_AGE.html index 00d2a1fd306..af9d7435505 100644 --- a/current/hyper/header/constant.ACCESS_CONTROL_MAX_AGE.html +++ b/current/hyper/header/constant.ACCESS_CONTROL_MAX_AGE.html @@ -1,2 +1,2 @@ -ACCESS_CONTROL_MAX_AGE in hyper::header - Rust
hyper::header

Constant ACCESS_CONTROL_MAX_AGE

source
pub const ACCESS_CONTROL_MAX_AGE: HeaderName;
Expand description

Indicates how long the results of a preflight request can be cached.

+ACCESS_CONTROL_MAX_AGE in hyper::header - Rust
hyper::header

Constant ACCESS_CONTROL_MAX_AGE

source
pub const ACCESS_CONTROL_MAX_AGE: HeaderName;
Expand description

Indicates how long the results of a preflight request can be cached.

\ No newline at end of file diff --git a/current/hyper/header/constant.ACCESS_CONTROL_REQUEST_HEADERS.html b/current/hyper/header/constant.ACCESS_CONTROL_REQUEST_HEADERS.html index c556bcbf11f..20d15313204 100644 --- a/current/hyper/header/constant.ACCESS_CONTROL_REQUEST_HEADERS.html +++ b/current/hyper/header/constant.ACCESS_CONTROL_REQUEST_HEADERS.html @@ -1,3 +1,3 @@ -ACCESS_CONTROL_REQUEST_HEADERS in hyper::header - Rust
hyper::header

Constant ACCESS_CONTROL_REQUEST_HEADERS

source
pub const ACCESS_CONTROL_REQUEST_HEADERS: HeaderName;
Expand description

Informs the server which HTTP headers will be used when an actual +ACCESS_CONTROL_REQUEST_HEADERS in hyper::header - Rust

hyper::header

Constant ACCESS_CONTROL_REQUEST_HEADERS

source
pub const ACCESS_CONTROL_REQUEST_HEADERS: HeaderName;
Expand description

Informs the server which HTTP headers will be used when an actual request is made.

\ No newline at end of file diff --git a/current/hyper/header/constant.ACCESS_CONTROL_REQUEST_METHOD.html b/current/hyper/header/constant.ACCESS_CONTROL_REQUEST_METHOD.html index fcdef8f4c14..0f402ccd6f8 100644 --- a/current/hyper/header/constant.ACCESS_CONTROL_REQUEST_METHOD.html +++ b/current/hyper/header/constant.ACCESS_CONTROL_REQUEST_METHOD.html @@ -1,3 +1,3 @@ -ACCESS_CONTROL_REQUEST_METHOD in hyper::header - Rust
hyper::header

Constant ACCESS_CONTROL_REQUEST_METHOD

source
pub const ACCESS_CONTROL_REQUEST_METHOD: HeaderName;
Expand description

Informs the server know which HTTP method will be used when the actual +ACCESS_CONTROL_REQUEST_METHOD in hyper::header - Rust

hyper::header

Constant ACCESS_CONTROL_REQUEST_METHOD

source
pub const ACCESS_CONTROL_REQUEST_METHOD: HeaderName;
Expand description

Informs the server know which HTTP method will be used when the actual request is made.

\ No newline at end of file diff --git a/current/hyper/header/constant.AGE.html b/current/hyper/header/constant.AGE.html index d93ad239954..c9be34f07fd 100644 --- a/current/hyper/header/constant.AGE.html +++ b/current/hyper/header/constant.AGE.html @@ -1,4 +1,4 @@ -AGE in hyper::header - Rust
hyper::header

Constant AGE

source
pub const AGE: HeaderName;
Expand description

Indicates the time in seconds the object has been in a proxy cache.

+AGE in hyper::header - Rust
hyper::header

Constant AGE

source
pub const AGE: HeaderName;
Expand description

Indicates the time in seconds the object has been in a proxy cache.

The Age header is usually close to zero. If it is Age: 0, it was probably just fetched from the origin server; otherwise It is usually calculated as a difference between the proxy’s current date and the Date diff --git a/current/hyper/header/constant.ALLOW.html b/current/hyper/header/constant.ALLOW.html index 3151fcac819..d837978e30f 100644 --- a/current/hyper/header/constant.ALLOW.html +++ b/current/hyper/header/constant.ALLOW.html @@ -1,4 +1,4 @@ -ALLOW in hyper::header - Rust

hyper::header

Constant ALLOW

source
pub const ALLOW: HeaderName;
Expand description

Lists the set of methods support by a resource.

+ALLOW in hyper::header - Rust
hyper::header

Constant ALLOW

source
pub const ALLOW: HeaderName;
Expand description

Lists the set of methods support by a resource.

This header must be sent if the server responds with a 405 Method Not Allowed status code to indicate which request methods can be used. An empty Allow header indicates that the resource allows no request diff --git a/current/hyper/header/constant.ALT_SVC.html b/current/hyper/header/constant.ALT_SVC.html index 15167af2f13..6bb2557f5f5 100644 --- a/current/hyper/header/constant.ALT_SVC.html +++ b/current/hyper/header/constant.ALT_SVC.html @@ -1,2 +1,2 @@ -ALT_SVC in hyper::header - Rust

hyper::header

Constant ALT_SVC

source
pub const ALT_SVC: HeaderName;
Expand description

Advertises the availability of alternate services to clients.

+ALT_SVC in hyper::header - Rust
hyper::header

Constant ALT_SVC

source
pub const ALT_SVC: HeaderName;
Expand description

Advertises the availability of alternate services to clients.

\ No newline at end of file diff --git a/current/hyper/header/constant.AUTHORIZATION.html b/current/hyper/header/constant.AUTHORIZATION.html index aef5c68c5c2..5a8dba44896 100644 --- a/current/hyper/header/constant.AUTHORIZATION.html +++ b/current/hyper/header/constant.AUTHORIZATION.html @@ -1,4 +1,4 @@ -AUTHORIZATION in hyper::header - Rust
hyper::header

Constant AUTHORIZATION

source
pub const AUTHORIZATION: HeaderName;
Expand description

Contains the credentials to authenticate a user agent with a server.

+AUTHORIZATION in hyper::header - Rust
hyper::header

Constant AUTHORIZATION

source
pub const AUTHORIZATION: HeaderName;
Expand description

Contains the credentials to authenticate a user agent with a server.

Usually this header is included after the server has responded with a 401 Unauthorized status and the WWW-Authenticate header.

\ No newline at end of file diff --git a/current/hyper/header/constant.CACHE_CONTROL.html b/current/hyper/header/constant.CACHE_CONTROL.html index aa1b7ddeda2..f804e158449 100644 --- a/current/hyper/header/constant.CACHE_CONTROL.html +++ b/current/hyper/header/constant.CACHE_CONTROL.html @@ -1,4 +1,4 @@ -CACHE_CONTROL in hyper::header - Rust
hyper::header

Constant CACHE_CONTROL

source
pub const CACHE_CONTROL: HeaderName;
Expand description

Specifies directives for caching mechanisms in both requests and +CACHE_CONTROL in hyper::header - Rust

hyper::header

Constant CACHE_CONTROL

source
pub const CACHE_CONTROL: HeaderName;
Expand description

Specifies directives for caching mechanisms in both requests and responses.

Caching directives are unidirectional, meaning that a given directive in a request is not implying that the same directive is to be given in the diff --git a/current/hyper/header/constant.CACHE_STATUS.html b/current/hyper/header/constant.CACHE_STATUS.html index d1a8f2b875b..7bdcf260b38 100644 --- a/current/hyper/header/constant.CACHE_STATUS.html +++ b/current/hyper/header/constant.CACHE_STATUS.html @@ -1,3 +1,3 @@ -CACHE_STATUS in hyper::header - Rust

hyper::header

Constant CACHE_STATUS

source
pub const CACHE_STATUS: HeaderName;
Expand description

Indicates how caches have handled a response and its corresponding request.

+CACHE_STATUS in hyper::header - Rust
hyper::header

Constant CACHE_STATUS

source
pub const CACHE_STATUS: HeaderName;
Expand description

Indicates how caches have handled a response and its corresponding request.

See RFC 9211.

\ No newline at end of file diff --git a/current/hyper/header/constant.CDN_CACHE_CONTROL.html b/current/hyper/header/constant.CDN_CACHE_CONTROL.html index 22ad730038d..8bed1b39db3 100644 --- a/current/hyper/header/constant.CDN_CACHE_CONTROL.html +++ b/current/hyper/header/constant.CDN_CACHE_CONTROL.html @@ -1,4 +1,4 @@ -CDN_CACHE_CONTROL in hyper::header - Rust
hyper::header

Constant CDN_CACHE_CONTROL

source
pub const CDN_CACHE_CONTROL: HeaderName;
Expand description

Specifies directives that allow origin servers to control the behavior of CDN caches +CDN_CACHE_CONTROL in hyper::header - Rust

hyper::header

Constant CDN_CACHE_CONTROL

source
pub const CDN_CACHE_CONTROL: HeaderName;
Expand description

Specifies directives that allow origin servers to control the behavior of CDN caches interposed between them and clients separately from other caches that might handle the response.

See RFC 9213.

diff --git a/current/hyper/header/constant.CONNECTION.html b/current/hyper/header/constant.CONNECTION.html index 4ab8786dc8a..f0ddee1688e 100644 --- a/current/hyper/header/constant.CONNECTION.html +++ b/current/hyper/header/constant.CONNECTION.html @@ -1,4 +1,4 @@ -CONNECTION in hyper::header - Rust
hyper::header

Constant CONNECTION

source
pub const CONNECTION: HeaderName;
Expand description

Controls whether or not the network connection stays open after the +CONNECTION in hyper::header - Rust

hyper::header

Constant CONNECTION

source
pub const CONNECTION: HeaderName;
Expand description

Controls whether or not the network connection stays open after the current transaction finishes.

If the value sent is keep-alive, the connection is persistent and not closed, allowing for subsequent requests to the same server to be done.

diff --git a/current/hyper/header/constant.CONTENT_DISPOSITION.html b/current/hyper/header/constant.CONTENT_DISPOSITION.html index a6026c92f95..1b8a9c5d970 100644 --- a/current/hyper/header/constant.CONTENT_DISPOSITION.html +++ b/current/hyper/header/constant.CONTENT_DISPOSITION.html @@ -1,4 +1,4 @@ -CONTENT_DISPOSITION in hyper::header - Rust
hyper::header

Constant CONTENT_DISPOSITION

source
pub const CONTENT_DISPOSITION: HeaderName;
Expand description

Indicates if the content is expected to be displayed inline.

+CONTENT_DISPOSITION in hyper::header - Rust
hyper::header

Constant CONTENT_DISPOSITION

source
pub const CONTENT_DISPOSITION: HeaderName;
Expand description

Indicates if the content is expected to be displayed inline.

In a regular HTTP response, the Content-Disposition response header is a header indicating if the content is expected to be displayed inline in the browser, that is, as a Web page or as part of a Web page, or as an diff --git a/current/hyper/header/constant.CONTENT_ENCODING.html b/current/hyper/header/constant.CONTENT_ENCODING.html index 44cc5fc73dd..03d2af5b03a 100644 --- a/current/hyper/header/constant.CONTENT_ENCODING.html +++ b/current/hyper/header/constant.CONTENT_ENCODING.html @@ -1,4 +1,4 @@ -CONTENT_ENCODING in hyper::header - Rust

hyper::header

Constant CONTENT_ENCODING

source
pub const CONTENT_ENCODING: HeaderName;
Expand description

Used to compress the media-type.

+CONTENT_ENCODING in hyper::header - Rust
hyper::header

Constant CONTENT_ENCODING

source
pub const CONTENT_ENCODING: HeaderName;
Expand description

Used to compress the media-type.

When present, its value indicates what additional content encoding has been applied to the entity-body. It lets the client know, how to decode in order to obtain the media-type referenced by the Content-Type header.

diff --git a/current/hyper/header/constant.CONTENT_LANGUAGE.html b/current/hyper/header/constant.CONTENT_LANGUAGE.html index ce3bf165e70..2bcebbee8c0 100644 --- a/current/hyper/header/constant.CONTENT_LANGUAGE.html +++ b/current/hyper/header/constant.CONTENT_LANGUAGE.html @@ -1,4 +1,4 @@ -CONTENT_LANGUAGE in hyper::header - Rust
hyper::header

Constant CONTENT_LANGUAGE

source
pub const CONTENT_LANGUAGE: HeaderName;
Expand description

Used to describe the languages intended for the audience.

+CONTENT_LANGUAGE in hyper::header - Rust
hyper::header

Constant CONTENT_LANGUAGE

source
pub const CONTENT_LANGUAGE: HeaderName;
Expand description

Used to describe the languages intended for the audience.

This header allows a user to differentiate according to the users’ own preferred language. For example, if “Content-Language: de-DE” is set, it says that the document is intended for German language speakers diff --git a/current/hyper/header/constant.CONTENT_LENGTH.html b/current/hyper/header/constant.CONTENT_LENGTH.html index 7b310570d61..8dae9f80634 100644 --- a/current/hyper/header/constant.CONTENT_LENGTH.html +++ b/current/hyper/header/constant.CONTENT_LENGTH.html @@ -1,4 +1,4 @@ -CONTENT_LENGTH in hyper::header - Rust

hyper::header

Constant CONTENT_LENGTH

source
pub const CONTENT_LENGTH: HeaderName;
Expand description

Indicates the size of the entity-body.

+CONTENT_LENGTH in hyper::header - Rust
hyper::header

Constant CONTENT_LENGTH

source
pub const CONTENT_LENGTH: HeaderName;
Expand description

Indicates the size of the entity-body.

The header value must be a decimal indicating the number of octets sent to the recipient.

\ No newline at end of file diff --git a/current/hyper/header/constant.CONTENT_LOCATION.html b/current/hyper/header/constant.CONTENT_LOCATION.html index d578f2bf73a..b2a00b78e27 100644 --- a/current/hyper/header/constant.CONTENT_LOCATION.html +++ b/current/hyper/header/constant.CONTENT_LOCATION.html @@ -1,4 +1,4 @@ -CONTENT_LOCATION in hyper::header - Rust
hyper::header

Constant CONTENT_LOCATION

source
pub const CONTENT_LOCATION: HeaderName;
Expand description

Indicates an alternate location for the returned data.

+CONTENT_LOCATION in hyper::header - Rust
hyper::header

Constant CONTENT_LOCATION

source
pub const CONTENT_LOCATION: HeaderName;
Expand description

Indicates an alternate location for the returned data.

The principal use case is to indicate the URL of the resource transmitted as the result of content negotiation.

Location and Content-Location are different: Location indicates the diff --git a/current/hyper/header/constant.CONTENT_RANGE.html b/current/hyper/header/constant.CONTENT_RANGE.html index dab3dfdad44..44c013f3476 100644 --- a/current/hyper/header/constant.CONTENT_RANGE.html +++ b/current/hyper/header/constant.CONTENT_RANGE.html @@ -1,2 +1,2 @@ -CONTENT_RANGE in hyper::header - Rust

hyper::header

Constant CONTENT_RANGE

source
pub const CONTENT_RANGE: HeaderName;
Expand description

Indicates where in a full body message a partial message belongs.

+CONTENT_RANGE in hyper::header - Rust
hyper::header

Constant CONTENT_RANGE

source
pub const CONTENT_RANGE: HeaderName;
Expand description

Indicates where in a full body message a partial message belongs.

\ No newline at end of file diff --git a/current/hyper/header/constant.CONTENT_SECURITY_POLICY.html b/current/hyper/header/constant.CONTENT_SECURITY_POLICY.html index 89a8774e288..33c17e9d4ec 100644 --- a/current/hyper/header/constant.CONTENT_SECURITY_POLICY.html +++ b/current/hyper/header/constant.CONTENT_SECURITY_POLICY.html @@ -1,4 +1,4 @@ -CONTENT_SECURITY_POLICY in hyper::header - Rust
hyper::header

Constant CONTENT_SECURITY_POLICY

source
pub const CONTENT_SECURITY_POLICY: HeaderName;
Expand description

Allows controlling resources the user agent is allowed to load for a +CONTENT_SECURITY_POLICY in hyper::header - Rust

hyper::header

Constant CONTENT_SECURITY_POLICY

source
pub const CONTENT_SECURITY_POLICY: HeaderName;
Expand description

Allows controlling resources the user agent is allowed to load for a given page.

With a few exceptions, policies mostly involve specifying server origins and script endpoints. This helps guard against cross-site scripting diff --git a/current/hyper/header/constant.CONTENT_SECURITY_POLICY_REPORT_ONLY.html b/current/hyper/header/constant.CONTENT_SECURITY_POLICY_REPORT_ONLY.html index e52fabeceb1..1018f71e044 100644 --- a/current/hyper/header/constant.CONTENT_SECURITY_POLICY_REPORT_ONLY.html +++ b/current/hyper/header/constant.CONTENT_SECURITY_POLICY_REPORT_ONLY.html @@ -1,4 +1,4 @@ -CONTENT_SECURITY_POLICY_REPORT_ONLY in hyper::header - Rust

hyper::header

Constant CONTENT_SECURITY_POLICY_REPORT_ONLY

source
pub const CONTENT_SECURITY_POLICY_REPORT_ONLY: HeaderName;
Expand description

Allows experimenting with policies by monitoring their effects.

+CONTENT_SECURITY_POLICY_REPORT_ONLY in hyper::header - Rust
hyper::header

Constant CONTENT_SECURITY_POLICY_REPORT_ONLY

source
pub const CONTENT_SECURITY_POLICY_REPORT_ONLY: HeaderName;
Expand description

Allows experimenting with policies by monitoring their effects.

The HTTP Content-Security-Policy-Report-Only response header allows web developers to experiment with policies by monitoring (but not enforcing) their effects. These violation reports consist of JSON documents sent diff --git a/current/hyper/header/constant.CONTENT_TYPE.html b/current/hyper/header/constant.CONTENT_TYPE.html index 2fb2f329302..99fb7987610 100644 --- a/current/hyper/header/constant.CONTENT_TYPE.html +++ b/current/hyper/header/constant.CONTENT_TYPE.html @@ -1,4 +1,4 @@ -CONTENT_TYPE in hyper::header - Rust

hyper::header

Constant CONTENT_TYPE

source
pub const CONTENT_TYPE: HeaderName;
Expand description

Used to indicate the media type of the resource.

+CONTENT_TYPE in hyper::header - Rust
hyper::header

Constant CONTENT_TYPE

source
pub const CONTENT_TYPE: HeaderName;
Expand description

Used to indicate the media type of the resource.

In responses, a Content-Type header tells the client what the content type of the returned content actually is. Browsers will do MIME sniffing in some cases and will not necessarily follow the value of this header; diff --git a/current/hyper/header/constant.COOKIE.html b/current/hyper/header/constant.COOKIE.html index b901975a9f2..d326be7354f 100644 --- a/current/hyper/header/constant.COOKIE.html +++ b/current/hyper/header/constant.COOKIE.html @@ -1,4 +1,4 @@ -COOKIE in hyper::header - Rust

hyper::header

Constant COOKIE

source
pub const COOKIE: HeaderName;
Expand description

Contains stored HTTP cookies previously sent by the server with the +COOKIE in hyper::header - Rust

hyper::header

Constant COOKIE

source
pub const COOKIE: HeaderName;
Expand description

Contains stored HTTP cookies previously sent by the server with the Set-Cookie header.

The Cookie header might be omitted entirely, if the privacy setting of the browser are set to block them, for example.

diff --git a/current/hyper/header/constant.DATE.html b/current/hyper/header/constant.DATE.html index 041e0e76bf7..d6ac2ea4792 100644 --- a/current/hyper/header/constant.DATE.html +++ b/current/hyper/header/constant.DATE.html @@ -1,2 +1,2 @@ -DATE in hyper::header - Rust
hyper::header

Constant DATE

source
pub const DATE: HeaderName;
Expand description

Contains the date and time at which the message was originated.

+DATE in hyper::header - Rust
hyper::header

Constant DATE

source
pub const DATE: HeaderName;
Expand description

Contains the date and time at which the message was originated.

\ No newline at end of file diff --git a/current/hyper/header/constant.DNT.html b/current/hyper/header/constant.DNT.html index 18f602e0253..afef3a98eab 100644 --- a/current/hyper/header/constant.DNT.html +++ b/current/hyper/header/constant.DNT.html @@ -1,4 +1,4 @@ -DNT in hyper::header - Rust
hyper::header

Constant DNT

source
pub const DNT: HeaderName;
Expand description

Indicates the client’s tracking preference.

+DNT in hyper::header - Rust
hyper::header

Constant DNT

source
pub const DNT: HeaderName;
Expand description

Indicates the client’s tracking preference.

This header lets users indicate whether they would prefer privacy rather than personalized content.

\ No newline at end of file diff --git a/current/hyper/header/constant.ETAG.html b/current/hyper/header/constant.ETAG.html index baf21cad64f..5b3ef326636 100644 --- a/current/hyper/header/constant.ETAG.html +++ b/current/hyper/header/constant.ETAG.html @@ -1,4 +1,4 @@ -ETAG in hyper::header - Rust
hyper::header

Constant ETAG

source
pub const ETAG: HeaderName;
Expand description

Identifier for a specific version of a resource.

+ETAG in hyper::header - Rust
hyper::header

Constant ETAG

source
pub const ETAG: HeaderName;
Expand description

Identifier for a specific version of a resource.

This header allows caches to be more efficient, and saves bandwidth, as a web server does not need to send a full response if the content has not changed. On the other side, if the content has changed, etags are diff --git a/current/hyper/header/constant.EXPECT.html b/current/hyper/header/constant.EXPECT.html index aa0c8d218a1..8203ca93caf 100644 --- a/current/hyper/header/constant.EXPECT.html +++ b/current/hyper/header/constant.EXPECT.html @@ -1,4 +1,4 @@ -EXPECT in hyper::header - Rust

hyper::header

Constant EXPECT

source
pub const EXPECT: HeaderName;
Expand description

Indicates expectations that need to be fulfilled by the server in order +EXPECT in hyper::header - Rust

hyper::header

Constant EXPECT

source
pub const EXPECT: HeaderName;
Expand description

Indicates expectations that need to be fulfilled by the server in order to properly handle the request.

The only expectation defined in the specification is Expect: 100-continue, to which the server shall respond with:

diff --git a/current/hyper/header/constant.EXPIRES.html b/current/hyper/header/constant.EXPIRES.html index 9929a8a1e76..8aecef6c40c 100644 --- a/current/hyper/header/constant.EXPIRES.html +++ b/current/hyper/header/constant.EXPIRES.html @@ -1,4 +1,4 @@ -EXPIRES in hyper::header - Rust
hyper::header

Constant EXPIRES

source
pub const EXPIRES: HeaderName;
Expand description

Contains the date/time after which the response is considered stale.

+EXPIRES in hyper::header - Rust
hyper::header

Constant EXPIRES

source
pub const EXPIRES: HeaderName;
Expand description

Contains the date/time after which the response is considered stale.

Invalid dates, like the value 0, represent a date in the past and mean that the resource is already expired.

If there is a Cache-Control header with the “max-age” or “s-max-age” diff --git a/current/hyper/header/constant.FORWARDED.html b/current/hyper/header/constant.FORWARDED.html index af45137e60d..c526f7ee088 100644 --- a/current/hyper/header/constant.FORWARDED.html +++ b/current/hyper/header/constant.FORWARDED.html @@ -1,4 +1,4 @@ -FORWARDED in hyper::header - Rust

hyper::header

Constant FORWARDED

source
pub const FORWARDED: HeaderName;
Expand description

Contains information from the client-facing side of proxy servers that +FORWARDED in hyper::header - Rust

hyper::header

Constant FORWARDED

source
pub const FORWARDED: HeaderName;
Expand description

Contains information from the client-facing side of proxy servers that is altered or lost when a proxy is involved in the path of the request.

The alternative and de-facto standard versions of this header are the X-Forwarded-For, X-Forwarded-Host and X-Forwarded-Proto headers.

diff --git a/current/hyper/header/constant.FROM.html b/current/hyper/header/constant.FROM.html index 9aebbc161ba..2e38d6fdf36 100644 --- a/current/hyper/header/constant.FROM.html +++ b/current/hyper/header/constant.FROM.html @@ -1,4 +1,4 @@ -FROM in hyper::header - Rust
hyper::header

Constant FROM

source
pub const FROM: HeaderName;
Expand description

Contains an Internet email address for a human user who controls the +FROM in hyper::header - Rust

hyper::header

Constant FROM

source
pub const FROM: HeaderName;
Expand description

Contains an Internet email address for a human user who controls the requesting user agent.

If you are running a robotic user agent (e.g. a crawler), the From header should be sent, so you can be contacted if problems occur on diff --git a/current/hyper/header/constant.HOST.html b/current/hyper/header/constant.HOST.html index c81790d0761..5c5153b30a1 100644 --- a/current/hyper/header/constant.HOST.html +++ b/current/hyper/header/constant.HOST.html @@ -1,4 +1,4 @@ -HOST in hyper::header - Rust

hyper::header

Constant HOST

source
pub const HOST: HeaderName;
Expand description

Specifies the domain name of the server and (optionally) the TCP port +HOST in hyper::header - Rust

hyper::header

Constant HOST

source
pub const HOST: HeaderName;
Expand description

Specifies the domain name of the server and (optionally) the TCP port number on which the server is listening.

If no port is given, the default port for the service requested (e.g., “80” for an HTTP URL) is implied.

diff --git a/current/hyper/header/constant.IF_MATCH.html b/current/hyper/header/constant.IF_MATCH.html index 2351ad3df1d..6d72f91108f 100644 --- a/current/hyper/header/constant.IF_MATCH.html +++ b/current/hyper/header/constant.IF_MATCH.html @@ -1,4 +1,4 @@ -IF_MATCH in hyper::header - Rust
hyper::header

Constant IF_MATCH

source
pub const IF_MATCH: HeaderName;
Expand description

Makes a request conditional based on the E-Tag.

+IF_MATCH in hyper::header - Rust
hyper::header

Constant IF_MATCH

source
pub const IF_MATCH: HeaderName;
Expand description

Makes a request conditional based on the E-Tag.

For GET and HEAD methods, the server will send back the requested resource only if it matches one of the listed ETags. For PUT and other non-safe methods, it will only upload the resource in this case.

diff --git a/current/hyper/header/constant.IF_MODIFIED_SINCE.html b/current/hyper/header/constant.IF_MODIFIED_SINCE.html index 34d44db6a23..c103099e5dc 100644 --- a/current/hyper/header/constant.IF_MODIFIED_SINCE.html +++ b/current/hyper/header/constant.IF_MODIFIED_SINCE.html @@ -1,4 +1,4 @@ -IF_MODIFIED_SINCE in hyper::header - Rust
hyper::header

Constant IF_MODIFIED_SINCE

source
pub const IF_MODIFIED_SINCE: HeaderName;
Expand description

Makes a request conditional based on the modification date.

+IF_MODIFIED_SINCE in hyper::header - Rust
hyper::header

Constant IF_MODIFIED_SINCE

source
pub const IF_MODIFIED_SINCE: HeaderName;
Expand description

Makes a request conditional based on the modification date.

The If-Modified-Since request HTTP header makes the request conditional: the server will send back the requested resource, with a 200 status, only if it has been last modified after the given date. If the request diff --git a/current/hyper/header/constant.IF_NONE_MATCH.html b/current/hyper/header/constant.IF_NONE_MATCH.html index cf9f9af097e..5c81695263f 100644 --- a/current/hyper/header/constant.IF_NONE_MATCH.html +++ b/current/hyper/header/constant.IF_NONE_MATCH.html @@ -1,4 +1,4 @@ -IF_NONE_MATCH in hyper::header - Rust

hyper::header

Constant IF_NONE_MATCH

source
pub const IF_NONE_MATCH: HeaderName;
Expand description

Makes a request conditional based on the E-Tag.

+IF_NONE_MATCH in hyper::header - Rust
hyper::header

Constant IF_NONE_MATCH

source
pub const IF_NONE_MATCH: HeaderName;
Expand description

Makes a request conditional based on the E-Tag.

The If-None-Match HTTP request header makes the request conditional. For GET and HEAD methods, the server will send back the requested resource, with a 200 status, only if it doesn’t have an ETag matching the given diff --git a/current/hyper/header/constant.IF_RANGE.html b/current/hyper/header/constant.IF_RANGE.html index 35902cfce1e..7f55d48bebf 100644 --- a/current/hyper/header/constant.IF_RANGE.html +++ b/current/hyper/header/constant.IF_RANGE.html @@ -1,4 +1,4 @@ -IF_RANGE in hyper::header - Rust

hyper::header

Constant IF_RANGE

source
pub const IF_RANGE: HeaderName;
Expand description

Makes a request conditional based on range.

+IF_RANGE in hyper::header - Rust
hyper::header

Constant IF_RANGE

source
pub const IF_RANGE: HeaderName;
Expand description

Makes a request conditional based on range.

The If-Range HTTP request header makes a range request conditional: if the condition is fulfilled, the range request will be issued and the server sends back a 206 Partial Content answer with the appropriate diff --git a/current/hyper/header/constant.IF_UNMODIFIED_SINCE.html b/current/hyper/header/constant.IF_UNMODIFIED_SINCE.html index 7056142c46d..780439d4feb 100644 --- a/current/hyper/header/constant.IF_UNMODIFIED_SINCE.html +++ b/current/hyper/header/constant.IF_UNMODIFIED_SINCE.html @@ -1,4 +1,4 @@ -IF_UNMODIFIED_SINCE in hyper::header - Rust

hyper::header

Constant IF_UNMODIFIED_SINCE

source
pub const IF_UNMODIFIED_SINCE: HeaderName;
Expand description

Makes the request conditional based on the last modification date.

+IF_UNMODIFIED_SINCE in hyper::header - Rust
hyper::header

Constant IF_UNMODIFIED_SINCE

source
pub const IF_UNMODIFIED_SINCE: HeaderName;
Expand description

Makes the request conditional based on the last modification date.

The If-Unmodified-Since request HTTP header makes the request conditional: the server will send back the requested resource, or accept it in the case of a POST or another non-safe method, only if it has not diff --git a/current/hyper/header/constant.LAST_MODIFIED.html b/current/hyper/header/constant.LAST_MODIFIED.html index 05a333f5c13..f2a4975dbdd 100644 --- a/current/hyper/header/constant.LAST_MODIFIED.html +++ b/current/hyper/header/constant.LAST_MODIFIED.html @@ -1,2 +1,2 @@ -LAST_MODIFIED in hyper::header - Rust

hyper::header

Constant LAST_MODIFIED

source
pub const LAST_MODIFIED: HeaderName;
Expand description

Content-Types that are acceptable for the response.

+LAST_MODIFIED in hyper::header - Rust
hyper::header

Constant LAST_MODIFIED

source
pub const LAST_MODIFIED: HeaderName;
Expand description

Content-Types that are acceptable for the response.

\ No newline at end of file diff --git a/current/hyper/header/constant.LINK.html b/current/hyper/header/constant.LINK.html index aac4b670f43..c4d206ccb22 100644 --- a/current/hyper/header/constant.LINK.html +++ b/current/hyper/header/constant.LINK.html @@ -1,3 +1,3 @@ -LINK in hyper::header - Rust
hyper::header

Constant LINK

source
pub const LINK: HeaderName;
Expand description

Allows the server to point an interested client to another resource +LINK in hyper::header - Rust

hyper::header

Constant LINK

source
pub const LINK: HeaderName;
Expand description

Allows the server to point an interested client to another resource containing metadata about the requested resource.

\ No newline at end of file diff --git a/current/hyper/header/constant.LOCATION.html b/current/hyper/header/constant.LOCATION.html index 85b449d9ac4..dd97c5d1aa4 100644 --- a/current/hyper/header/constant.LOCATION.html +++ b/current/hyper/header/constant.LOCATION.html @@ -1,4 +1,4 @@ -LOCATION in hyper::header - Rust
hyper::header

Constant LOCATION

source
pub const LOCATION: HeaderName;
Expand description

Indicates the URL to redirect a page to.

+LOCATION in hyper::header - Rust
hyper::header

Constant LOCATION

source
pub const LOCATION: HeaderName;
Expand description

Indicates the URL to redirect a page to.

The Location response header indicates the URL to redirect a page to. It only provides a meaning when served with a 3xx status response.

The HTTP method used to make the new request to fetch the page pointed diff --git a/current/hyper/header/constant.MAX_FORWARDS.html b/current/hyper/header/constant.MAX_FORWARDS.html index fcaffcf7147..67301c2d6b0 100644 --- a/current/hyper/header/constant.MAX_FORWARDS.html +++ b/current/hyper/header/constant.MAX_FORWARDS.html @@ -1,3 +1,3 @@ -MAX_FORWARDS in hyper::header - Rust

hyper::header

Constant MAX_FORWARDS

source
pub const MAX_FORWARDS: HeaderName;
Expand description

Indicates the max number of intermediaries the request should be sent +MAX_FORWARDS in hyper::header - Rust

hyper::header

Constant MAX_FORWARDS

source
pub const MAX_FORWARDS: HeaderName;
Expand description

Indicates the max number of intermediaries the request should be sent through.

\ No newline at end of file diff --git a/current/hyper/header/constant.ORIGIN.html b/current/hyper/header/constant.ORIGIN.html index b68ce36134a..c5868072e1e 100644 --- a/current/hyper/header/constant.ORIGIN.html +++ b/current/hyper/header/constant.ORIGIN.html @@ -1,4 +1,4 @@ -ORIGIN in hyper::header - Rust
hyper::header

Constant ORIGIN

source
pub const ORIGIN: HeaderName;
Expand description

Indicates where a fetch originates from.

+ORIGIN in hyper::header - Rust
hyper::header

Constant ORIGIN

source
pub const ORIGIN: HeaderName;
Expand description

Indicates where a fetch originates from.

It doesn’t include any path information, but only the server name. It is sent with CORS requests, as well as with POST requests. It is similar to the Referer header, but, unlike this header, it doesn’t disclose the diff --git a/current/hyper/header/constant.PRAGMA.html b/current/hyper/header/constant.PRAGMA.html index f74d66c48aa..19ce92119e8 100644 --- a/current/hyper/header/constant.PRAGMA.html +++ b/current/hyper/header/constant.PRAGMA.html @@ -1,4 +1,4 @@ -PRAGMA in hyper::header - Rust

hyper::header

Constant PRAGMA

source
pub const PRAGMA: HeaderName;
Expand description

HTTP/1.0 header usually used for backwards compatibility.

+PRAGMA in hyper::header - Rust
hyper::header

Constant PRAGMA

source
pub const PRAGMA: HeaderName;
Expand description

HTTP/1.0 header usually used for backwards compatibility.

The Pragma HTTP/1.0 general header is an implementation-specific header that may have various effects along the request-response chain. It is used for backwards compatibility with HTTP/1.0 caches where the diff --git a/current/hyper/header/constant.PROXY_AUTHENTICATE.html b/current/hyper/header/constant.PROXY_AUTHENTICATE.html index 7d466fb9905..3b533966f67 100644 --- a/current/hyper/header/constant.PROXY_AUTHENTICATE.html +++ b/current/hyper/header/constant.PROXY_AUTHENTICATE.html @@ -1,4 +1,4 @@ -PROXY_AUTHENTICATE in hyper::header - Rust

hyper::header

Constant PROXY_AUTHENTICATE

source
pub const PROXY_AUTHENTICATE: HeaderName;
Expand description

Defines the authentication method that should be used to gain access to +PROXY_AUTHENTICATE in hyper::header - Rust

hyper::header

Constant PROXY_AUTHENTICATE

source
pub const PROXY_AUTHENTICATE: HeaderName;
Expand description

Defines the authentication method that should be used to gain access to a proxy.

Unlike www-authenticate, the proxy-authenticate header field applies only to the next outbound client on the response chain. This is because diff --git a/current/hyper/header/constant.PROXY_AUTHORIZATION.html b/current/hyper/header/constant.PROXY_AUTHORIZATION.html index 39bd2470f13..ac888432e68 100644 --- a/current/hyper/header/constant.PROXY_AUTHORIZATION.html +++ b/current/hyper/header/constant.PROXY_AUTHORIZATION.html @@ -1,4 +1,4 @@ -PROXY_AUTHORIZATION in hyper::header - Rust

hyper::header

Constant PROXY_AUTHORIZATION

source
pub const PROXY_AUTHORIZATION: HeaderName;
Expand description

Contains the credentials to authenticate a user agent to a proxy server.

+PROXY_AUTHORIZATION in hyper::header - Rust
hyper::header

Constant PROXY_AUTHORIZATION

source
pub const PROXY_AUTHORIZATION: HeaderName;
Expand description

Contains the credentials to authenticate a user agent to a proxy server.

This header is usually included after the server has responded with a 407 Proxy Authentication Required status and the Proxy-Authenticate header.

diff --git a/current/hyper/header/constant.PUBLIC_KEY_PINS.html b/current/hyper/header/constant.PUBLIC_KEY_PINS.html index 4b9075c47a9..846d0e3a1e1 100644 --- a/current/hyper/header/constant.PUBLIC_KEY_PINS.html +++ b/current/hyper/header/constant.PUBLIC_KEY_PINS.html @@ -1,4 +1,4 @@ -PUBLIC_KEY_PINS in hyper::header - Rust
hyper::header

Constant PUBLIC_KEY_PINS

source
pub const PUBLIC_KEY_PINS: HeaderName;
Expand description

Associates a specific cryptographic public key with a certain server.

+PUBLIC_KEY_PINS in hyper::header - Rust
hyper::header

Constant PUBLIC_KEY_PINS

source
pub const PUBLIC_KEY_PINS: HeaderName;
Expand description

Associates a specific cryptographic public key with a certain server.

This decreases the risk of MITM attacks with forged certificates. If one or several keys are pinned and none of them are used by the server, the browser will not accept the response as legitimate, and will not display diff --git a/current/hyper/header/constant.PUBLIC_KEY_PINS_REPORT_ONLY.html b/current/hyper/header/constant.PUBLIC_KEY_PINS_REPORT_ONLY.html index b716b1b0834..8aa4e093d25 100644 --- a/current/hyper/header/constant.PUBLIC_KEY_PINS_REPORT_ONLY.html +++ b/current/hyper/header/constant.PUBLIC_KEY_PINS_REPORT_ONLY.html @@ -1,4 +1,4 @@ -PUBLIC_KEY_PINS_REPORT_ONLY in hyper::header - Rust

hyper::header

Constant PUBLIC_KEY_PINS_REPORT_ONLY

source
pub const PUBLIC_KEY_PINS_REPORT_ONLY: HeaderName;
Expand description

Sends reports of pinning violation to the report-uri specified in the +PUBLIC_KEY_PINS_REPORT_ONLY in hyper::header - Rust

hyper::header

Constant PUBLIC_KEY_PINS_REPORT_ONLY

source
pub const PUBLIC_KEY_PINS_REPORT_ONLY: HeaderName;
Expand description

Sends reports of pinning violation to the report-uri specified in the header.

Unlike Public-Key-Pins, this header still allows browsers to connect to the server if the pinning is violated.

diff --git a/current/hyper/header/constant.RANGE.html b/current/hyper/header/constant.RANGE.html index 7d9f29847d7..9ee06f081e2 100644 --- a/current/hyper/header/constant.RANGE.html +++ b/current/hyper/header/constant.RANGE.html @@ -1,4 +1,4 @@ -RANGE in hyper::header - Rust
hyper::header

Constant RANGE

source
pub const RANGE: HeaderName;
Expand description

Indicates the part of a document that the server should return.

+RANGE in hyper::header - Rust
hyper::header

Constant RANGE

source
pub const RANGE: HeaderName;
Expand description

Indicates the part of a document that the server should return.

Several parts can be requested with one Range header at once, and the server may send back these ranges in a multipart document. If the server sends back ranges, it uses the 206 Partial Content for the response. If diff --git a/current/hyper/header/constant.REFERER.html b/current/hyper/header/constant.REFERER.html index 1fd96131212..43074b0b177 100644 --- a/current/hyper/header/constant.REFERER.html +++ b/current/hyper/header/constant.REFERER.html @@ -1,4 +1,4 @@ -REFERER in hyper::header - Rust

hyper::header

Constant REFERER

source
pub const REFERER: HeaderName;
Expand description

Contains the address of the previous web page from which a link to the +REFERER in hyper::header - Rust

hyper::header

Constant REFERER

source
pub const REFERER: HeaderName;
Expand description

Contains the address of the previous web page from which a link to the currently requested page was followed.

The Referer header allows servers to identify where people are visiting them from and may use that data for analytics, logging, or optimized diff --git a/current/hyper/header/constant.REFERRER_POLICY.html b/current/hyper/header/constant.REFERRER_POLICY.html index e20b49232c4..ae5f8ab613a 100644 --- a/current/hyper/header/constant.REFERRER_POLICY.html +++ b/current/hyper/header/constant.REFERRER_POLICY.html @@ -1,3 +1,3 @@ -REFERRER_POLICY in hyper::header - Rust

hyper::header

Constant REFERRER_POLICY

source
pub const REFERRER_POLICY: HeaderName;
Expand description

Governs which referrer information should be included with requests +REFERRER_POLICY in hyper::header - Rust

hyper::header

Constant REFERRER_POLICY

source
pub const REFERRER_POLICY: HeaderName;
Expand description

Governs which referrer information should be included with requests made.

\ No newline at end of file diff --git a/current/hyper/header/constant.REFRESH.html b/current/hyper/header/constant.REFRESH.html index 1acc7fe96cd..2d6efcb7eb3 100644 --- a/current/hyper/header/constant.REFRESH.html +++ b/current/hyper/header/constant.REFRESH.html @@ -1,3 +1,3 @@ -REFRESH in hyper::header - Rust
hyper::header

Constant REFRESH

source
pub const REFRESH: HeaderName;
Expand description

Informs the web browser that the current page or frame should be +REFRESH in hyper::header - Rust

hyper::header

Constant REFRESH

source
pub const REFRESH: HeaderName;
Expand description

Informs the web browser that the current page or frame should be refreshed.

\ No newline at end of file diff --git a/current/hyper/header/constant.RETRY_AFTER.html b/current/hyper/header/constant.RETRY_AFTER.html index dfeb936655d..449b00e5263 100644 --- a/current/hyper/header/constant.RETRY_AFTER.html +++ b/current/hyper/header/constant.RETRY_AFTER.html @@ -1,4 +1,4 @@ -RETRY_AFTER in hyper::header - Rust
hyper::header

Constant RETRY_AFTER

source
pub const RETRY_AFTER: HeaderName;
Expand description

The Retry-After response HTTP header indicates how long the user agent +RETRY_AFTER in hyper::header - Rust

hyper::header

Constant RETRY_AFTER

source
pub const RETRY_AFTER: HeaderName;
Expand description

The Retry-After response HTTP header indicates how long the user agent should wait before making a follow-up request. There are two main cases this header is used:

source§

impl PartialOrd<[u8]> for HeaderValue

source§

fn partial_cmp(&self, other: &[u8]) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the +the >= operator. Read more
source§

impl PartialOrd<[u8]> for HeaderValue

source§

fn partial_cmp(&self, other: &[u8]) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by -the >= operator. Read more
source§

impl<'a> PartialOrd<HeaderValue> for &'a HeaderValue

source§

fn partial_cmp(&self, other: &HeaderValue) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the +the >= operator. Read more
source§

impl<'a> PartialOrd<HeaderValue> for &'a HeaderValue

source§

fn partial_cmp(&self, other: &HeaderValue) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by -the >= operator. Read more
source§

impl<'a> PartialOrd<HeaderValue> for &'a str

source§

fn partial_cmp(&self, other: &HeaderValue) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the +the >= operator. Read more
source§

impl<'a> PartialOrd<HeaderValue> for &'a str

source§

fn partial_cmp(&self, other: &HeaderValue) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by -the >= operator. Read more
source§

impl PartialOrd<HeaderValue> for [u8]

source§

fn partial_cmp(&self, other: &HeaderValue) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the +the >= operator. Read more
source§

impl PartialOrd<HeaderValue> for [u8]

source§

fn partial_cmp(&self, other: &HeaderValue) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by -the >= operator. Read more
source§

impl PartialOrd<HeaderValue> for str

source§

fn partial_cmp(&self, other: &HeaderValue) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the +the >= operator. Read more
source§

impl PartialOrd<HeaderValue> for str

source§

fn partial_cmp(&self, other: &HeaderValue) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by -the >= operator. Read more
source§

impl PartialOrd<String> for HeaderValue

source§

fn partial_cmp(&self, other: &String) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the +the >= operator. Read more
source§

impl PartialOrd<String> for HeaderValue

source§

fn partial_cmp(&self, other: &String) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by -the >= operator. Read more
source§

impl PartialOrd<str> for HeaderValue

source§

fn partial_cmp(&self, other: &str) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the +the >= operator. Read more
source§

impl PartialOrd<str> for HeaderValue

source§

fn partial_cmp(&self, other: &str) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by -the >= operator. Read more
source§

impl PartialOrd for HeaderValue

source§

fn partial_cmp(&self, other: &HeaderValue) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the +the >= operator. Read more
source§

impl PartialOrd for HeaderValue

source§

fn partial_cmp(&self, other: &HeaderValue) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by -the >= operator. Read more
source§

impl<'a> TryFrom<&'a [u8]> for HeaderValue

source§

type Error = InvalidHeaderValue

The type returned in the event of a conversion error.
source§

fn try_from( +the >= operator. Read more

source§

impl<'a> TryFrom<&'a [u8]> for HeaderValue

source§

type Error = InvalidHeaderValue

The type returned in the event of a conversion error.
source§

fn try_from( t: &'a [u8], -) -> Result<HeaderValue, <HeaderValue as TryFrom<&'a [u8]>>::Error>

Performs the conversion.
source§

impl<'a> TryFrom<&'a String> for HeaderValue

source§

type Error = InvalidHeaderValue

The type returned in the event of a conversion error.
source§

fn try_from( +) -> Result<HeaderValue, <HeaderValue as TryFrom<&'a [u8]>>::Error>

Performs the conversion.
source§

impl<'a> TryFrom<&'a String> for HeaderValue

source§

type Error = InvalidHeaderValue

The type returned in the event of a conversion error.
source§

fn try_from( s: &'a String, -) -> Result<HeaderValue, <HeaderValue as TryFrom<&'a String>>::Error>

Performs the conversion.
source§

impl<'a> TryFrom<&'a str> for HeaderValue

source§

type Error = InvalidHeaderValue

The type returned in the event of a conversion error.
source§

fn try_from( +) -> Result<HeaderValue, <HeaderValue as TryFrom<&'a String>>::Error>

Performs the conversion.
source§

impl<'a> TryFrom<&'a str> for HeaderValue

source§

type Error = InvalidHeaderValue

The type returned in the event of a conversion error.
source§

fn try_from( t: &'a str, -) -> Result<HeaderValue, <HeaderValue as TryFrom<&'a str>>::Error>

Performs the conversion.
source§

impl TryFrom<String> for HeaderValue

source§

type Error = InvalidHeaderValue

The type returned in the event of a conversion error.
source§

fn try_from( +) -> Result<HeaderValue, <HeaderValue as TryFrom<&'a str>>::Error>

Performs the conversion.
source§

impl TryFrom<String> for HeaderValue

source§

type Error = InvalidHeaderValue

The type returned in the event of a conversion error.
source§

fn try_from( t: String, -) -> Result<HeaderValue, <HeaderValue as TryFrom<String>>::Error>

Performs the conversion.
source§

impl TryFrom<Vec<u8>> for HeaderValue

source§

type Error = InvalidHeaderValue

The type returned in the event of a conversion error.
source§

fn try_from( +) -> Result<HeaderValue, <HeaderValue as TryFrom<String>>::Error>

Performs the conversion.
source§

impl TryFrom<Vec<u8>> for HeaderValue

source§

type Error = InvalidHeaderValue

The type returned in the event of a conversion error.
source§

fn try_from( vec: Vec<u8>, -) -> Result<HeaderValue, <HeaderValue as TryFrom<Vec<u8>>>::Error>

Performs the conversion.
source§

impl Eq for HeaderValue

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T

Performs the conversion.
source§

impl Eq for HeaderValue

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where diff --git a/current/hyper/header/struct.IntoIter.html b/current/hyper/header/struct.IntoIter.html index a58a7718e52..bd5bf0ffa21 100644 --- a/current/hyper/header/struct.IntoIter.html +++ b/current/hyper/header/struct.IntoIter.html @@ -1,7 +1,7 @@ -IntoIter in hyper::header - Rust
hyper::header

Struct IntoIter

source
pub struct IntoIter<T> { /* private fields */ }
Expand description

An owning iterator over the entries of a HeaderMap.

+IntoIter in hyper::header - Rust
hyper::header

Struct IntoIter

source
pub struct IntoIter<T> { /* private fields */ }
Expand description

An owning iterator over the entries of a HeaderMap.

This struct is created by the into_iter method on HeaderMap.

-

Trait Implementations§

source§

impl<T> Debug for IntoIter<T>
where - T: Debug,

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl<T> Drop for IntoIter<T>

source§

fn drop(&mut self)

Executes the destructor for this type. Read more
source§

impl<T> Iterator for IntoIter<T>

source§

type Item = (Option<HeaderName>, T)

The type of the elements being iterated over.
source§

fn next(&mut self) -> Option<<IntoIter<T> as Iterator>::Item>

Advances the iterator and returns the next value. Read more
source§

fn size_hint(&self) -> (usize, Option<usize>)

Returns the bounds on the remaining length of the iterator. Read more
source§

fn next_chunk<const N: usize>( +

Trait Implementations§

source§

impl<T> Debug for IntoIter<T>
where + T: Debug,

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl<T> Drop for IntoIter<T>

source§

fn drop(&mut self)

Executes the destructor for this type. Read more
source§

impl<T> Iterator for IntoIter<T>

source§

type Item = (Option<HeaderName>, T)

The type of the elements being iterated over.
source§

fn next(&mut self) -> Option<<IntoIter<T> as Iterator>::Item>

Advances the iterator and returns the next value. Read more
source§

fn size_hint(&self) -> (usize, Option<usize>)

Returns the bounds on the remaining length of the iterator. Read more
source§

fn next_chunk<const N: usize>( &mut self, ) -> Result<[Self::Item; N], IntoIter<Self::Item, N>>
where Self: Sized,

🔬This is a nightly-only experimental API. (iter_next_chunk)
Advances the iterator and returns an array containing the next N values. Read more
1.0.0 · source§

fn count(self) -> usize
where @@ -176,7 +176,7 @@ Self: Sized, F: FnMut(Self::Item) -> K, K: PartialOrd,

Checks if the elements of this iterator are sorted using the given key extraction -function. Read more
source§

impl<T> FusedIterator for IntoIter<T>

Auto Trait Implementations§

§

impl<T> Freeze for IntoIter<T>

§

impl<T> RefUnwindSafe for IntoIter<T>
where +function. Read more

source§

impl<T> FusedIterator for IntoIter<T>

Auto Trait Implementations§

§

impl<T> Freeze for IntoIter<T>

§

impl<T> RefUnwindSafe for IntoIter<T>
where T: RefUnwindSafe,

§

impl<T> Send for IntoIter<T>
where T: Send,

§

impl<T> Sync for IntoIter<T>
where T: Sync,

§

impl<T> Unpin for IntoIter<T>
where diff --git a/current/hyper/header/struct.InvalidHeaderName.html b/current/hyper/header/struct.InvalidHeaderName.html index eed680debfb..8b99e525687 100644 --- a/current/hyper/header/struct.InvalidHeaderName.html +++ b/current/hyper/header/struct.InvalidHeaderName.html @@ -1,5 +1,5 @@ -InvalidHeaderName in hyper::header - Rust
hyper::header

Struct InvalidHeaderName

source
pub struct InvalidHeaderName { /* private fields */ }
Expand description

A possible error when converting a HeaderName from another type.

-

Trait Implementations§

source§

impl Debug for InvalidHeaderName

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl Display for InvalidHeaderName

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl Error for InvalidHeaderName

1.30.0 · source§

fn source(&self) -> Option<&(dyn Error + 'static)>

Returns the lower-level source of this error, if any. Read more
1.0.0 · source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where +InvalidHeaderName in hyper::header - Rust
hyper::header

Struct InvalidHeaderName

source
pub struct InvalidHeaderName { /* private fields */ }
Expand description

A possible error when converting a HeaderName from another type.

+

Trait Implementations§

source§

impl Debug for InvalidHeaderName

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl Display for InvalidHeaderName

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl Error for InvalidHeaderName

1.30.0 · source§

fn source(&self) -> Option<&(dyn Error + 'static)>

Returns the lower-level source of this error, if any. Read more
1.0.0 · source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

diff --git a/current/hyper/header/struct.InvalidHeaderValue.html b/current/hyper/header/struct.InvalidHeaderValue.html index eccce2ca98d..6054905382c 100644 --- a/current/hyper/header/struct.InvalidHeaderValue.html +++ b/current/hyper/header/struct.InvalidHeaderValue.html @@ -1,6 +1,6 @@ -InvalidHeaderValue in hyper::header - Rust
hyper::header

Struct InvalidHeaderValue

source
pub struct InvalidHeaderValue { /* private fields */ }
Expand description

A possible error when converting a HeaderValue from a string or byte +InvalidHeaderValue in hyper::header - Rust

hyper::header

Struct InvalidHeaderValue

source
pub struct InvalidHeaderValue { /* private fields */ }
Expand description

A possible error when converting a HeaderValue from a string or byte slice.

-

Trait Implementations§

source§

impl Debug for InvalidHeaderValue

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl Display for InvalidHeaderValue

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl Error for InvalidHeaderValue

1.30.0 · source§

fn source(&self) -> Option<&(dyn Error + 'static)>

Returns the lower-level source of this error, if any. Read more
1.0.0 · source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where +

Trait Implementations§

source§

impl Debug for InvalidHeaderValue

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl Display for InvalidHeaderValue

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl Error for InvalidHeaderValue

1.30.0 · source§

fn source(&self) -> Option<&(dyn Error + 'static)>

Returns the lower-level source of this error, if any. Read more
1.0.0 · source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

diff --git a/current/hyper/header/struct.Iter.html b/current/hyper/header/struct.Iter.html index 6e0b171884a..d7c56147d56 100644 --- a/current/hyper/header/struct.Iter.html +++ b/current/hyper/header/struct.Iter.html @@ -1,8 +1,8 @@ -Iter in hyper::header - Rust
hyper::header

Struct Iter

source
pub struct Iter<'a, T> { /* private fields */ }
Expand description

HeaderMap entry iterator.

+Iter in hyper::header - Rust
hyper::header

Struct Iter

source
pub struct Iter<'a, T> { /* private fields */ }
Expand description

HeaderMap entry iterator.

Yields (&HeaderName, &value) tuples. The same header name may be yielded more than once if it has more than one associated value.

-

Trait Implementations§

source§

impl<'a, T> Debug for Iter<'a, T>
where - T: Debug,

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl<'a, T> Iterator for Iter<'a, T>

source§

type Item = (&'a HeaderName, &'a T)

The type of the elements being iterated over.
source§

fn next(&mut self) -> Option<<Iter<'a, T> as Iterator>::Item>

Advances the iterator and returns the next value. Read more
source§

fn size_hint(&self) -> (usize, Option<usize>)

Returns the bounds on the remaining length of the iterator. Read more
source§

fn next_chunk<const N: usize>( +

Trait Implementations§

source§

impl<'a, T> Debug for Iter<'a, T>
where + T: Debug,

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl<'a, T> Iterator for Iter<'a, T>

source§

type Item = (&'a HeaderName, &'a T)

The type of the elements being iterated over.
source§

fn next(&mut self) -> Option<<Iter<'a, T> as Iterator>::Item>

Advances the iterator and returns the next value. Read more
source§

fn size_hint(&self) -> (usize, Option<usize>)

Returns the bounds on the remaining length of the iterator. Read more
source§

fn next_chunk<const N: usize>( &mut self, ) -> Result<[Self::Item; N], IntoIter<Self::Item, N>>
where Self: Sized,

🔬This is a nightly-only experimental API. (iter_next_chunk)
Advances the iterator and returns an array containing the next N values. Read more
1.0.0 · source§

fn count(self) -> usize
where @@ -177,8 +177,8 @@ Self: Sized, F: FnMut(Self::Item) -> K, K: PartialOrd,

Checks if the elements of this iterator are sorted using the given key extraction -function. Read more
source§

impl<'a, T> FusedIterator for Iter<'a, T>

source§

impl<'a, T> Send for Iter<'a, T>
where - T: Sync,

source§

impl<'a, T> Sync for Iter<'a, T>
where +function. Read more

source§

impl<'a, T> FusedIterator for Iter<'a, T>

source§

impl<'a, T> Send for Iter<'a, T>
where + T: Sync,

source§

impl<'a, T> Sync for Iter<'a, T>
where T: Sync,

Auto Trait Implementations§

§

impl<'a, T> Freeze for Iter<'a, T>

§

impl<'a, T> RefUnwindSafe for Iter<'a, T>
where T: RefUnwindSafe,

§

impl<'a, T> Unpin for Iter<'a, T>

§

impl<'a, T> UnwindSafe for Iter<'a, T>
where T: RefUnwindSafe,

Blanket Implementations§

source§

impl<T> Any for T
where diff --git a/current/hyper/header/struct.IterMut.html b/current/hyper/header/struct.IterMut.html index 9b5b5a2b7ed..15753273a7b 100644 --- a/current/hyper/header/struct.IterMut.html +++ b/current/hyper/header/struct.IterMut.html @@ -1,8 +1,8 @@ -IterMut in hyper::header - Rust
hyper::header

Struct IterMut

source
pub struct IterMut<'a, T> { /* private fields */ }
Expand description

HeaderMap mutable entry iterator

+IterMut in hyper::header - Rust
hyper::header

Struct IterMut

source
pub struct IterMut<'a, T> { /* private fields */ }
Expand description

HeaderMap mutable entry iterator

Yields (&HeaderName, &mut value) tuples. The same header name may be yielded more than once if it has more than one associated value.

-

Trait Implementations§

source§

impl<'a, T> Debug for IterMut<'a, T>
where - T: Debug,

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl<'a, T> Iterator for IterMut<'a, T>

source§

type Item = (&'a HeaderName, &'a mut T)

The type of the elements being iterated over.
source§

fn next(&mut self) -> Option<<IterMut<'a, T> as Iterator>::Item>

Advances the iterator and returns the next value. Read more
source§

fn size_hint(&self) -> (usize, Option<usize>)

Returns the bounds on the remaining length of the iterator. Read more
source§

fn next_chunk<const N: usize>( +

Trait Implementations§

source§

impl<'a, T> Debug for IterMut<'a, T>
where + T: Debug,

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl<'a, T> Iterator for IterMut<'a, T>

source§

type Item = (&'a HeaderName, &'a mut T)

The type of the elements being iterated over.
source§

fn next(&mut self) -> Option<<IterMut<'a, T> as Iterator>::Item>

Advances the iterator and returns the next value. Read more
source§

fn size_hint(&self) -> (usize, Option<usize>)

Returns the bounds on the remaining length of the iterator. Read more
source§

fn next_chunk<const N: usize>( &mut self, ) -> Result<[Self::Item; N], IntoIter<Self::Item, N>>
where Self: Sized,

🔬This is a nightly-only experimental API. (iter_next_chunk)
Advances the iterator and returns an array containing the next N values. Read more
1.0.0 · source§

fn count(self) -> usize
where @@ -177,8 +177,8 @@ Self: Sized, F: FnMut(Self::Item) -> K, K: PartialOrd,

Checks if the elements of this iterator are sorted using the given key extraction -function. Read more
source§

impl<'a, T> FusedIterator for IterMut<'a, T>

source§

impl<'a, T> Send for IterMut<'a, T>
where - T: Send,

source§

impl<'a, T> Sync for IterMut<'a, T>
where +function. Read more

source§

impl<'a, T> FusedIterator for IterMut<'a, T>

source§

impl<'a, T> Send for IterMut<'a, T>
where + T: Send,

source§

impl<'a, T> Sync for IterMut<'a, T>
where T: Sync,

Auto Trait Implementations§

§

impl<'a, T> Freeze for IterMut<'a, T>

§

impl<'a, T> RefUnwindSafe for IterMut<'a, T>
where T: RefUnwindSafe,

§

impl<'a, T> Unpin for IterMut<'a, T>

§

impl<'a, T> !UnwindSafe for IterMut<'a, T>

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where diff --git a/current/hyper/header/struct.Keys.html b/current/hyper/header/struct.Keys.html index 5a2c406b054..077b243e753 100644 --- a/current/hyper/header/struct.Keys.html +++ b/current/hyper/header/struct.Keys.html @@ -1,8 +1,8 @@ -Keys in hyper::header - Rust
hyper::header

Struct Keys

source
pub struct Keys<'a, T> { /* private fields */ }
Expand description

An iterator over HeaderMap keys.

+Keys in hyper::header - Rust
hyper::header

Struct Keys

source
pub struct Keys<'a, T> { /* private fields */ }
Expand description

An iterator over HeaderMap keys.

Each header name is yielded only once, even if it has more than one associated value.

-

Trait Implementations§

source§

impl<'a, T> Debug for Keys<'a, T>
where - T: Debug,

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl<'a, T> ExactSizeIterator for Keys<'a, T>

1.0.0 · source§

fn len(&self) -> usize

Returns the exact remaining length of the iterator. Read more
source§

fn is_empty(&self) -> bool

🔬This is a nightly-only experimental API. (exact_size_is_empty)
Returns true if the iterator is empty. Read more
source§

impl<'a, T> Iterator for Keys<'a, T>

source§

type Item = &'a HeaderName

The type of the elements being iterated over.
source§

fn next(&mut self) -> Option<<Keys<'a, T> as Iterator>::Item>

Advances the iterator and returns the next value. Read more
source§

fn size_hint(&self) -> (usize, Option<usize>)

Returns the bounds on the remaining length of the iterator. Read more
source§

fn next_chunk<const N: usize>( +

Trait Implementations§

source§

impl<'a, T> Debug for Keys<'a, T>
where + T: Debug,

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl<'a, T> ExactSizeIterator for Keys<'a, T>

1.0.0 · source§

fn len(&self) -> usize

Returns the exact remaining length of the iterator. Read more
source§

fn is_empty(&self) -> bool

🔬This is a nightly-only experimental API. (exact_size_is_empty)
Returns true if the iterator is empty. Read more
source§

impl<'a, T> Iterator for Keys<'a, T>

source§

type Item = &'a HeaderName

The type of the elements being iterated over.
source§

fn next(&mut self) -> Option<<Keys<'a, T> as Iterator>::Item>

Advances the iterator and returns the next value. Read more
source§

fn size_hint(&self) -> (usize, Option<usize>)

Returns the bounds on the remaining length of the iterator. Read more
source§

fn next_chunk<const N: usize>( &mut self, ) -> Result<[Self::Item; N], IntoIter<Self::Item, N>>
where Self: Sized,

🔬This is a nightly-only experimental API. (iter_next_chunk)
Advances the iterator and returns an array containing the next N values. Read more
1.0.0 · source§

fn count(self) -> usize
where @@ -177,7 +177,7 @@ Self: Sized, F: FnMut(Self::Item) -> K, K: PartialOrd,

Checks if the elements of this iterator are sorted using the given key extraction -function. Read more
source§

impl<'a, T> FusedIterator for Keys<'a, T>

Auto Trait Implementations§

§

impl<'a, T> Freeze for Keys<'a, T>

§

impl<'a, T> RefUnwindSafe for Keys<'a, T>
where +function. Read more

source§

impl<'a, T> FusedIterator for Keys<'a, T>

Auto Trait Implementations§

§

impl<'a, T> Freeze for Keys<'a, T>

§

impl<'a, T> RefUnwindSafe for Keys<'a, T>
where T: RefUnwindSafe,

§

impl<'a, T> Send for Keys<'a, T>
where T: Sync,

§

impl<'a, T> Sync for Keys<'a, T>
where T: Sync,

§

impl<'a, T> Unpin for Keys<'a, T>

§

impl<'a, T> UnwindSafe for Keys<'a, T>
where diff --git a/current/hyper/header/struct.MaxSizeReached.html b/current/hyper/header/struct.MaxSizeReached.html index fb6e7b41a52..a280ac0a3ab 100644 --- a/current/hyper/header/struct.MaxSizeReached.html +++ b/current/hyper/header/struct.MaxSizeReached.html @@ -1,5 +1,5 @@ -MaxSizeReached in hyper::header - Rust
hyper::header

Struct MaxSizeReached

source
pub struct MaxSizeReached { /* private fields */ }
Expand description

Error returned when max capacity of HeaderMap is exceeded

-

Trait Implementations§

source§

impl Debug for MaxSizeReached

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl Display for MaxSizeReached

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl Error for MaxSizeReached

1.30.0 · source§

fn source(&self) -> Option<&(dyn Error + 'static)>

Returns the lower-level source of this error, if any. Read more
1.0.0 · source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where +MaxSizeReached in hyper::header - Rust
hyper::header

Struct MaxSizeReached

source
pub struct MaxSizeReached { /* private fields */ }
Expand description

Error returned when max capacity of HeaderMap is exceeded

+

Trait Implementations§

source§

impl Debug for MaxSizeReached

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl Display for MaxSizeReached

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl Error for MaxSizeReached

1.30.0 · source§

fn source(&self) -> Option<&(dyn Error + 'static)>

Returns the lower-level source of this error, if any. Read more
1.0.0 · source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

diff --git a/current/hyper/header/struct.OccupiedEntry.html b/current/hyper/header/struct.OccupiedEntry.html index 0fc51ed9c2b..7a98bd93e03 100644 --- a/current/hyper/header/struct.OccupiedEntry.html +++ b/current/hyper/header/struct.OccupiedEntry.html @@ -1,6 +1,6 @@ -OccupiedEntry in hyper::header - Rust
hyper::header

Struct OccupiedEntry

source
pub struct OccupiedEntry<'a, T> { /* private fields */ }
Expand description

A view into a single occupied location in a HeaderMap.

+OccupiedEntry in hyper::header - Rust
hyper::header

Struct OccupiedEntry

source
pub struct OccupiedEntry<'a, T> { /* private fields */ }
Expand description

A view into a single occupied location in a HeaderMap.

This struct is returned as part of the Entry enum.

-

Implementations§

source§

impl<'a, T> OccupiedEntry<'a, T>

source

pub fn key(&self) -> &HeaderName

Returns a reference to the entry’s key.

+

Implementations§

source§

impl<'a, T> OccupiedEntry<'a, T>

source

pub fn key(&self) -> &HeaderName

Returns a reference to the entry’s key.

§Examples
let mut map = HeaderMap::new();
 map.insert(HOST, "world".parse().unwrap());
@@ -8,7 +8,7 @@ 
§Examples
if let Entry::Occupied(e) = map.entry("host") { assert_eq!("host", e.key()); }
-
source

pub fn get(&self) -> &T

Get a reference to the first value in the entry.

+
source

pub fn get(&self) -> &T

Get a reference to the first value in the entry.

Values are stored in insertion order.

§Panics

get panics if there are no values associated with the entry.

@@ -23,7 +23,7 @@
§Examples
assert_eq!(e.get(), &"hello.world"); }
-
source

pub fn get_mut(&mut self) -> &mut T

Get a mutable reference to the first value in the entry.

+
source

pub fn get_mut(&mut self) -> &mut T

Get a mutable reference to the first value in the entry.

Values are stored in insertion order.

§Panics

get_mut panics if there are no values associated with the entry.

@@ -35,7 +35,7 @@
§Examples
e.get_mut().push_str("-2"); assert_eq!(e.get(), &"hello.world-2"); }
-
source

pub fn into_mut(self) -> &'a mut T

Converts the OccupiedEntry into a mutable reference to the first +

source

pub fn into_mut(self) -> &'a mut T

Converts the OccupiedEntry into a mutable reference to the first value.

The lifetime of the returned reference is bound to the original map.

§Panics
@@ -50,7 +50,7 @@
§Examples
} assert_eq!("hello.world-2", map["host"]);
-
source

pub fn insert(&mut self, value: T) -> T

Sets the value of the entry.

+
source

pub fn insert(&mut self, value: T) -> T

Sets the value of the entry.

All previous values associated with the entry are removed and the first one is returned. See insert_mult for an API that returns all values.

§Examples
@@ -63,7 +63,7 @@
§Examples
} assert_eq!("earth", map["host"]);
-
source

pub fn insert_mult(&mut self, value: T) -> ValueDrain<'_, T>

Sets the value of the entry.

+
source

pub fn insert_mult(&mut self, value: T) -> ValueDrain<'_, T>

Sets the value of the entry.

This function does the same as insert except it returns an iterator that yields all values previously associated with the key.

§Examples
@@ -79,7 +79,7 @@
§Examples
} assert_eq!("earth", map["host"]);
-
source

pub fn append(&mut self, value: T)

Insert the value into the entry.

+
source

pub fn append(&mut self, value: T)

Insert the value into the entry.

The new value is appended to the end of the entry’s value list. All previous values associated with the entry are retained.

§Examples
@@ -94,7 +94,7 @@
§Examples
let mut i = values.iter(); assert_eq!("world", *i.next().unwrap()); assert_eq!("earth", *i.next().unwrap());
-

source

pub fn remove(self) -> T

Remove the entry from the map.

+
source

pub fn remove(self) -> T

Remove the entry from the map.

All values associated with the entry are removed and the first one is returned. See remove_entry_mult for an API that returns all values.

§Examples
@@ -107,7 +107,7 @@
§Examples
} assert!(!map.contains_key("host"));
-

source

pub fn remove_entry(self) -> (HeaderName, T)

Remove the entry from the map.

+
source

pub fn remove_entry(self) -> (HeaderName, T)

Remove the entry from the map.

The key and all values associated with the entry are removed and the first one is returned. See remove_entry_mult for an API that returns all values.

@@ -122,10 +122,10 @@
§Examples
} assert!(!map.contains_key("host"));
-
source

pub fn remove_entry_mult(self) -> (HeaderName, ValueDrain<'a, T>)

Remove the entry from the map.

+
source

pub fn remove_entry_mult(self) -> (HeaderName, ValueDrain<'a, T>)

Remove the entry from the map.

The key and all values associated with the entry are removed and returned.

-
source

pub fn iter(&self) -> ValueIter<'_, T>

Returns an iterator visiting all values associated with the entry.

+
source

pub fn iter(&self) -> ValueIter<'_, T>

Returns an iterator visiting all values associated with the entry.

Values are iterated in insertion order.

§Examples
let mut map = HeaderMap::new();
@@ -138,7 +138,7 @@ 
§Examples
assert_eq!(&"earth", iter.next().unwrap()); assert!(iter.next().is_none()); }
-
source

pub fn iter_mut(&mut self) -> ValueIterMut<'_, T>

Returns an iterator mutably visiting all values associated with the +

source

pub fn iter_mut(&mut self) -> ValueIterMut<'_, T>

Returns an iterator mutably visiting all values associated with the entry.

Values are iterated in insertion order.

§Examples
@@ -156,10 +156,10 @@
§Exampleslet mut i = values.iter(); assert_eq!(&"world-boop", i.next().unwrap()); assert_eq!(&"earth-boop", i.next().unwrap());
-

Trait Implementations§

source§

impl<'a, T> Debug for OccupiedEntry<'a, T>
where - T: Debug,

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl<'a, 'b, T> IntoIterator for &'b OccupiedEntry<'a, T>
where - 'b: 'a,

source§

type Item = &'a T

The type of the elements being iterated over.
source§

type IntoIter = ValueIter<'a, T>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> ValueIter<'a, T>

Creates an iterator from a value. Read more
source§

impl<'a, 'b, T> IntoIterator for &'b mut OccupiedEntry<'a, T>
where - 'b: 'a,

source§

type Item = &'a mut T

The type of the elements being iterated over.
source§

type IntoIter = ValueIterMut<'a, T>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> ValueIterMut<'a, T>

Creates an iterator from a value. Read more
source§

impl<'a, T> IntoIterator for OccupiedEntry<'a, T>

source§

type Item = &'a mut T

The type of the elements being iterated over.
source§

type IntoIter = ValueIterMut<'a, T>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> ValueIterMut<'a, T>

Creates an iterator from a value. Read more

Auto Trait Implementations§

§

impl<'a, T> Freeze for OccupiedEntry<'a, T>

§

impl<'a, T> RefUnwindSafe for OccupiedEntry<'a, T>
where +

Trait Implementations§

source§

impl<'a, T> Debug for OccupiedEntry<'a, T>
where + T: Debug,

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl<'a, 'b, T> IntoIterator for &'b OccupiedEntry<'a, T>
where + 'b: 'a,

source§

type Item = &'a T

The type of the elements being iterated over.
source§

type IntoIter = ValueIter<'a, T>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> ValueIter<'a, T>

Creates an iterator from a value. Read more
source§

impl<'a, 'b, T> IntoIterator for &'b mut OccupiedEntry<'a, T>
where + 'b: 'a,

source§

type Item = &'a mut T

The type of the elements being iterated over.
source§

type IntoIter = ValueIterMut<'a, T>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> ValueIterMut<'a, T>

Creates an iterator from a value. Read more
source§

impl<'a, T> IntoIterator for OccupiedEntry<'a, T>

source§

type Item = &'a mut T

The type of the elements being iterated over.
source§

type IntoIter = ValueIterMut<'a, T>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> ValueIterMut<'a, T>

Creates an iterator from a value. Read more

Auto Trait Implementations§

§

impl<'a, T> Freeze for OccupiedEntry<'a, T>

§

impl<'a, T> RefUnwindSafe for OccupiedEntry<'a, T>
where T: RefUnwindSafe,

§

impl<'a, T> Send for OccupiedEntry<'a, T>
where T: Send,

§

impl<'a, T> Sync for OccupiedEntry<'a, T>
where T: Sync,

§

impl<'a, T> Unpin for OccupiedEntry<'a, T>

§

impl<'a, T> !UnwindSafe for OccupiedEntry<'a, T>

Blanket Implementations§

source§

impl<T> Any for T
where diff --git a/current/hyper/header/struct.ToStrError.html b/current/hyper/header/struct.ToStrError.html index fc03f948f7f..97629aee293 100644 --- a/current/hyper/header/struct.ToStrError.html +++ b/current/hyper/header/struct.ToStrError.html @@ -1,7 +1,7 @@ -ToStrError in hyper::header - Rust
hyper::header

Struct ToStrError

source
pub struct ToStrError { /* private fields */ }
Expand description

A possible error when converting a HeaderValue to a string representation.

+ToStrError in hyper::header - Rust
hyper::header

Struct ToStrError

source
pub struct ToStrError { /* private fields */ }
Expand description

A possible error when converting a HeaderValue to a string representation.

Header field values may contain opaque bytes, in which case it is not possible to represent the value as a string.

-

Trait Implementations§

source§

impl Debug for ToStrError

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl Display for ToStrError

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl Error for ToStrError

1.30.0 · source§

fn source(&self) -> Option<&(dyn Error + 'static)>

Returns the lower-level source of this error, if any. Read more
1.0.0 · source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where +

Trait Implementations§

source§

impl Debug for ToStrError

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl Display for ToStrError

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl Error for ToStrError

1.30.0 · source§

fn source(&self) -> Option<&(dyn Error + 'static)>

Returns the lower-level source of this error, if any. Read more
1.0.0 · source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

diff --git a/current/hyper/header/struct.VacantEntry.html b/current/hyper/header/struct.VacantEntry.html index a888bb74c0e..1937aa9e445 100644 --- a/current/hyper/header/struct.VacantEntry.html +++ b/current/hyper/header/struct.VacantEntry.html @@ -1,18 +1,18 @@ -VacantEntry in hyper::header - Rust
hyper::header

Struct VacantEntry

source
pub struct VacantEntry<'a, T> { /* private fields */ }
Expand description

A view into a single empty location in a HeaderMap.

+VacantEntry in hyper::header - Rust
hyper::header

Struct VacantEntry

source
pub struct VacantEntry<'a, T> { /* private fields */ }
Expand description

A view into a single empty location in a HeaderMap.

This struct is returned as part of the Entry enum.

-

Implementations§

source§

impl<'a, T> VacantEntry<'a, T>

source

pub fn key(&self) -> &HeaderName

Returns a reference to the entry’s key

+

Implementations§

source§

impl<'a, T> VacantEntry<'a, T>

source

pub fn key(&self) -> &HeaderName

Returns a reference to the entry’s key

§Examples
let mut map = HeaderMap::new();
 
 assert_eq!(map.entry("x-hello").key().as_str(), "x-hello");
-
source

pub fn into_key(self) -> HeaderName

Take ownership of the key

+
source

pub fn into_key(self) -> HeaderName

Take ownership of the key

§Examples
let mut map = HeaderMap::new();
 
 if let Entry::Vacant(v) = map.entry("x-hello") {
     assert_eq!(v.into_key().as_str(), "x-hello");
 }
-
source

pub fn insert(self, value: T) -> &'a mut T

Insert the value into the entry.

+
source

pub fn insert(self, value: T) -> &'a mut T

Insert the value into the entry.

The value will be associated with this entry’s key. A mutable reference to the inserted value will be returned.

§Examples
@@ -23,7 +23,7 @@
§Examples
} assert_eq!(map["x-hello"], "world");
-
source

pub fn try_insert(self, value: T) -> Result<&'a mut T, MaxSizeReached>

Insert the value into the entry.

+
source

pub fn try_insert(self, value: T) -> Result<&'a mut T, MaxSizeReached>

Insert the value into the entry.

The value will be associated with this entry’s key. A mutable reference to the inserted value will be returned.

§Examples
@@ -34,7 +34,7 @@
§Examples
} assert_eq!(map["x-hello"], "world");
-
source

pub fn insert_entry(self, value: T) -> OccupiedEntry<'a, T>

Insert the value into the entry.

+
source

pub fn insert_entry(self, value: T) -> OccupiedEntry<'a, T>

Insert the value into the entry.

The value will be associated with this entry’s key. The new OccupiedEntry is returned, allowing for further manipulation.

§Examples
@@ -46,7 +46,7 @@
§Examples
} assert_eq!(map["x-hello"], "world2");
-
source

pub fn try_insert_entry( +

source

pub fn try_insert_entry( self, value: T, ) -> Result<OccupiedEntry<'a, T>, MaxSizeReached>

Insert the value into the entry.

@@ -61,8 +61,8 @@
§Examples
} assert_eq!(map["x-hello"], "world2");
-

Trait Implementations§

source§

impl<'a, T> Debug for VacantEntry<'a, T>
where - T: Debug,

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<'a, T> !Freeze for VacantEntry<'a, T>

§

impl<'a, T> RefUnwindSafe for VacantEntry<'a, T>
where +

Trait Implementations§

source§

impl<'a, T> Debug for VacantEntry<'a, T>
where + T: Debug,

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<'a, T> !Freeze for VacantEntry<'a, T>

§

impl<'a, T> RefUnwindSafe for VacantEntry<'a, T>
where T: RefUnwindSafe,

§

impl<'a, T> Send for VacantEntry<'a, T>
where T: Send,

§

impl<'a, T> Sync for VacantEntry<'a, T>
where T: Sync,

§

impl<'a, T> Unpin for VacantEntry<'a, T>

§

impl<'a, T> !UnwindSafe for VacantEntry<'a, T>

Blanket Implementations§

source§

impl<T> Any for T
where diff --git a/current/hyper/header/struct.ValueDrain.html b/current/hyper/header/struct.ValueDrain.html index 64c0fc4f0fa..630d96e4b6e 100644 --- a/current/hyper/header/struct.ValueDrain.html +++ b/current/hyper/header/struct.ValueDrain.html @@ -1,6 +1,6 @@ -ValueDrain in hyper::header - Rust
hyper::header

Struct ValueDrain

source
pub struct ValueDrain<'a, T> { /* private fields */ }
Expand description

An drain iterator of all values associated with a single header name.

-

Trait Implementations§

source§

impl<'a, T> Debug for ValueDrain<'a, T>
where - T: Debug,

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl<'a, T> Drop for ValueDrain<'a, T>

source§

fn drop(&mut self)

Executes the destructor for this type. Read more
source§

impl<'a, T> Iterator for ValueDrain<'a, T>

source§

type Item = T

The type of the elements being iterated over.
source§

fn next(&mut self) -> Option<T>

Advances the iterator and returns the next value. Read more
source§

fn size_hint(&self) -> (usize, Option<usize>)

Returns the bounds on the remaining length of the iterator. Read more
source§

fn next_chunk<const N: usize>( +ValueDrain in hyper::header - Rust
hyper::header

Struct ValueDrain

source
pub struct ValueDrain<'a, T> { /* private fields */ }
Expand description

An drain iterator of all values associated with a single header name.

+

Trait Implementations§

source§

impl<'a, T> Debug for ValueDrain<'a, T>
where + T: Debug,

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl<'a, T> Drop for ValueDrain<'a, T>

source§

fn drop(&mut self)

Executes the destructor for this type. Read more
source§

impl<'a, T> Iterator for ValueDrain<'a, T>

source§

type Item = T

The type of the elements being iterated over.
source§

fn next(&mut self) -> Option<T>

Advances the iterator and returns the next value. Read more
source§

fn size_hint(&self) -> (usize, Option<usize>)

Returns the bounds on the remaining length of the iterator. Read more
source§

fn next_chunk<const N: usize>( &mut self, ) -> Result<[Self::Item; N], IntoIter<Self::Item, N>>
where Self: Sized,

🔬This is a nightly-only experimental API. (iter_next_chunk)
Advances the iterator and returns an array containing the next N values. Read more
1.0.0 · source§

fn count(self) -> usize
where @@ -175,8 +175,8 @@ Self: Sized, F: FnMut(Self::Item) -> K, K: PartialOrd,

Checks if the elements of this iterator are sorted using the given key extraction -function. Read more
source§

impl<'a, T> FusedIterator for ValueDrain<'a, T>

source§

impl<'a, T> Send for ValueDrain<'a, T>
where - T: Send,

source§

impl<'a, T> Sync for ValueDrain<'a, T>
where +function. Read more

source§

impl<'a, T> FusedIterator for ValueDrain<'a, T>

source§

impl<'a, T> Send for ValueDrain<'a, T>
where + T: Send,

source§

impl<'a, T> Sync for ValueDrain<'a, T>
where T: Sync,

Auto Trait Implementations§

§

impl<'a, T> Freeze for ValueDrain<'a, T>
where T: Freeze,

§

impl<'a, T> RefUnwindSafe for ValueDrain<'a, T>
where T: RefUnwindSafe,

§

impl<'a, T> Unpin for ValueDrain<'a, T>
where diff --git a/current/hyper/header/struct.ValueIter.html b/current/hyper/header/struct.ValueIter.html index 542910a4666..5ce1f7ffc1b 100644 --- a/current/hyper/header/struct.ValueIter.html +++ b/current/hyper/header/struct.ValueIter.html @@ -1,7 +1,7 @@ -ValueIter in hyper::header - Rust
hyper::header

Struct ValueIter

source
pub struct ValueIter<'a, T> { /* private fields */ }
Expand description

An iterator of all values associated with a single header name.

-

Trait Implementations§

source§

impl<'a, T> Debug for ValueIter<'a, T>
where - T: Debug,

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl<'a, T> DoubleEndedIterator for ValueIter<'a, T>
where - T: 'a,

source§

fn next_back(&mut self) -> Option<<ValueIter<'a, T> as Iterator>::Item>

Removes and returns an element from the end of the iterator. Read more
source§

fn advance_back_by(&mut self, n: usize) -> Result<(), NonZero<usize>>

🔬This is a nightly-only experimental API. (iter_advance_by)
Advances the iterator from the back by n elements. Read more
1.37.0 · source§

fn nth_back(&mut self, n: usize) -> Option<Self::Item>

Returns the nth element from the end of the iterator. Read more
1.27.0 · source§

fn try_rfold<B, F, R>(&mut self, init: B, f: F) -> R
where +ValueIter in hyper::header - Rust
hyper::header

Struct ValueIter

source
pub struct ValueIter<'a, T> { /* private fields */ }
Expand description

An iterator of all values associated with a single header name.

+

Trait Implementations§

source§

impl<'a, T> Debug for ValueIter<'a, T>
where + T: Debug,

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl<'a, T> DoubleEndedIterator for ValueIter<'a, T>
where + T: 'a,

source§

fn next_back(&mut self) -> Option<<ValueIter<'a, T> as Iterator>::Item>

Removes and returns an element from the end of the iterator. Read more
source§

fn advance_back_by(&mut self, n: usize) -> Result<(), NonZero<usize>>

🔬This is a nightly-only experimental API. (iter_advance_by)
Advances the iterator from the back by n elements. Read more
1.37.0 · source§

fn nth_back(&mut self, n: usize) -> Option<Self::Item>

Returns the nth element from the end of the iterator. Read more
1.27.0 · source§

fn try_rfold<B, F, R>(&mut self, init: B, f: F) -> R
where Self: Sized, F: FnMut(B, Self::Item) -> R, R: Try<Output = B>,

This is the reverse version of Iterator::try_fold(): it takes @@ -10,8 +10,8 @@ F: FnMut(B, Self::Item) -> B,

An iterator method that reduces the iterator’s elements to a single, final value, starting from the back. Read more
1.27.0 · source§

fn rfind<P>(&mut self, predicate: P) -> Option<Self::Item>
where Self: Sized, - P: FnMut(&Self::Item) -> bool,

Searches for an element of an iterator from the back that satisfies a predicate. Read more
source§

impl<'a, T> Iterator for ValueIter<'a, T>
where - T: 'a,

source§

type Item = &'a T

The type of the elements being iterated over.
source§

fn next(&mut self) -> Option<<ValueIter<'a, T> as Iterator>::Item>

Advances the iterator and returns the next value. Read more
source§

fn size_hint(&self) -> (usize, Option<usize>)

Returns the bounds on the remaining length of the iterator. Read more
source§

fn next_chunk<const N: usize>( + P: FnMut(&Self::Item) -> bool,

Searches for an element of an iterator from the back that satisfies a predicate. Read more
source§

impl<'a, T> Iterator for ValueIter<'a, T>
where + T: 'a,

source§

type Item = &'a T

The type of the elements being iterated over.
source§

fn next(&mut self) -> Option<<ValueIter<'a, T> as Iterator>::Item>

Advances the iterator and returns the next value. Read more
source§

fn size_hint(&self) -> (usize, Option<usize>)

Returns the bounds on the remaining length of the iterator. Read more
source§

fn next_chunk<const N: usize>( &mut self, ) -> Result<[Self::Item; N], IntoIter<Self::Item, N>>
where Self: Sized,

🔬This is a nightly-only experimental API. (iter_next_chunk)
Advances the iterator and returns an array containing the next N values. Read more
1.0.0 · source§

fn count(self) -> usize
where @@ -192,7 +192,7 @@ Self: Sized, F: FnMut(Self::Item) -> K, K: PartialOrd,

Checks if the elements of this iterator are sorted using the given key extraction -function. Read more
source§

impl<'a, T> FusedIterator for ValueIter<'a, T>

Auto Trait Implementations§

§

impl<'a, T> Freeze for ValueIter<'a, T>

§

impl<'a, T> RefUnwindSafe for ValueIter<'a, T>
where +function. Read more

source§

impl<'a, T> FusedIterator for ValueIter<'a, T>

Auto Trait Implementations§

§

impl<'a, T> Freeze for ValueIter<'a, T>

§

impl<'a, T> RefUnwindSafe for ValueIter<'a, T>
where T: RefUnwindSafe,

§

impl<'a, T> Send for ValueIter<'a, T>
where T: Sync,

§

impl<'a, T> Sync for ValueIter<'a, T>
where T: Sync,

§

impl<'a, T> Unpin for ValueIter<'a, T>

§

impl<'a, T> UnwindSafe for ValueIter<'a, T>
where diff --git a/current/hyper/header/struct.ValueIterMut.html b/current/hyper/header/struct.ValueIterMut.html index b814cff52dc..dc3b23b9de8 100644 --- a/current/hyper/header/struct.ValueIterMut.html +++ b/current/hyper/header/struct.ValueIterMut.html @@ -1,7 +1,7 @@ -ValueIterMut in hyper::header - Rust
hyper::header

Struct ValueIterMut

source
pub struct ValueIterMut<'a, T> { /* private fields */ }
Expand description

A mutable iterator of all values associated with a single header name.

-

Trait Implementations§

source§

impl<'a, T> Debug for ValueIterMut<'a, T>
where - T: Debug,

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl<'a, T> DoubleEndedIterator for ValueIterMut<'a, T>
where - T: 'a,

source§

fn next_back(&mut self) -> Option<<ValueIterMut<'a, T> as Iterator>::Item>

Removes and returns an element from the end of the iterator. Read more
source§

fn advance_back_by(&mut self, n: usize) -> Result<(), NonZero<usize>>

🔬This is a nightly-only experimental API. (iter_advance_by)
Advances the iterator from the back by n elements. Read more
1.37.0 · source§

fn nth_back(&mut self, n: usize) -> Option<Self::Item>

Returns the nth element from the end of the iterator. Read more
1.27.0 · source§

fn try_rfold<B, F, R>(&mut self, init: B, f: F) -> R
where +ValueIterMut in hyper::header - Rust
hyper::header

Struct ValueIterMut

source
pub struct ValueIterMut<'a, T> { /* private fields */ }
Expand description

A mutable iterator of all values associated with a single header name.

+

Trait Implementations§

source§

impl<'a, T> Debug for ValueIterMut<'a, T>
where + T: Debug,

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl<'a, T> DoubleEndedIterator for ValueIterMut<'a, T>
where + T: 'a,

source§

fn next_back(&mut self) -> Option<<ValueIterMut<'a, T> as Iterator>::Item>

Removes and returns an element from the end of the iterator. Read more
source§

fn advance_back_by(&mut self, n: usize) -> Result<(), NonZero<usize>>

🔬This is a nightly-only experimental API. (iter_advance_by)
Advances the iterator from the back by n elements. Read more
1.37.0 · source§

fn nth_back(&mut self, n: usize) -> Option<Self::Item>

Returns the nth element from the end of the iterator. Read more
1.27.0 · source§

fn try_rfold<B, F, R>(&mut self, init: B, f: F) -> R
where Self: Sized, F: FnMut(B, Self::Item) -> R, R: Try<Output = B>,

This is the reverse version of Iterator::try_fold(): it takes @@ -10,8 +10,8 @@ F: FnMut(B, Self::Item) -> B,

An iterator method that reduces the iterator’s elements to a single, final value, starting from the back. Read more
1.27.0 · source§

fn rfind<P>(&mut self, predicate: P) -> Option<Self::Item>
where Self: Sized, - P: FnMut(&Self::Item) -> bool,

Searches for an element of an iterator from the back that satisfies a predicate. Read more
source§

impl<'a, T> Iterator for ValueIterMut<'a, T>
where - T: 'a,

source§

type Item = &'a mut T

The type of the elements being iterated over.
source§

fn next(&mut self) -> Option<<ValueIterMut<'a, T> as Iterator>::Item>

Advances the iterator and returns the next value. Read more
source§

fn next_chunk<const N: usize>( + P: FnMut(&Self::Item) -> bool,

Searches for an element of an iterator from the back that satisfies a predicate. Read more
source§

impl<'a, T> Iterator for ValueIterMut<'a, T>
where + T: 'a,

source§

type Item = &'a mut T

The type of the elements being iterated over.
source§

fn next(&mut self) -> Option<<ValueIterMut<'a, T> as Iterator>::Item>

Advances the iterator and returns the next value. Read more
source§

fn next_chunk<const N: usize>( &mut self, ) -> Result<[Self::Item; N], IntoIter<Self::Item, N>>
where Self: Sized,

🔬This is a nightly-only experimental API. (iter_next_chunk)
Advances the iterator and returns an array containing the next N values. Read more
1.0.0 · source§

fn size_hint(&self) -> (usize, Option<usize>)

Returns the bounds on the remaining length of the iterator. Read more
1.0.0 · source§

fn count(self) -> usize
where @@ -192,8 +192,8 @@ Self: Sized, F: FnMut(Self::Item) -> K, K: PartialOrd,

Checks if the elements of this iterator are sorted using the given key extraction -function. Read more
source§

impl<'a, T> FusedIterator for ValueIterMut<'a, T>

source§

impl<'a, T> Send for ValueIterMut<'a, T>
where - T: Send,

source§

impl<'a, T> Sync for ValueIterMut<'a, T>
where +function. Read more

source§

impl<'a, T> FusedIterator for ValueIterMut<'a, T>

source§

impl<'a, T> Send for ValueIterMut<'a, T>
where + T: Send,

source§

impl<'a, T> Sync for ValueIterMut<'a, T>
where T: Sync,

Auto Trait Implementations§

§

impl<'a, T> Freeze for ValueIterMut<'a, T>

§

impl<'a, T> RefUnwindSafe for ValueIterMut<'a, T>
where T: RefUnwindSafe,

§

impl<'a, T> Unpin for ValueIterMut<'a, T>

§

impl<'a, T> !UnwindSafe for ValueIterMut<'a, T>

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where diff --git a/current/hyper/header/struct.Values.html b/current/hyper/header/struct.Values.html index 897521d497f..5ded0a9e77b 100644 --- a/current/hyper/header/struct.Values.html +++ b/current/hyper/header/struct.Values.html @@ -1,7 +1,7 @@ -Values in hyper::header - Rust
hyper::header

Struct Values

source
pub struct Values<'a, T> { /* private fields */ }
Expand description

HeaderMap value iterator.

+Values in hyper::header - Rust
hyper::header

Struct Values

source
pub struct Values<'a, T> { /* private fields */ }
Expand description

HeaderMap value iterator.

Each value contained in the HeaderMap will be yielded.

-

Trait Implementations§

source§

impl<'a, T> Debug for Values<'a, T>
where - T: Debug,

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl<'a, T> Iterator for Values<'a, T>

source§

type Item = &'a T

The type of the elements being iterated over.
source§

fn next(&mut self) -> Option<<Values<'a, T> as Iterator>::Item>

Advances the iterator and returns the next value. Read more
source§

fn size_hint(&self) -> (usize, Option<usize>)

Returns the bounds on the remaining length of the iterator. Read more
source§

fn next_chunk<const N: usize>( +

Trait Implementations§

source§

impl<'a, T> Debug for Values<'a, T>
where + T: Debug,

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl<'a, T> Iterator for Values<'a, T>

source§

type Item = &'a T

The type of the elements being iterated over.
source§

fn next(&mut self) -> Option<<Values<'a, T> as Iterator>::Item>

Advances the iterator and returns the next value. Read more
source§

fn size_hint(&self) -> (usize, Option<usize>)

Returns the bounds on the remaining length of the iterator. Read more
source§

fn next_chunk<const N: usize>( &mut self, ) -> Result<[Self::Item; N], IntoIter<Self::Item, N>>
where Self: Sized,

🔬This is a nightly-only experimental API. (iter_next_chunk)
Advances the iterator and returns an array containing the next N values. Read more
1.0.0 · source§

fn count(self) -> usize
where @@ -176,7 +176,7 @@ Self: Sized, F: FnMut(Self::Item) -> K, K: PartialOrd,

Checks if the elements of this iterator are sorted using the given key extraction -function. Read more
source§

impl<'a, T> FusedIterator for Values<'a, T>

Auto Trait Implementations§

§

impl<'a, T> Freeze for Values<'a, T>

§

impl<'a, T> RefUnwindSafe for Values<'a, T>
where +function. Read more

source§

impl<'a, T> FusedIterator for Values<'a, T>

Auto Trait Implementations§

§

impl<'a, T> Freeze for Values<'a, T>

§

impl<'a, T> RefUnwindSafe for Values<'a, T>
where T: RefUnwindSafe,

§

impl<'a, T> Send for Values<'a, T>
where T: Sync,

§

impl<'a, T> Sync for Values<'a, T>
where T: Sync,

§

impl<'a, T> Unpin for Values<'a, T>

§

impl<'a, T> UnwindSafe for Values<'a, T>
where diff --git a/current/hyper/header/struct.ValuesMut.html b/current/hyper/header/struct.ValuesMut.html index 6747e532324..0fe6c74b441 100644 --- a/current/hyper/header/struct.ValuesMut.html +++ b/current/hyper/header/struct.ValuesMut.html @@ -1,6 +1,6 @@ -ValuesMut in hyper::header - Rust
hyper::header

Struct ValuesMut

source
pub struct ValuesMut<'a, T> { /* private fields */ }
Expand description

HeaderMap mutable value iterator

-

Trait Implementations§

source§

impl<'a, T> Debug for ValuesMut<'a, T>
where - T: Debug,

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl<'a, T> Iterator for ValuesMut<'a, T>

source§

type Item = &'a mut T

The type of the elements being iterated over.
source§

fn next(&mut self) -> Option<<ValuesMut<'a, T> as Iterator>::Item>

Advances the iterator and returns the next value. Read more
source§

fn size_hint(&self) -> (usize, Option<usize>)

Returns the bounds on the remaining length of the iterator. Read more
source§

fn next_chunk<const N: usize>( +ValuesMut in hyper::header - Rust
hyper::header

Struct ValuesMut

source
pub struct ValuesMut<'a, T> { /* private fields */ }
Expand description

HeaderMap mutable value iterator

+

Trait Implementations§

source§

impl<'a, T> Debug for ValuesMut<'a, T>
where + T: Debug,

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl<'a, T> Iterator for ValuesMut<'a, T>

source§

type Item = &'a mut T

The type of the elements being iterated over.
source§

fn next(&mut self) -> Option<<ValuesMut<'a, T> as Iterator>::Item>

Advances the iterator and returns the next value. Read more
source§

fn size_hint(&self) -> (usize, Option<usize>)

Returns the bounds on the remaining length of the iterator. Read more
source§

fn next_chunk<const N: usize>( &mut self, ) -> Result<[Self::Item; N], IntoIter<Self::Item, N>>
where Self: Sized,

🔬This is a nightly-only experimental API. (iter_next_chunk)
Advances the iterator and returns an array containing the next N values. Read more
1.0.0 · source§

fn count(self) -> usize
where @@ -175,7 +175,7 @@ Self: Sized, F: FnMut(Self::Item) -> K, K: PartialOrd,

Checks if the elements of this iterator are sorted using the given key extraction -function. Read more
source§

impl<'a, T> FusedIterator for ValuesMut<'a, T>

Auto Trait Implementations§

§

impl<'a, T> Freeze for ValuesMut<'a, T>

§

impl<'a, T> RefUnwindSafe for ValuesMut<'a, T>
where +function. Read more

source§

impl<'a, T> FusedIterator for ValuesMut<'a, T>

Auto Trait Implementations§

§

impl<'a, T> Freeze for ValuesMut<'a, T>

§

impl<'a, T> RefUnwindSafe for ValuesMut<'a, T>
where T: RefUnwindSafe,

§

impl<'a, T> Send for ValuesMut<'a, T>
where T: Send,

§

impl<'a, T> Sync for ValuesMut<'a, T>
where T: Sync,

§

impl<'a, T> Unpin for ValuesMut<'a, T>

§

impl<'a, T> !UnwindSafe for ValuesMut<'a, T>

Blanket Implementations§

source§

impl<T> Any for T
where diff --git a/current/hyper/header/trait.AsHeaderName.html b/current/hyper/header/trait.AsHeaderName.html index 02ea15cbc68..6c937f444cb 100644 --- a/current/hyper/header/trait.AsHeaderName.html +++ b/current/hyper/header/trait.AsHeaderName.html @@ -1,3 +1,3 @@ -AsHeaderName in hyper::header - Rust
hyper::header

Trait AsHeaderName

source
pub trait AsHeaderName: Sealed { }
Expand description

A marker trait used to identify values that can be used as search keys +AsHeaderName in hyper::header - Rust

hyper::header

Trait AsHeaderName

source
pub trait AsHeaderName: Sealed { }
Expand description

A marker trait used to identify values that can be used as search keys to a HeaderMap.

-

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

source§

impl AsHeaderName for String

source§

impl<'a> AsHeaderName for &'a str

source§

impl<'a> AsHeaderName for &'a String

Implementors§

\ No newline at end of file +

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

source§

impl AsHeaderName for String

source§

impl<'a> AsHeaderName for &'a str

source§

impl<'a> AsHeaderName for &'a String

Implementors§

\ No newline at end of file diff --git a/current/hyper/header/trait.IntoHeaderName.html b/current/hyper/header/trait.IntoHeaderName.html index c76993a98cd..fca6931b0cb 100644 --- a/current/hyper/header/trait.IntoHeaderName.html +++ b/current/hyper/header/trait.IntoHeaderName.html @@ -1,3 +1,3 @@ -IntoHeaderName in hyper::header - Rust
hyper::header

Trait IntoHeaderName

source
pub trait IntoHeaderName: Sealed { }
Expand description

A marker trait used to identify values that can be used as insert keys +IntoHeaderName in hyper::header - Rust

hyper::header

Trait IntoHeaderName

source
pub trait IntoHeaderName: Sealed { }
Expand description

A marker trait used to identify values that can be used as insert keys to a HeaderMap.

-

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

source§

impl IntoHeaderName for &'static str

Implementors§

\ No newline at end of file +

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

source§

impl IntoHeaderName for &'static str

Implementors§

\ No newline at end of file diff --git a/current/hyper/struct.Method.html b/current/hyper/struct.Method.html index 9a0c4c19708..1d978002fec 100644 --- a/current/hyper/struct.Method.html +++ b/current/hyper/struct.Method.html @@ -1,4 +1,4 @@ -Method in hyper - Rust
hyper

Struct Method

source
pub struct Method(/* private fields */);
Expand description

The Request Method (VERB)

+Method in hyper - Rust
hyper

Struct Method

source
pub struct Method(/* private fields */);
Expand description

The Request Method (VERB)

This type also contains constants for a number of common HTTP methods such as GET, POST, etc.

Currently includes 8 variants representing the 8 methods defined in @@ -10,36 +10,36 @@

§Examples

assert_eq!(Method::GET, Method::from_bytes(b"GET").unwrap()); assert!(Method::GET.is_idempotent()); assert_eq!(Method::POST.as_str(), "POST");
-

Implementations§

source§

impl Method

source

pub const GET: Method = _

GET

-
source

pub const POST: Method = _

POST

-
source

pub const PUT: Method = _

PUT

-
source

pub const DELETE: Method = _

DELETE

-
source

pub const HEAD: Method = _

HEAD

-
source

pub const OPTIONS: Method = _

OPTIONS

-
source

pub const CONNECT: Method = _

CONNECT

-
source

pub const PATCH: Method = _

PATCH

-
source

pub const TRACE: Method = _

TRACE

-
source

pub fn from_bytes(src: &[u8]) -> Result<Method, InvalidMethod>

Converts a slice of bytes to an HTTP method.

-
source

pub fn is_safe(&self) -> bool

Whether a method is considered “safe”, meaning the request is +

Implementations§

source§

impl Method

source

pub const GET: Method = _

GET

+
source

pub const POST: Method = _

POST

+
source

pub const PUT: Method = _

PUT

+
source

pub const DELETE: Method = _

DELETE

+
source

pub const HEAD: Method = _

HEAD

+
source

pub const OPTIONS: Method = _

OPTIONS

+
source

pub const CONNECT: Method = _

CONNECT

+
source

pub const PATCH: Method = _

PATCH

+
source

pub const TRACE: Method = _

TRACE

+
source

pub fn from_bytes(src: &[u8]) -> Result<Method, InvalidMethod>

Converts a slice of bytes to an HTTP method.

+
source

pub fn is_safe(&self) -> bool

Whether a method is considered “safe”, meaning the request is essentially read-only.

See the spec for more words.

-
source

pub fn is_idempotent(&self) -> bool

Whether a method is considered “idempotent”, meaning the request has +

source

pub fn is_idempotent(&self) -> bool

Whether a method is considered “idempotent”, meaning the request has the same result if executed multiple times.

See the spec for more words.

-
source

pub fn as_str(&self) -> &str

Return a &str representation of the HTTP method

-

Trait Implementations§

source§

impl AsRef<str> for Method

source§

fn as_ref(&self) -> &str

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl Clone for Method

source§

fn clone(&self) -> Method

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Method

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl Default for Method

source§

fn default() -> Method

Returns the “default value” for a type. Read more
source§

impl Display for Method

source§

fn fmt(&self, fmt: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl<'a> From<&'a Method> for Method

source§

fn from(t: &'a Method) -> Method

Converts to this type from the input type.
source§

impl FromStr for Method

source§

type Err = InvalidMethod

The associated error which can be returned from parsing.
source§

fn from_str(t: &str) -> Result<Method, <Method as FromStr>::Err>

Parses a string s to return a value of this type. Read more
source§

impl Hash for Method

source§

fn hash<__H>(&self, state: &mut __H)
where +

source

pub fn as_str(&self) -> &str

Return a &str representation of the HTTP method

+

Trait Implementations§

source§

impl AsRef<str> for Method

source§

fn as_ref(&self) -> &str

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl Clone for Method

source§

fn clone(&self) -> Method

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Method

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl Default for Method

source§

fn default() -> Method

Returns the “default value” for a type. Read more
source§

impl Display for Method

source§

fn fmt(&self, fmt: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl<'a> From<&'a Method> for Method

source§

fn from(t: &'a Method) -> Method

Converts to this type from the input type.
source§

impl FromStr for Method

source§

type Err = InvalidMethod

The associated error which can be returned from parsing.
source§

fn from_str(t: &str) -> Result<Method, <Method as FromStr>::Err>

Parses a string s to return a value of this type. Read more
source§

impl Hash for Method

source§

fn hash<__H>(&self, state: &mut __H)
where __H: Hasher,

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, - Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl<'a> PartialEq<&'a Method> for Method

source§

fn eq(&self, other: &&'a Method) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
source§

impl<'a> PartialEq<&'a str> for Method

source§

fn eq(&self, other: &&'a str) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
source§

impl<'a> PartialEq<Method> for &'a Method

source§

fn eq(&self, other: &Method) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
source§

impl<'a> PartialEq<Method> for &'a str

source§

fn eq(&self, other: &Method) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
source§

impl PartialEq<Method> for str

source§

fn eq(&self, other: &Method) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
source§

impl PartialEq<str> for Method

source§

fn eq(&self, other: &str) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
source§

impl PartialEq for Method

source§

fn eq(&self, other: &Method) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
source§

impl<'a> TryFrom<&'a [u8]> for Method

source§

type Error = InvalidMethod

The type returned in the event of a conversion error.
source§

fn try_from(t: &'a [u8]) -> Result<Method, <Method as TryFrom<&'a [u8]>>::Error>

Performs the conversion.
source§

impl<'a> TryFrom<&'a str> for Method

source§

type Error = InvalidMethod

The type returned in the event of a conversion error.
source§

fn try_from(t: &'a str) -> Result<Method, <Method as TryFrom<&'a str>>::Error>

Performs the conversion.
source§

impl Eq for Method

source§

impl StructuralPartialEq for Method

Auto Trait Implementations§

§

impl Freeze for Method

§

impl RefUnwindSafe for Method

§

impl Send for Method

§

impl Sync for Method

§

impl Unpin for Method

§

impl UnwindSafe for Method

Blanket Implementations§

source§

impl<T> Any for T
where + Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl<'a> PartialEq<&'a Method> for Method

source§

fn eq(&self, other: &&'a Method) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
source§

impl<'a> PartialEq<&'a str> for Method

source§

fn eq(&self, other: &&'a str) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
source§

impl<'a> PartialEq<Method> for &'a Method

source§

fn eq(&self, other: &Method) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
source§

impl<'a> PartialEq<Method> for &'a str

source§

fn eq(&self, other: &Method) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
source§

impl PartialEq<Method> for str

source§

fn eq(&self, other: &Method) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
source§

impl PartialEq<str> for Method

source§

fn eq(&self, other: &str) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
source§

impl PartialEq for Method

source§

fn eq(&self, other: &Method) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
source§

impl<'a> TryFrom<&'a [u8]> for Method

source§

type Error = InvalidMethod

The type returned in the event of a conversion error.
source§

fn try_from(t: &'a [u8]) -> Result<Method, <Method as TryFrom<&'a [u8]>>::Error>

Performs the conversion.
source§

impl<'a> TryFrom<&'a str> for Method

source§

type Error = InvalidMethod

The type returned in the event of a conversion error.
source§

fn try_from(t: &'a str) -> Result<Method, <Method as TryFrom<&'a str>>::Error>

Performs the conversion.
source§

impl Eq for Method

source§

impl StructuralPartialEq for Method

Auto Trait Implementations§

§

impl Freeze for Method

§

impl RefUnwindSafe for Method

§

impl Send for Method

§

impl Sync for Method

§

impl Unpin for Method

§

impl UnwindSafe for Method

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where diff --git a/current/hyper/struct.Request.html b/current/hyper/struct.Request.html index 94e3f869810..3bc9cf9af08 100644 --- a/current/hyper/struct.Request.html +++ b/current/hyper/struct.Request.html @@ -1,4 +1,4 @@ -Request in hyper - Rust
hyper

Struct Request

source
pub struct Request<T> { /* private fields */ }
Expand description

Represents an HTTP request.

+Request in hyper - Rust
hyper

Struct Request

source
pub struct Request<T> { /* private fields */ }
Expand description

Represents an HTTP request.

An HTTP request consists of a head and a potentially optional body. The body component is generic, enabling arbitrary types to represent the HTTP body. For example, the body could be Vec<u8>, a Stream of byte chunks, or a @@ -61,7 +61,7 @@

§Examples

let body = serde_json::to_vec(&body)?; Ok(Request::from_parts(parts, body)) }
-

Implementations§

source§

impl Request<()>

source

pub fn builder() -> Builder

Creates a new builder-style object to manufacture a Request

+

Implementations§

source§

impl Request<()>

source

pub fn builder() -> Builder

Creates a new builder-style object to manufacture a Request

This method returns an instance of Builder which can be used to create a Request.

§Examples
@@ -71,9 +71,9 @@
§Examples
.header("X-Custom-Foo", "Bar") .body(()) .unwrap();
-
source

pub fn get<T>(uri: T) -> Builder
where +

source

pub fn get<T>(uri: T) -> Builder
where Uri: TryFrom<T>, - <Uri as TryFrom<T>>::Error: Into<Error>,

Creates a new Builder initialized with a GET method and the given URI.

+ <Uri as TryFrom<T>>::Error: Into<Error>,

Creates a new Builder initialized with a GET method and the given URI.

This method returns an instance of Builder which can be used to create a Request.

§Example
@@ -81,9 +81,9 @@
§Example
let request = Request::get("https://www.rust-lang.org/") .body(()) .unwrap();
-

source

pub fn put<T>(uri: T) -> Builder
where +

source

pub fn put<T>(uri: T) -> Builder
where Uri: TryFrom<T>, - <Uri as TryFrom<T>>::Error: Into<Error>,

Creates a new Builder initialized with a PUT method and the given URI.

+ <Uri as TryFrom<T>>::Error: Into<Error>,

Creates a new Builder initialized with a PUT method and the given URI.

This method returns an instance of Builder which can be used to create a Request.

§Example
@@ -91,9 +91,9 @@
§Example
let request = Request::put("https://www.rust-lang.org/") .body(()) .unwrap();
-
source

pub fn post<T>(uri: T) -> Builder
where +

source

pub fn post<T>(uri: T) -> Builder
where Uri: TryFrom<T>, - <Uri as TryFrom<T>>::Error: Into<Error>,

Creates a new Builder initialized with a POST method and the given URI.

+ <Uri as TryFrom<T>>::Error: Into<Error>,

Creates a new Builder initialized with a POST method and the given URI.

This method returns an instance of Builder which can be used to create a Request.

§Example
@@ -101,9 +101,9 @@
§Example
let request = Request::post("https://www.rust-lang.org/") .body(()) .unwrap();
-
source

pub fn delete<T>(uri: T) -> Builder
where +

source

pub fn delete<T>(uri: T) -> Builder
where Uri: TryFrom<T>, - <Uri as TryFrom<T>>::Error: Into<Error>,

Creates a new Builder initialized with a DELETE method and the given URI.

+ <Uri as TryFrom<T>>::Error: Into<Error>,

Creates a new Builder initialized with a DELETE method and the given URI.

This method returns an instance of Builder which can be used to create a Request.

§Example
@@ -111,9 +111,9 @@
§Example
let request = Request::delete("https://www.rust-lang.org/") .body(()) .unwrap();
-
source

pub fn options<T>(uri: T) -> Builder
where +

source

pub fn options<T>(uri: T) -> Builder
where Uri: TryFrom<T>, - <Uri as TryFrom<T>>::Error: Into<Error>,

Creates a new Builder initialized with an OPTIONS method and the given URI.

+ <Uri as TryFrom<T>>::Error: Into<Error>,

Creates a new Builder initialized with an OPTIONS method and the given URI.

This method returns an instance of Builder which can be used to create a Request.

§Example
@@ -121,9 +121,9 @@
§Example
let request = Request::options("https://www.rust-lang.org/") .body(()) .unwrap();
-
source

pub fn head<T>(uri: T) -> Builder
where +

source

pub fn head<T>(uri: T) -> Builder
where Uri: TryFrom<T>, - <Uri as TryFrom<T>>::Error: Into<Error>,

Creates a new Builder initialized with a HEAD method and the given URI.

+ <Uri as TryFrom<T>>::Error: Into<Error>,

Creates a new Builder initialized with a HEAD method and the given URI.

This method returns an instance of Builder which can be used to create a Request.

§Example
@@ -131,9 +131,9 @@
§Example
let request = Request::head("https://www.rust-lang.org/") .body(()) .unwrap();
-
source

pub fn connect<T>(uri: T) -> Builder
where +

source

pub fn connect<T>(uri: T) -> Builder
where Uri: TryFrom<T>, - <Uri as TryFrom<T>>::Error: Into<Error>,

Creates a new Builder initialized with a CONNECT method and the given URI.

+ <Uri as TryFrom<T>>::Error: Into<Error>,

Creates a new Builder initialized with a CONNECT method and the given URI.

This method returns an instance of Builder which can be used to create a Request.

§Example
@@ -141,9 +141,9 @@
§Example
let request = Request::connect("https://www.rust-lang.org/") .body(()) .unwrap();
-
source

pub fn patch<T>(uri: T) -> Builder
where +

source

pub fn patch<T>(uri: T) -> Builder
where Uri: TryFrom<T>, - <Uri as TryFrom<T>>::Error: Into<Error>,

Creates a new Builder initialized with a PATCH method and the given URI.

+ <Uri as TryFrom<T>>::Error: Into<Error>,

Creates a new Builder initialized with a PATCH method and the given URI.

This method returns an instance of Builder which can be used to create a Request.

§Example
@@ -151,9 +151,9 @@
§Example
let request = Request::patch("https://www.rust-lang.org/") .body(()) .unwrap();
-
source

pub fn trace<T>(uri: T) -> Builder
where +

source

pub fn trace<T>(uri: T) -> Builder
where Uri: TryFrom<T>, - <Uri as TryFrom<T>>::Error: Into<Error>,

Creates a new Builder initialized with a TRACE method and the given URI.

+ <Uri as TryFrom<T>>::Error: Into<Error>,

Creates a new Builder initialized with a TRACE method and the given URI.

This method returns an instance of Builder which can be used to create a Request.

§Example
@@ -161,7 +161,7 @@
§Example
let request = Request::trace("https://www.rust-lang.org/") .body(()) .unwrap();
-
source§

impl<T> Request<T>

source

pub fn new(body: T) -> Request<T>

Creates a new blank Request with the body

+
source§

impl<T> Request<T>

source

pub fn new(body: T) -> Request<T>

Creates a new blank Request with the body

The component parts of this request will be set to their default, e.g. the GET method, no headers, etc.

§Examples
@@ -169,78 +169,78 @@
§Examples
assert_eq!(*request.method(), Method::GET); assert_eq!(*request.body(), "hello world");
-
source

pub fn from_parts(parts: Parts, body: T) -> Request<T>

Creates a new Request with the given components parts and body.

+
source

pub fn from_parts(parts: Parts, body: T) -> Request<T>

Creates a new Request with the given components parts and body.

§Examples
let request = Request::new("hello world");
 let (mut parts, body) = request.into_parts();
 parts.method = Method::POST;
 
 let request = Request::from_parts(parts, body);
-
source

pub fn method(&self) -> &Method

Returns a reference to the associated HTTP method.

+
source

pub fn method(&self) -> &Method

Returns a reference to the associated HTTP method.

§Examples
let request: Request<()> = Request::default();
 assert_eq!(*request.method(), Method::GET);
-
source

pub fn method_mut(&mut self) -> &mut Method

Returns a mutable reference to the associated HTTP method.

+
source

pub fn method_mut(&mut self) -> &mut Method

Returns a mutable reference to the associated HTTP method.

§Examples
let mut request: Request<()> = Request::default();
 *request.method_mut() = Method::PUT;
 assert_eq!(*request.method(), Method::PUT);
-
source

pub fn uri(&self) -> &Uri

Returns a reference to the associated URI.

+
source

pub fn uri(&self) -> &Uri

Returns a reference to the associated URI.

§Examples
let request: Request<()> = Request::default();
 assert_eq!(*request.uri(), *"/");
-
source

pub fn uri_mut(&mut self) -> &mut Uri

Returns a mutable reference to the associated URI.

+
source

pub fn uri_mut(&mut self) -> &mut Uri

Returns a mutable reference to the associated URI.

§Examples
let mut request: Request<()> = Request::default();
 *request.uri_mut() = "/hello".parse().unwrap();
 assert_eq!(*request.uri(), *"/hello");
-
source

pub fn version(&self) -> Version

Returns the associated version.

+
source

pub fn version(&self) -> Version

Returns the associated version.

§Examples
let request: Request<()> = Request::default();
 assert_eq!(request.version(), Version::HTTP_11);
-
source

pub fn version_mut(&mut self) -> &mut Version

Returns a mutable reference to the associated version.

+
source

pub fn version_mut(&mut self) -> &mut Version

Returns a mutable reference to the associated version.

§Examples
let mut request: Request<()> = Request::default();
 *request.version_mut() = Version::HTTP_2;
 assert_eq!(request.version(), Version::HTTP_2);
-
source

pub fn headers(&self) -> &HeaderMap

Returns a reference to the associated header field map.

+
source

pub fn headers(&self) -> &HeaderMap

Returns a reference to the associated header field map.

§Examples
let request: Request<()> = Request::default();
 assert!(request.headers().is_empty());
-
source

pub fn headers_mut(&mut self) -> &mut HeaderMap

Returns a mutable reference to the associated header field map.

+
source

pub fn headers_mut(&mut self) -> &mut HeaderMap

Returns a mutable reference to the associated header field map.

§Examples
let mut request: Request<()> = Request::default();
 request.headers_mut().insert(HOST, HeaderValue::from_static("world"));
 assert!(!request.headers().is_empty());
-
source

pub fn extensions(&self) -> &Extensions

Returns a reference to the associated extensions.

+
source

pub fn extensions(&self) -> &Extensions

Returns a reference to the associated extensions.

§Examples
let request: Request<()> = Request::default();
 assert!(request.extensions().get::<i32>().is_none());
-
source

pub fn extensions_mut(&mut self) -> &mut Extensions

Returns a mutable reference to the associated extensions.

+
source

pub fn extensions_mut(&mut self) -> &mut Extensions

Returns a mutable reference to the associated extensions.

§Examples
let mut request: Request<()> = Request::default();
 request.extensions_mut().insert("hello");
 assert_eq!(request.extensions().get(), Some(&"hello"));
-
source

pub fn body(&self) -> &T

Returns a reference to the associated HTTP body.

+
source

pub fn body(&self) -> &T

Returns a reference to the associated HTTP body.

§Examples
let request: Request<String> = Request::default();
 assert!(request.body().is_empty());
-
source

pub fn body_mut(&mut self) -> &mut T

Returns a mutable reference to the associated HTTP body.

+
source

pub fn body_mut(&mut self) -> &mut T

Returns a mutable reference to the associated HTTP body.

§Examples
let mut request: Request<String> = Request::default();
 request.body_mut().push_str("hello world");
 assert!(!request.body().is_empty());
-
source

pub fn into_body(self) -> T

Consumes the request, returning just the body.

+
source

pub fn into_body(self) -> T

Consumes the request, returning just the body.

§Examples
let request = Request::new(10);
 let body = request.into_body();
 assert_eq!(body, 10);
-
source

pub fn into_parts(self) -> (Parts, T)

Consumes the request returning the head and body parts.

+
source

pub fn into_parts(self) -> (Parts, T)

Consumes the request returning the head and body parts.

§Examples
let request = Request::new(());
 let (parts, body) = request.into_parts();
 assert_eq!(parts.method, Method::GET);
-
source

pub fn map<F, U>(self, f: F) -> Request<U>
where +

source

pub fn map<F, U>(self, f: F) -> Request<U>
where F: FnOnce(T) -> U,

Consumes the request returning a new request with body mapped to the return type of the passed in function.

§Examples
@@ -264,9 +264,9 @@
§ExamplesSized, F: FnMut(Self::Error) -> E,
Maps this body’s error value to a different value.
source§

fn collect(self) -> Collect<Self>
where Self: Sized,

Turn this body into Collected body which will collect all the DATA frames -and trailers.
source§

impl<T> Debug for Request<T>
where - T: Debug,

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl<T> Default for Request<T>
where - T: Default,

source§

fn default() -> Request<T>

Returns the “default value” for a type. Read more
source§

impl<C, B> Service<Request<B>> for &Client<C, B>
where +and trailers.

source§

impl<T> Debug for Request<T>
where + T: Debug,

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl<T> Default for Request<T>
where + T: Default,

source§

fn default() -> Request<T>

Returns the “default value” for a type. Read more
source§

impl<C, B> Service<Request<B>> for &Client<C, B>
where C: Connect + Clone + Send + Sync + 'static, B: HttpBody + Send + 'static, B::Data: Send, diff --git a/current/hyper/struct.Response.html b/current/hyper/struct.Response.html index 282bc2fb391..7d8bbdae3df 100644 --- a/current/hyper/struct.Response.html +++ b/current/hyper/struct.Response.html @@ -1,4 +1,4 @@ -Response in hyper - Rust
hyper

Struct Response

source
pub struct Response<T> { /* private fields */ }
Expand description

Represents an HTTP response

+Response in hyper - Rust
hyper

Struct Response

source
pub struct Response<T> { /* private fields */ }
Expand description

Represents an HTTP response

An HTTP response consists of a head and a potentially optional body. The body component is generic, enabling arbitrary types to represent the HTTP body. For example, the body could be Vec<u8>, a Stream of byte chunks, or a @@ -75,7 +75,7 @@

§Examples

let body = serde_json::to_vec(&body)?; Ok(Response::from_parts(parts, body)) }
-

Implementations§

source§

impl Response<()>

source

pub fn builder() -> Builder

Creates a new builder-style object to manufacture a Response

+

Implementations§

source§

impl Response<()>

source

pub fn builder() -> Builder

Creates a new builder-style object to manufacture a Response

This method returns an instance of Builder which can be used to create a Response.

§Examples
@@ -84,7 +84,7 @@
§Examples
.header("X-Custom-Foo", "Bar") .body(()) .unwrap();
-
source§

impl<T> Response<T>

source

pub fn new(body: T) -> Response<T>

Creates a new blank Response with the body

+
source§

impl<T> Response<T>

source

pub fn new(body: T) -> Response<T>

Creates a new blank Response with the body

The component ports of this response will be set to their default, e.g. the ok status, no headers, etc.

§Examples
@@ -92,7 +92,7 @@
§Examples
assert_eq!(response.status(), StatusCode::OK); assert_eq!(*response.body(), "hello world");
-
source

pub fn from_parts(parts: Parts, body: T) -> Response<T>

Creates a new Response with the given head and body

+
source

pub fn from_parts(parts: Parts, body: T) -> Response<T>

Creates a new Response with the given head and body

§Examples
let response = Response::new("hello world");
 let (mut parts, body) = response.into_parts();
@@ -102,62 +102,62 @@ 
§Examples
assert_eq!(response.status(), StatusCode::BAD_REQUEST); assert_eq!(*response.body(), "hello world");
-
source

pub fn status(&self) -> StatusCode

Returns the StatusCode.

+
source

pub fn status(&self) -> StatusCode

Returns the StatusCode.

§Examples
let response: Response<()> = Response::default();
 assert_eq!(response.status(), StatusCode::OK);
-
source

pub fn status_mut(&mut self) -> &mut StatusCode

Returns a mutable reference to the associated StatusCode.

+
source

pub fn status_mut(&mut self) -> &mut StatusCode

Returns a mutable reference to the associated StatusCode.

§Examples
let mut response: Response<()> = Response::default();
 *response.status_mut() = StatusCode::CREATED;
 assert_eq!(response.status(), StatusCode::CREATED);
-
source

pub fn version(&self) -> Version

Returns a reference to the associated version.

+
source

pub fn version(&self) -> Version

Returns a reference to the associated version.

§Examples
let response: Response<()> = Response::default();
 assert_eq!(response.version(), Version::HTTP_11);
-
source

pub fn version_mut(&mut self) -> &mut Version

Returns a mutable reference to the associated version.

+
source

pub fn version_mut(&mut self) -> &mut Version

Returns a mutable reference to the associated version.

§Examples
let mut response: Response<()> = Response::default();
 *response.version_mut() = Version::HTTP_2;
 assert_eq!(response.version(), Version::HTTP_2);
-
source

pub fn headers(&self) -> &HeaderMap

Returns a reference to the associated header field map.

+
source

pub fn headers(&self) -> &HeaderMap

Returns a reference to the associated header field map.

§Examples
let response: Response<()> = Response::default();
 assert!(response.headers().is_empty());
-
source

pub fn headers_mut(&mut self) -> &mut HeaderMap

Returns a mutable reference to the associated header field map.

+
source

pub fn headers_mut(&mut self) -> &mut HeaderMap

Returns a mutable reference to the associated header field map.

§Examples
let mut response: Response<()> = Response::default();
 response.headers_mut().insert(HOST, HeaderValue::from_static("world"));
 assert!(!response.headers().is_empty());
-
source

pub fn extensions(&self) -> &Extensions

Returns a reference to the associated extensions.

+
source

pub fn extensions(&self) -> &Extensions

Returns a reference to the associated extensions.

§Examples
let response: Response<()> = Response::default();
 assert!(response.extensions().get::<i32>().is_none());
-
source

pub fn extensions_mut(&mut self) -> &mut Extensions

Returns a mutable reference to the associated extensions.

+
source

pub fn extensions_mut(&mut self) -> &mut Extensions

Returns a mutable reference to the associated extensions.

§Examples
let mut response: Response<()> = Response::default();
 response.extensions_mut().insert("hello");
 assert_eq!(response.extensions().get(), Some(&"hello"));
-
source

pub fn body(&self) -> &T

Returns a reference to the associated HTTP body.

+
source

pub fn body(&self) -> &T

Returns a reference to the associated HTTP body.

§Examples
let response: Response<String> = Response::default();
 assert!(response.body().is_empty());
-
source

pub fn body_mut(&mut self) -> &mut T

Returns a mutable reference to the associated HTTP body.

+
source

pub fn body_mut(&mut self) -> &mut T

Returns a mutable reference to the associated HTTP body.

§Examples
let mut response: Response<String> = Response::default();
 response.body_mut().push_str("hello world");
 assert!(!response.body().is_empty());
-
source

pub fn into_body(self) -> T

Consumes the response, returning just the body.

+
source

pub fn into_body(self) -> T

Consumes the response, returning just the body.

§Examples
let response = Response::new(10);
 let body = response.into_body();
 assert_eq!(body, 10);
-
source

pub fn into_parts(self) -> (Parts, T)

Consumes the response returning the head and body parts.

+
source

pub fn into_parts(self) -> (Parts, T)

Consumes the response returning the head and body parts.

§Examples
let response: Response<()> = Response::default();
 let (parts, body) = response.into_parts();
 assert_eq!(parts.status, StatusCode::OK);
-
source

pub fn map<F, U>(self, f: F) -> Response<U>
where +

source

pub fn map<F, U>(self, f: F) -> Response<U>
where F: FnOnce(T) -> U,

Consumes the response returning a new response with body mapped to the return type of the passed in function.

§Examples
@@ -181,9 +181,9 @@
§ExamplesSized, F: FnMut(Self::Error) -> E,

Maps this body’s error value to a different value.
source§

fn collect(self) -> Collect<Self>
where Self: Sized,

Turn this body into Collected body which will collect all the DATA frames -and trailers.
source§

impl<T> Debug for Response<T>
where - T: Debug,

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl<T> Default for Response<T>
where - T: Default,

source§

fn default() -> Response<T>

Returns the “default value” for a type. Read more

Auto Trait Implementations§

§

impl<T> Freeze for Response<T>
where +and trailers.

source§

impl<T> Debug for Response<T>
where + T: Debug,

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl<T> Default for Response<T>
where + T: Default,

source§

fn default() -> Response<T>

Returns the “default value” for a type. Read more

Auto Trait Implementations§

§

impl<T> Freeze for Response<T>
where T: Freeze,

§

impl<T> !RefUnwindSafe for Response<T>

§

impl<T> Send for Response<T>
where T: Send,

§

impl<T> Sync for Response<T>
where T: Sync,

§

impl<T> Unpin for Response<T>
where diff --git a/current/hyper/struct.StatusCode.html b/current/hyper/struct.StatusCode.html index 613f6ee09e9..ff5ac308a14 100644 --- a/current/hyper/struct.StatusCode.html +++ b/current/hyper/struct.StatusCode.html @@ -1,4 +1,4 @@ -StatusCode in hyper - Rust
hyper

Struct StatusCode

source
pub struct StatusCode(/* private fields */);
Expand description

An HTTP status code (status-code in RFC 7230 et al.).

+StatusCode in hyper - Rust
hyper

Struct StatusCode

source
pub struct StatusCode(/* private fields */);
Expand description

An HTTP status code (status-code in RFC 7230 et al.).

Constants are provided for known status codes, including those in the IANA HTTP Status Code Registry.

Status code values in the range 100-999 (inclusive) are supported by this @@ -12,7 +12,7 @@

§Examples

assert_eq!(StatusCode::from_u16(200).unwrap(), StatusCode::OK); assert_eq!(StatusCode::NOT_FOUND.as_u16(), 404); assert!(StatusCode::OK.is_success());
-

Implementations§

source§

impl StatusCode

source

pub fn from_u16(src: u16) -> Result<StatusCode, InvalidStatusCode>

Converts a u16 to a status code.

+

Implementations§

source§

impl StatusCode

source

pub fn from_u16(src: u16) -> Result<StatusCode, InvalidStatusCode>

Converts a u16 to a status code.

The function validates the correctness of the supplied u16. It must be greater or equal to 100 and less than 1000.

§Example
@@ -23,8 +23,8 @@
§Example
let err = StatusCode::from_u16(99); assert!(err.is_err());
-
source

pub fn from_bytes(src: &[u8]) -> Result<StatusCode, InvalidStatusCode>

Converts a &u8 to a status code

-
source

pub fn as_u16(&self) -> u16

Returns the u16 corresponding to this StatusCode.

+
source

pub fn from_bytes(src: &[u8]) -> Result<StatusCode, InvalidStatusCode>

Converts a &u8 to a status code

+
source

pub fn as_u16(&self) -> u16

Returns the u16 corresponding to this StatusCode.

§Note

This is the same as the From<StatusCode> implementation, but included as an inherent method because that implementation doesn’t @@ -33,13 +33,13 @@

§Note
§Example
let status = http::StatusCode::OK;
 assert_eq!(status.as_u16(), 200);
-
source

pub fn as_str(&self) -> &str

Returns a &str representation of the StatusCode

+
source

pub fn as_str(&self) -> &str

Returns a &str representation of the StatusCode

The return value only includes a numerical representation of the status code. The canonical reason is not included.

§Example
let status = http::StatusCode::OK;
 assert_eq!(status.as_str(), "200");
-
source

pub fn canonical_reason(&self) -> Option<&'static str>

Get the standardised reason-phrase for this status code.

+
source

pub fn canonical_reason(&self) -> Option<&'static str>

Get the standardised reason-phrase for this status code.

This is mostly here for servers writing responses, but could potentially have application at other times.

The reason phrase is defined as being exclusively for human readers. You should avoid @@ -50,150 +50,150 @@

§Example
§Example
let status = http::StatusCode::OK;
 assert_eq!(status.canonical_reason(), Some("OK"));
-
source

pub fn is_informational(&self) -> bool

Check if status is within 100-199.

-
source

pub fn is_success(&self) -> bool

Check if status is within 200-299.

-
source

pub fn is_redirection(&self) -> bool

Check if status is within 300-399.

-
source

pub fn is_client_error(&self) -> bool

Check if status is within 400-499.

-
source

pub fn is_server_error(&self) -> bool

Check if status is within 500-599.

-
source§

impl StatusCode

source

pub const CONTINUE: StatusCode = _

100 Continue +

source

pub fn is_informational(&self) -> bool

Check if status is within 100-199.

+
source

pub fn is_success(&self) -> bool

Check if status is within 200-299.

+
source

pub fn is_redirection(&self) -> bool

Check if status is within 300-399.

+
source

pub fn is_client_error(&self) -> bool

Check if status is within 400-499.

+
source

pub fn is_server_error(&self) -> bool

Check if status is within 500-599.

+
source§

impl StatusCode

source

pub const CONTINUE: StatusCode = _

100 Continue [RFC7231, Section 6.2.1]

-
source

pub const SWITCHING_PROTOCOLS: StatusCode = _

101 Switching Protocols +

source

pub const SWITCHING_PROTOCOLS: StatusCode = _

101 Switching Protocols [RFC7231, Section 6.2.2]

-
source

pub const PROCESSING: StatusCode = _

102 Processing +

source

pub const PROCESSING: StatusCode = _

102 Processing [RFC2518]

-
source

pub const OK: StatusCode = _

200 OK +

source

pub const OK: StatusCode = _

source

pub const CREATED: StatusCode = _

201 Created +

source

pub const CREATED: StatusCode = _

201 Created [RFC7231, Section 6.3.2]

-
source

pub const ACCEPTED: StatusCode = _

202 Accepted +

source

pub const ACCEPTED: StatusCode = _

202 Accepted [RFC7231, Section 6.3.3]

-
source

pub const NON_AUTHORITATIVE_INFORMATION: StatusCode = _

203 Non-Authoritative Information +

source

pub const NON_AUTHORITATIVE_INFORMATION: StatusCode = _

203 Non-Authoritative Information [RFC7231, Section 6.3.4]

-
source

pub const NO_CONTENT: StatusCode = _

204 No Content +

source

pub const NO_CONTENT: StatusCode = _

204 No Content [RFC7231, Section 6.3.5]

-
source

pub const RESET_CONTENT: StatusCode = _

205 Reset Content +

source

pub const RESET_CONTENT: StatusCode = _

205 Reset Content [RFC7231, Section 6.3.6]

-
source

pub const PARTIAL_CONTENT: StatusCode = _

206 Partial Content +

source

pub const PARTIAL_CONTENT: StatusCode = _

206 Partial Content [RFC7233, Section 4.1]

-
source

pub const MULTI_STATUS: StatusCode = _

207 Multi-Status +

source

pub const MULTI_STATUS: StatusCode = _

207 Multi-Status [RFC4918]

-
source

pub const ALREADY_REPORTED: StatusCode = _

208 Already Reported +

source

pub const ALREADY_REPORTED: StatusCode = _

208 Already Reported [RFC5842]

-
source

pub const IM_USED: StatusCode = _

226 IM Used +

source

pub const IM_USED: StatusCode = _

226 IM Used [RFC3229]

-
source

pub const MULTIPLE_CHOICES: StatusCode = _

300 Multiple Choices +

source

pub const MULTIPLE_CHOICES: StatusCode = _

300 Multiple Choices [RFC7231, Section 6.4.1]

-
source

pub const MOVED_PERMANENTLY: StatusCode = _

301 Moved Permanently +

source

pub const MOVED_PERMANENTLY: StatusCode = _

301 Moved Permanently [RFC7231, Section 6.4.2]

-
source

pub const FOUND: StatusCode = _

302 Found +

source

pub const FOUND: StatusCode = _

source

pub const SEE_OTHER: StatusCode = _

303 See Other +

source

pub const SEE_OTHER: StatusCode = _

303 See Other [RFC7231, Section 6.4.4]

-
source

pub const NOT_MODIFIED: StatusCode = _

304 Not Modified +

source

pub const NOT_MODIFIED: StatusCode = _

304 Not Modified [RFC7232, Section 4.1]

-
source

pub const USE_PROXY: StatusCode = _

305 Use Proxy +

source

pub const USE_PROXY: StatusCode = _

305 Use Proxy [RFC7231, Section 6.4.5]

-
source

pub const TEMPORARY_REDIRECT: StatusCode = _

307 Temporary Redirect +

source

pub const TEMPORARY_REDIRECT: StatusCode = _

307 Temporary Redirect [RFC7231, Section 6.4.7]

-
source

pub const PERMANENT_REDIRECT: StatusCode = _

308 Permanent Redirect +

source

pub const PERMANENT_REDIRECT: StatusCode = _

308 Permanent Redirect [RFC7238]

-
source

pub const BAD_REQUEST: StatusCode = _

400 Bad Request +

source

pub const BAD_REQUEST: StatusCode = _

400 Bad Request [RFC7231, Section 6.5.1]

-
source

pub const UNAUTHORIZED: StatusCode = _

401 Unauthorized +

source

pub const UNAUTHORIZED: StatusCode = _

401 Unauthorized [RFC7235, Section 3.1]

-
source

pub const PAYMENT_REQUIRED: StatusCode = _

402 Payment Required +

source

pub const PAYMENT_REQUIRED: StatusCode = _

402 Payment Required [RFC7231, Section 6.5.2]

-
source

pub const FORBIDDEN: StatusCode = _

403 Forbidden +

source

pub const FORBIDDEN: StatusCode = _

403 Forbidden [RFC7231, Section 6.5.3]

-
source

pub const NOT_FOUND: StatusCode = _

404 Not Found +

source

pub const NOT_FOUND: StatusCode = _

404 Not Found [RFC7231, Section 6.5.4]

-
source

pub const METHOD_NOT_ALLOWED: StatusCode = _

405 Method Not Allowed +

source

pub const METHOD_NOT_ALLOWED: StatusCode = _

405 Method Not Allowed [RFC7231, Section 6.5.5]

-
source

pub const NOT_ACCEPTABLE: StatusCode = _

406 Not Acceptable +

source

pub const NOT_ACCEPTABLE: StatusCode = _

406 Not Acceptable [RFC7231, Section 6.5.6]

-
source

pub const PROXY_AUTHENTICATION_REQUIRED: StatusCode = _

407 Proxy Authentication Required +

source

pub const PROXY_AUTHENTICATION_REQUIRED: StatusCode = _

407 Proxy Authentication Required [RFC7235, Section 3.2]

-
source

pub const REQUEST_TIMEOUT: StatusCode = _

408 Request Timeout +

source

pub const REQUEST_TIMEOUT: StatusCode = _

408 Request Timeout [RFC7231, Section 6.5.7]

-
source

pub const CONFLICT: StatusCode = _

409 Conflict +

source

pub const CONFLICT: StatusCode = _

409 Conflict [RFC7231, Section 6.5.8]

-
source

pub const GONE: StatusCode = _

410 Gone +

source

pub const GONE: StatusCode = _

source

pub const LENGTH_REQUIRED: StatusCode = _

411 Length Required +

source

pub const LENGTH_REQUIRED: StatusCode = _

411 Length Required [RFC7231, Section 6.5.10]

-
source

pub const PRECONDITION_FAILED: StatusCode = _

412 Precondition Failed +

source

pub const PRECONDITION_FAILED: StatusCode = _

412 Precondition Failed [RFC7232, Section 4.2]

-
source

pub const PAYLOAD_TOO_LARGE: StatusCode = _

413 Payload Too Large +

source

pub const PAYLOAD_TOO_LARGE: StatusCode = _

413 Payload Too Large [RFC7231, Section 6.5.11]

-
source

pub const URI_TOO_LONG: StatusCode = _

414 URI Too Long +

source

pub const URI_TOO_LONG: StatusCode = _

414 URI Too Long [RFC7231, Section 6.5.12]

-
source

pub const UNSUPPORTED_MEDIA_TYPE: StatusCode = _

415 Unsupported Media Type +

source

pub const UNSUPPORTED_MEDIA_TYPE: StatusCode = _

415 Unsupported Media Type [RFC7231, Section 6.5.13]

-
source

pub const RANGE_NOT_SATISFIABLE: StatusCode = _

416 Range Not Satisfiable +

source

pub const RANGE_NOT_SATISFIABLE: StatusCode = _

416 Range Not Satisfiable [RFC7233, Section 4.4]

-
source

pub const EXPECTATION_FAILED: StatusCode = _

417 Expectation Failed +

source

pub const EXPECTATION_FAILED: StatusCode = _

417 Expectation Failed [RFC7231, Section 6.5.14]

-
source

pub const IM_A_TEAPOT: StatusCode = _

418 I’m a teapot +

source

pub const IM_A_TEAPOT: StatusCode = _

418 I’m a teapot [curiously not registered by IANA but RFC2324]

-
source

pub const MISDIRECTED_REQUEST: StatusCode = _

421 Misdirected Request +

source

pub const MISDIRECTED_REQUEST: StatusCode = _

421 Misdirected Request RFC7540, Section 9.1.2

-
source

pub const UNPROCESSABLE_ENTITY: StatusCode = _

422 Unprocessable Entity +

source

pub const UNPROCESSABLE_ENTITY: StatusCode = _

422 Unprocessable Entity [RFC4918]

-
source

pub const LOCKED: StatusCode = _

423 Locked +

source

pub const LOCKED: StatusCode = _

423 Locked [RFC4918]

-
source

pub const FAILED_DEPENDENCY: StatusCode = _

424 Failed Dependency +

source

pub const FAILED_DEPENDENCY: StatusCode = _

424 Failed Dependency [RFC4918]

-
source

pub const UPGRADE_REQUIRED: StatusCode = _

426 Upgrade Required +

source

pub const UPGRADE_REQUIRED: StatusCode = _

426 Upgrade Required [RFC7231, Section 6.5.15]

-
source

pub const PRECONDITION_REQUIRED: StatusCode = _

428 Precondition Required +

source

pub const PRECONDITION_REQUIRED: StatusCode = _

428 Precondition Required [RFC6585]

-
source

pub const TOO_MANY_REQUESTS: StatusCode = _

429 Too Many Requests +

source

pub const TOO_MANY_REQUESTS: StatusCode = _

429 Too Many Requests [RFC6585]

-
source

pub const REQUEST_HEADER_FIELDS_TOO_LARGE: StatusCode = _

431 Request Header Fields Too Large +

source

pub const REQUEST_HEADER_FIELDS_TOO_LARGE: StatusCode = _

431 Request Header Fields Too Large [RFC6585]

-

451 Unavailable For Legal Reasons +

451 Unavailable For Legal Reasons [RFC7725]

-
source

pub const INTERNAL_SERVER_ERROR: StatusCode = _

500 Internal Server Error +

source

pub const INTERNAL_SERVER_ERROR: StatusCode = _

500 Internal Server Error [RFC7231, Section 6.6.1]

-
source

pub const NOT_IMPLEMENTED: StatusCode = _

501 Not Implemented +

source

pub const NOT_IMPLEMENTED: StatusCode = _

501 Not Implemented [RFC7231, Section 6.6.2]

-
source

pub const BAD_GATEWAY: StatusCode = _

502 Bad Gateway +

source

pub const BAD_GATEWAY: StatusCode = _

502 Bad Gateway [RFC7231, Section 6.6.3]

-
source

pub const SERVICE_UNAVAILABLE: StatusCode = _

503 Service Unavailable +

source

pub const SERVICE_UNAVAILABLE: StatusCode = _

503 Service Unavailable [RFC7231, Section 6.6.4]

-
source

pub const GATEWAY_TIMEOUT: StatusCode = _

504 Gateway Timeout +

source

pub const GATEWAY_TIMEOUT: StatusCode = _

504 Gateway Timeout [RFC7231, Section 6.6.5]

-
source

pub const HTTP_VERSION_NOT_SUPPORTED: StatusCode = _

505 HTTP Version Not Supported +

source

pub const HTTP_VERSION_NOT_SUPPORTED: StatusCode = _

505 HTTP Version Not Supported [RFC7231, Section 6.6.6]

-
source

pub const VARIANT_ALSO_NEGOTIATES: StatusCode = _

506 Variant Also Negotiates +

source

pub const VARIANT_ALSO_NEGOTIATES: StatusCode = _

506 Variant Also Negotiates [RFC2295]

-
source

pub const INSUFFICIENT_STORAGE: StatusCode = _

507 Insufficient Storage +

source

pub const INSUFFICIENT_STORAGE: StatusCode = _

507 Insufficient Storage [RFC4918]

-
source

pub const LOOP_DETECTED: StatusCode = _

508 Loop Detected +

source

pub const LOOP_DETECTED: StatusCode = _

508 Loop Detected [RFC5842]

-
source

pub const NOT_EXTENDED: StatusCode = _

510 Not Extended +

source

pub const NOT_EXTENDED: StatusCode = _

510 Not Extended [RFC2774]

-
source

pub const NETWORK_AUTHENTICATION_REQUIRED: StatusCode = _

511 Network Authentication Required +

source

pub const NETWORK_AUTHENTICATION_REQUIRED: StatusCode = _

511 Network Authentication Required [RFC6585]

-

Trait Implementations§

source§

impl Clone for StatusCode

source§

fn clone(&self) -> StatusCode

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for StatusCode

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl Default for StatusCode

source§

fn default() -> StatusCode

Returns the “default value” for a type. Read more
source§

impl Display for StatusCode

Formats the status code, including the canonical reason.

+

Trait Implementations§

source§

impl Clone for StatusCode

source§

fn clone(&self) -> StatusCode

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for StatusCode

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl Default for StatusCode

source§

fn default() -> StatusCode

Returns the “default value” for a type. Read more
source§

impl Display for StatusCode

Formats the status code, including the canonical reason.

§Example

assert_eq!(format!("{}", StatusCode::OK), "200 OK");
-
source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl<'a> From<&'a StatusCode> for StatusCode

source§

fn from(t: &'a StatusCode) -> StatusCode

Converts to this type from the input type.
source§

impl FromStr for StatusCode

source§

type Err = InvalidStatusCode

The associated error which can be returned from parsing.
source§

fn from_str(s: &str) -> Result<StatusCode, InvalidStatusCode>

Parses a string s to return a value of this type. Read more
source§

impl Hash for StatusCode

source§

fn hash<__H>(&self, state: &mut __H)
where +
source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more

source§

impl<'a> From<&'a StatusCode> for StatusCode

source§

fn from(t: &'a StatusCode) -> StatusCode

Converts to this type from the input type.
source§

impl FromStr for StatusCode

source§

type Err = InvalidStatusCode

The associated error which can be returned from parsing.
source§

fn from_str(s: &str) -> Result<StatusCode, InvalidStatusCode>

Parses a string s to return a value of this type. Read more
source§

impl Hash for StatusCode

source§

fn hash<__H>(&self, state: &mut __H)
where __H: Hasher,

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, - Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl Ord for StatusCode

source§

fn cmp(&self, other: &StatusCode) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Self
where + Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl Ord for StatusCode

source§

fn cmp(&self, other: &StatusCode) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · source§

fn clamp(self, min: Self, max: Self) -> Self
where - Self: Sized,

Restrict a value to a certain interval. Read more
source§

impl PartialEq<u16> for StatusCode

source§

fn eq(&self, other: &u16) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
source§

impl PartialEq for StatusCode

source§

fn eq(&self, other: &StatusCode) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
source§

impl PartialOrd for StatusCode

source§

fn partial_cmp(&self, other: &StatusCode) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the + Self: Sized,
Restrict a value to a certain interval. Read more
source§

impl PartialEq<u16> for StatusCode

source§

fn eq(&self, other: &u16) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
source§

impl PartialEq for StatusCode

source§

fn eq(&self, other: &StatusCode) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
source§

impl PartialOrd for StatusCode

source§

fn partial_cmp(&self, other: &StatusCode) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by -the >= operator. Read more
source§

impl<'a> TryFrom<&'a [u8]> for StatusCode

source§

type Error = InvalidStatusCode

The type returned in the event of a conversion error.
source§

fn try_from( +the >= operator. Read more

source§

impl<'a> TryFrom<&'a [u8]> for StatusCode

source§

type Error = InvalidStatusCode

The type returned in the event of a conversion error.
source§

fn try_from( t: &'a [u8], -) -> Result<StatusCode, <StatusCode as TryFrom<&'a [u8]>>::Error>

Performs the conversion.
source§

impl<'a> TryFrom<&'a str> for StatusCode

source§

type Error = InvalidStatusCode

The type returned in the event of a conversion error.
source§

fn try_from( +) -> Result<StatusCode, <StatusCode as TryFrom<&'a [u8]>>::Error>

Performs the conversion.
source§

impl<'a> TryFrom<&'a str> for StatusCode

source§

type Error = InvalidStatusCode

The type returned in the event of a conversion error.
source§

fn try_from( t: &'a str, -) -> Result<StatusCode, <StatusCode as TryFrom<&'a str>>::Error>

Performs the conversion.
source§

impl TryFrom<u16> for StatusCode

source§

type Error = InvalidStatusCode

The type returned in the event of a conversion error.
source§

fn try_from(t: u16) -> Result<StatusCode, <StatusCode as TryFrom<u16>>::Error>

Performs the conversion.
source§

impl Copy for StatusCode

source§

impl Eq for StatusCode

source§

impl StructuralPartialEq for StatusCode

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where +) -> Result<StatusCode, <StatusCode as TryFrom<&'a str>>::Error>

Performs the conversion.
source§

impl TryFrom<u16> for StatusCode

source§

type Error = InvalidStatusCode

The type returned in the event of a conversion error.
source§

fn try_from(t: u16) -> Result<StatusCode, <StatusCode as TryFrom<u16>>::Error>

Performs the conversion.
source§

impl Copy for StatusCode

source§

impl Eq for StatusCode

source§

impl StructuralPartialEq for StatusCode

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where diff --git a/current/hyper/struct.Uri.html b/current/hyper/struct.Uri.html index e1c980c033b..bdf6772abf6 100644 --- a/current/hyper/struct.Uri.html +++ b/current/hyper/struct.Uri.html @@ -1,4 +1,4 @@ -Uri in hyper - Rust
hyper

Struct Uri

source
pub struct Uri { /* private fields */ }
Expand description

The URI component of a request.

+Uri in hyper - Rust
hyper

Struct Uri

source
pub struct Uri { /* private fields */ }
Expand description

The URI component of a request.

For HTTP 1, this is included as part of the request line. From Section 5.3, Request Target:

@@ -29,7 +29,7 @@

§Examples

assert_eq!(uri.scheme_str(), Some("https")); assert_eq!(uri.host(), Some("www.rust-lang.org")); assert_eq!(uri.path(), "/install.html");
-

Implementations§

source§

impl Uri

source

pub fn builder() -> Builder

Creates a new builder-style object to manufacture a Uri.

+

Implementations§

source§

impl Uri

source

pub fn builder() -> Builder

Creates a new builder-style object to manufacture a Uri.

This method returns an instance of Builder which can be usd to create a Uri.

§Examples
@@ -41,7 +41,7 @@
§Examples
.path_and_query("/") .build() .unwrap();
-
source

pub fn from_parts(src: Parts) -> Result<Uri, InvalidUriParts>

Attempt to convert a Parts into a Uri.

+
source

pub fn from_parts(src: Parts) -> Result<Uri, InvalidUriParts>

Attempt to convert a Parts into a Uri.

§Examples

Relative URI

@@ -66,11 +66,11 @@
§Examples
assert_eq!(uri.scheme().unwrap().as_str(), "http"); assert_eq!(uri.authority().unwrap(), "foo.com"); assert_eq!(uri.path(), "/foo");
-
source

pub fn from_maybe_shared<T>(src: T) -> Result<Uri, InvalidUri>
where +

source

pub fn from_maybe_shared<T>(src: T) -> Result<Uri, InvalidUri>
where T: AsRef<[u8]> + 'static,

Attempt to convert a Bytes buffer to a Uri.

This will try to prevent a copy if the type passed is the type used internally, and will copy the data if it is not.

-
source

pub fn from_static(src: &'static str) -> Uri

Convert a Uri from a static string.

+
source

pub fn from_static(src: &'static str) -> Uri

Convert a Uri from a static string.

This function will not perform any copying, however the string is checked to ensure that it is valid.

§Panics
@@ -80,7 +80,7 @@
§Examples
assert_eq!(uri.host().unwrap(), "example.com"); assert_eq!(uri.path(), "/foo");
-

source

pub fn into_parts(self) -> Parts

Convert a Uri into Parts.

+
source

pub fn into_parts(self) -> Parts

Convert a Uri into Parts.

§Note

This is just an inherent method providing the same functionality as let parts: Parts = uri.into()

@@ -93,8 +93,8 @@
§Examples
assert!(parts.scheme.is_none()); assert!(parts.authority.is_none());
-
source

pub fn path_and_query(&self) -> Option<&PathAndQuery>

Returns the path & query components of the Uri

-
source

pub fn path(&self) -> &str

Get the path of this Uri.

+
source

pub fn path_and_query(&self) -> Option<&PathAndQuery>

Returns the path & query components of the Uri

+
source

pub fn path(&self) -> &str

Get the path of this Uri.

Both relative and absolute URIs contain a path component, though it might be the empty string. The path component is case sensitive.

abc://username:password@example.com:123/path/data?key=value&key2=value2#fragid1
@@ -114,7 +114,7 @@ 
§Examples
let uri: Uri = "http://example.org/hello/world".parse().unwrap();
 
 assert_eq!(uri.path(), "/hello/world");
-
source

pub fn scheme(&self) -> Option<&Scheme>

Get the scheme of this Uri.

+
source

pub fn scheme(&self) -> Option<&Scheme>

Get the scheme of this Uri.

The URI scheme refers to a specification for assigning identifiers within that scheme. Only absolute URIs contain a scheme component, but not all absolute URIs will contain a scheme component. Although scheme @@ -135,12 +135,12 @@

§Examples
let uri: Uri = "/hello/world".parse().unwrap();
 
 assert!(uri.scheme().is_none());
-
source

pub fn scheme_str(&self) -> Option<&str>

Get the scheme of this Uri as a &str.

+
source

pub fn scheme_str(&self) -> Option<&str>

Get the scheme of this Uri as a &str.

§Example
let uri: Uri = "http://example.org/hello/world".parse().unwrap();
 
 assert_eq!(uri.scheme_str(), Some("http"));
-
source

pub fn authority(&self) -> Option<&Authority>

Get the authority of this Uri.

+
source

pub fn authority(&self) -> Option<&Authority>

Get the authority of this Uri.

The authority is a hierarchical element for naming authority such that the remainder of the URI is delegated to that authority. For HTTP, the authority consists of the host and port. The host portion of the @@ -161,7 +161,7 @@

§Example
let uri: Uri = "/hello/world".parse().unwrap();
 
 assert!(uri.authority().is_none());
-
source

pub fn host(&self) -> Option<&str>

Get the host of this Uri.

+
source

pub fn host(&self) -> Option<&str>

Get the host of this Uri.

The host subcomponent of authority is identified by an IP literal encapsulated within square brackets, an IPv4 address in dotted- decimal form, or a registered name. The host subcomponent is case-insensitive.

@@ -179,7 +179,7 @@
§Example
let uri: Uri = "/hello/world".parse().unwrap();
 
 assert!(uri.host().is_none());
-
source

pub fn port(&self) -> Option<Port<&str>>

Get the port part of this Uri.

+
source

pub fn port(&self) -> Option<Port<&str>>

Get the port part of this Uri.

The port subcomponent of authority is designated by an optional port number following the host and delimited from it by a single colon (“:”) character. It can be turned into a decimal port number with the as_u16 @@ -204,12 +204,12 @@

§Example
let uri: Uri = "/hello/world".parse().unwrap();
 
 assert!(uri.port().is_none());
-
source

pub fn port_u16(&self) -> Option<u16>

Get the port of this Uri as a u16.

+
source

pub fn port_u16(&self) -> Option<u16>

Get the port of this Uri as a u16.

§Example
let uri: Uri = "http://example.org:80/hello/world".parse().unwrap();
 
 assert_eq!(uri.port_u16(), Some(80));
-
source

pub fn query(&self) -> Option<&str>

Get the query string of this Uri, starting after the ?.

+
source

pub fn query(&self) -> Option<&str>

Get the query string of this Uri, starting after the ?.

The query component contains non-hierarchical data that, along with data in the path component, serves to identify a resource within the scope of the URI’s scheme and naming authority (if any). The query component is @@ -234,20 +234,20 @@

§Example
let uri: Uri = "/hello/world".parse().unwrap();
 
 assert!(uri.query().is_none());
-

Trait Implementations§

source§

impl Clone for Uri

source§

fn clone(&self) -> Uri

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Uri

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl Default for Uri

Returns a Uri representing /

-
source§

fn default() -> Uri

Returns the “default value” for a type. Read more
source§

impl Display for Uri

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl From<Authority> for Uri

Convert an Authority into a Uri.

-
source§

fn from(authority: Authority) -> Uri

Converts to this type from the input type.
source§

impl From<PathAndQuery> for Uri

Convert a PathAndQuery into a Uri.

-
source§

fn from(path_and_query: PathAndQuery) -> Uri

Converts to this type from the input type.
source§

impl FromStr for Uri

source§

type Err = InvalidUri

The associated error which can be returned from parsing.
source§

fn from_str(s: &str) -> Result<Uri, InvalidUri>

Parses a string s to return a value of this type. Read more
source§

impl Hash for Uri

source§

fn hash<H>(&self, state: &mut H)
where +

Trait Implementations§

source§

impl Clone for Uri

source§

fn clone(&self) -> Uri

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Uri

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl Default for Uri

Returns a Uri representing /

+
source§

fn default() -> Uri

Returns the “default value” for a type. Read more
source§

impl Display for Uri

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl From<Authority> for Uri

Convert an Authority into a Uri.

+
source§

fn from(authority: Authority) -> Uri

Converts to this type from the input type.
source§

impl From<PathAndQuery> for Uri

Convert a PathAndQuery into a Uri.

+
source§

fn from(path_and_query: PathAndQuery) -> Uri

Converts to this type from the input type.
source§

impl FromStr for Uri

source§

type Err = InvalidUri

The associated error which can be returned from parsing.
source§

fn from_str(s: &str) -> Result<Uri, InvalidUri>

Parses a string s to return a value of this type. Read more
source§

impl Hash for Uri

source§

fn hash<H>(&self, state: &mut H)
where H: Hasher,

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, - Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl<'a> PartialEq<&'a str> for Uri

source§

fn eq(&self, other: &&'a str) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
source§

impl<'a> PartialEq<Uri> for &'a str

source§

fn eq(&self, uri: &Uri) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
source§

impl PartialEq<Uri> for str

source§

fn eq(&self, uri: &Uri) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
source§

impl PartialEq<str> for Uri

source§

fn eq(&self, other: &str) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
source§

impl PartialEq for Uri

source§

fn eq(&self, other: &Uri) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, + Self: Sized,
Feeds a slice of this type into the given Hasher. Read more
source§

impl<'a> PartialEq<&'a str> for Uri

source§

fn eq(&self, other: &&'a str) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
source§

impl<'a> PartialEq<Uri> for &'a str

source§

fn eq(&self, uri: &Uri) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
source§

impl PartialEq<Uri> for str

source§

fn eq(&self, uri: &Uri) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
source§

impl PartialEq<str> for Uri

source§

fn eq(&self, other: &str) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
source§

impl PartialEq for Uri

source§

fn eq(&self, other: &Uri) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl<R> Service<Uri> for HttpConnector<R>
where R: Resolve + Clone + Send + Sync + 'static, - R::Future: Send,

source§

type Response = TcpStream

Responses given by the service.
source§

type Error = ConnectError

Errors produced by the service.
source§

type Future = HttpConnecting<R>

The future response value.
source§

fn poll_ready(&mut self, cx: &mut Context<'_>) -> Poll<Result<(), Self::Error>>

Returns Poll::Ready(Ok(())) when the service is able to process requests. Read more
source§

fn call(&mut self, dst: Uri) -> Self::Future

Process the request and return the response asynchronously. Read more
source§

impl<'a> TryFrom<&'a [u8]> for Uri

source§

type Error = InvalidUri

The type returned in the event of a conversion error.
source§

fn try_from(t: &'a [u8]) -> Result<Uri, <Uri as TryFrom<&'a [u8]>>::Error>

Performs the conversion.
source§

impl<'a> TryFrom<&'a String> for Uri

source§

type Error = InvalidUri

The type returned in the event of a conversion error.
source§

fn try_from(t: &'a String) -> Result<Uri, <Uri as TryFrom<&'a String>>::Error>

Performs the conversion.
source§

impl<'a> TryFrom<&'a Uri> for Uri

source§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(src: &'a Uri) -> Result<Uri, <Uri as TryFrom<&'a Uri>>::Error>

Performs the conversion.
source§

impl<'a> TryFrom<&'a str> for Uri

source§

type Error = InvalidUri

The type returned in the event of a conversion error.
source§

fn try_from(t: &'a str) -> Result<Uri, <Uri as TryFrom<&'a str>>::Error>

Performs the conversion.
source§

impl TryFrom<Parts> for Uri

source§

type Error = InvalidUriParts

The type returned in the event of a conversion error.
source§

fn try_from(src: Parts) -> Result<Uri, <Uri as TryFrom<Parts>>::Error>

Performs the conversion.
source§

impl TryFrom<String> for Uri

source§

type Error = InvalidUri

The type returned in the event of a conversion error.
source§

fn try_from(t: String) -> Result<Uri, <Uri as TryFrom<String>>::Error>

Performs the conversion.
source§

impl<'a> TryFrom<Vec<u8>> for Uri

source§

type Error = InvalidUri

The type returned in the event of a conversion error.
source§

fn try_from(vec: Vec<u8>) -> Result<Uri, <Uri as TryFrom<Vec<u8>>>::Error>

Performs the conversion.
source§

impl Eq for Uri

Auto Trait Implementations§

§

impl !Freeze for Uri

§

impl RefUnwindSafe for Uri

§

impl Send for Uri

§

impl Sync for Uri

§

impl Unpin for Uri

§

impl UnwindSafe for Uri

Blanket Implementations§

source§

impl<T> Any for T
where + R::Future: Send,

source§

type Response = TcpStream

Responses given by the service.
source§

type Error = ConnectError

Errors produced by the service.
source§

type Future = HttpConnecting<R>

The future response value.
source§

fn poll_ready(&mut self, cx: &mut Context<'_>) -> Poll<Result<(), Self::Error>>

Returns Poll::Ready(Ok(())) when the service is able to process requests. Read more
source§

fn call(&mut self, dst: Uri) -> Self::Future

Process the request and return the response asynchronously. Read more
source§

impl<'a> TryFrom<&'a [u8]> for Uri

source§

type Error = InvalidUri

The type returned in the event of a conversion error.
source§

fn try_from(t: &'a [u8]) -> Result<Uri, <Uri as TryFrom<&'a [u8]>>::Error>

Performs the conversion.
source§

impl<'a> TryFrom<&'a String> for Uri

source§

type Error = InvalidUri

The type returned in the event of a conversion error.
source§

fn try_from(t: &'a String) -> Result<Uri, <Uri as TryFrom<&'a String>>::Error>

Performs the conversion.
source§

impl<'a> TryFrom<&'a Uri> for Uri

source§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(src: &'a Uri) -> Result<Uri, <Uri as TryFrom<&'a Uri>>::Error>

Performs the conversion.
source§

impl<'a> TryFrom<&'a str> for Uri

source§

type Error = InvalidUri

The type returned in the event of a conversion error.
source§

fn try_from(t: &'a str) -> Result<Uri, <Uri as TryFrom<&'a str>>::Error>

Performs the conversion.
source§

impl TryFrom<Parts> for Uri

source§

type Error = InvalidUriParts

The type returned in the event of a conversion error.
source§

fn try_from(src: Parts) -> Result<Uri, <Uri as TryFrom<Parts>>::Error>

Performs the conversion.
source§

impl TryFrom<String> for Uri

source§

type Error = InvalidUri

The type returned in the event of a conversion error.
source§

fn try_from(t: String) -> Result<Uri, <Uri as TryFrom<String>>::Error>

Performs the conversion.
source§

impl<'a> TryFrom<Vec<u8>> for Uri

source§

type Error = InvalidUri

The type returned in the event of a conversion error.
source§

fn try_from(vec: Vec<u8>) -> Result<Uri, <Uri as TryFrom<Vec<u8>>>::Error>

Performs the conversion.
source§

impl Eq for Uri

Auto Trait Implementations§

§

impl !Freeze for Uri

§

impl RefUnwindSafe for Uri

§

impl Send for Uri

§

impl Sync for Uri

§

impl Unpin for Uri

§

impl UnwindSafe for Uri

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where diff --git a/current/hyper/struct.Version.html b/current/hyper/struct.Version.html index 800927baa00..acb33c508e9 100644 --- a/current/hyper/struct.Version.html +++ b/current/hyper/struct.Version.html @@ -1,20 +1,20 @@ -Version in hyper - Rust
hyper

Struct Version

source
pub struct Version(/* private fields */);
Expand description

Represents a version of the HTTP spec.

-

Implementations§

source§

impl Version

source

pub const HTTP_09: Version = _

HTTP/0.9

-
source

pub const HTTP_10: Version = _

HTTP/1.0

-
source

pub const HTTP_11: Version = _

HTTP/1.1

-
source

pub const HTTP_2: Version = _

HTTP/2.0

-
source

pub const HTTP_3: Version = _

HTTP/3.0

-

Trait Implementations§

source§

impl Clone for Version

source§

fn clone(&self) -> Version

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Version

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl Default for Version

source§

fn default() -> Version

Returns the “default value” for a type. Read more
source§

impl Hash for Version

source§

fn hash<__H>(&self, state: &mut __H)
where +Version in hyper - Rust
hyper

Struct Version

source
pub struct Version(/* private fields */);
Expand description

Represents a version of the HTTP spec.

+

Implementations§

source§

impl Version

source

pub const HTTP_09: Version = _

HTTP/0.9

+
source

pub const HTTP_10: Version = _

HTTP/1.0

+
source

pub const HTTP_11: Version = _

HTTP/1.1

+
source

pub const HTTP_2: Version = _

HTTP/2.0

+
source

pub const HTTP_3: Version = _

HTTP/3.0

+

Trait Implementations§

source§

impl Clone for Version

source§

fn clone(&self) -> Version

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Version

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl Default for Version

source§

fn default() -> Version

Returns the “default value” for a type. Read more
source§

impl Hash for Version

source§

fn hash<__H>(&self, state: &mut __H)
where __H: Hasher,

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, - Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl Ord for Version

source§

fn cmp(&self, other: &Version) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Self
where + Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl Ord for Version

source§

fn cmp(&self, other: &Version) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · source§

fn clamp(self, min: Self, max: Self) -> Self
where - Self: Sized,

Restrict a value to a certain interval. Read more
source§

impl PartialEq for Version

source§

fn eq(&self, other: &Version) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
source§

impl PartialOrd for Version

source§

fn partial_cmp(&self, other: &Version) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the + Self: Sized,

Restrict a value to a certain interval. Read more
source§

impl PartialEq for Version

source§

fn eq(&self, other: &Version) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
source§

impl PartialOrd for Version

source§

fn partial_cmp(&self, other: &Version) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by -the >= operator. Read more
source§

impl Copy for Version

source§

impl Eq for Version

source§

impl StructuralPartialEq for Version

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where +the >= operator. Read more

source§

impl Copy for Version

source§

impl Eq for Version

source§

impl StructuralPartialEq for Version

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where diff --git a/current/poise/reply/struct.CreateReply.html b/current/poise/reply/struct.CreateReply.html index 97d2b49b84a..d254665602f 100644 --- a/current/poise/reply/struct.CreateReply.html +++ b/current/poise/reply/struct.CreateReply.html @@ -15,37 +15,36 @@
§components: Option<Vec<CreateActionRow>>

Message components, that is, buttons and select menus.

§allowed_mentions: Option<CreateAllowedMentions>

The allowed mentions for the message.

§reply: bool

Whether this message is an inline reply.

-

Implementations§

source§

impl CreateReply

source

pub fn content(self, content: impl Into<String>) -> Self

Set the content of the message.

+

Implementations§

source§

impl CreateReply

source

pub fn content(self, content: impl Into<String>) -> Self

Set the content of the message.

source

pub fn embed(self, embed: CreateEmbed) -> Self

Adds an embed to the message.

Existing embeds are kept.

source

pub fn components(self, components: Vec<CreateActionRow>) -> Self

Set components (buttons and select menus) for this message.

Any previously set components will be overwritten.

-
source

pub fn attachment(self, attachment: CreateAttachment) -> Self

Add an attachment.

-

This will not have an effect in a slash command’s initial response!

-
source

pub fn ephemeral(self, ephemeral: bool) -> Self

Toggles whether the message is an ephemeral response (only invoking user can see it).

+
source

pub fn attachment(self, attachment: CreateAttachment) -> Self

Add an attachment.

+
source

pub fn ephemeral(self, ephemeral: bool) -> Self

Toggles whether the message is an ephemeral response (only invoking user can see it).

This only has an effect in slash commands!

-
source

pub fn allowed_mentions(self, allowed_mentions: CreateAllowedMentions) -> Self

Set the allowed mentions for the message.

+
source

pub fn allowed_mentions(self, allowed_mentions: CreateAllowedMentions) -> Self

Set the allowed mentions for the message.

See serenity::CreateAllowedMentions for more information.

-
source

pub fn reply(self, reply: bool) -> Self

Makes this message an inline reply to another message like serenity::Message::reply +

source

pub fn reply(self, reply: bool) -> Self

Makes this message an inline reply to another message like serenity::Message::reply (prefix-only, because slash commands are always inline replies anyways).

To disable the ping, set Self::allowed_mentions with serenity::CreateAllowedMentions::replied_user set to false.

-
source§

impl CreateReply

Methods to create a message builder from any type from this CreateReply. Used by poise +

source§

impl CreateReply

Methods to create a message builder from any type from this CreateReply. Used by poise internally to actually send a response to Discord

-
source

pub fn to_slash_followup_response( self, builder: CreateInteractionResponseFollowup, ) -> CreateInteractionResponseFollowup

Serialize this response builder to a serenity::CreateInteractionResponseFollowup

-
source

pub fn to_slash_initial_response_edit( +

source

pub fn to_slash_initial_response_edit( self, builder: EditInteractionResponse, ) -> EditInteractionResponse

Serialize this response builder to a serenity::EditInteractionResponse

-
source

pub fn to_prefix_edit(self, builder: EditMessage) -> EditMessage

Serialize this response builder to a serenity::EditMessage

-
source

pub fn to_prefix(self, invocation_message: MessageReference) -> CreateMessage

Serialize this response builder to a serenity::CreateMessage

+
source

pub fn to_prefix_edit(self, builder: EditMessage) -> EditMessage

Serialize this response builder to a serenity::EditMessage

+
source

pub fn to_prefix(self, invocation_message: MessageReference) -> CreateMessage

Serialize this response builder to a serenity::CreateMessage

Trait Implementations§

source§

impl Clone for CreateReply

source§

fn clone(&self) -> CreateReply

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Default for CreateReply

source§

fn default() -> CreateReply

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where diff --git a/current/src/poise/reply/builder.rs.html b/current/src/poise/reply/builder.rs.html index 053a454d443..9a062505615 100644 --- a/current/src/poise/reply/builder.rs.html +++ b/current/src/poise/reply/builder.rs.html @@ -246,7 +246,8 @@ 245 246 247 -248
//! The builder to create a new reply
+248
+249

//! The builder to create a new reply
 
 use crate::serenity_prelude as serenity;
 
@@ -295,8 +296,6 @@
     }
 
     /// Add an attachment.
-    ///
-    /// This will not have an effect in a slash command's initial response!
     pub fn attachment(mut self, attachment: serenity::CreateAttachment) -> Self {
         self.attachments.push(attachment);
         self
@@ -405,8 +404,8 @@
         let crate::CreateReply {
             content,
             embeds,
-            attachments: _, // no support for attachment edits in serenity yet
-            components,
+            attachments,
+            components,
             ephemeral: _, // can't edit ephemerality in retrospect
             allowed_mentions,
             reply: _,
@@ -422,6 +421,9 @@
         if let Some(allowed_mentions) = allowed_mentions {
             builder = builder.allowed_mentions(allowed_mentions);
         }
+        for attachment in attachments {
+            builder = builder.new_attachment(attachment);
+        }
 
         builder.embeds(embeds)
     }