Enum twilio_async::header::Expect [−][src]
pub enum Expect {
Continue,
}The Expect header.
The "Expect" header field in a request indicates a certain set of behaviors (expectations) that need to be supported by the server in order to properly handle this request. The only such expectation defined by this specification is 100-continue.
Expect = "100-continue"
Example
use hyper::header::{Headers, Expect}; let mut headers = Headers::new(); headers.set(Expect::Continue);
Variants
ContinueThe value 100-continue.
Trait Implementations
impl PartialEq<Expect> for Expect[src]
impl PartialEq<Expect> for Expectfn eq(&self, other: &Expect) -> bool[src]
fn eq(&self, other: &Expect) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
fn ne(&self, other: &Rhs) -> boolThis method tests for !=.
impl Clone for Expect[src]
impl Clone for Expectfn clone(&self) -> Expect[src]
fn clone(&self) -> ExpectReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)Performs copy-assignment from source. Read more
impl Debug for Expect[src]
impl Debug for Expectfn fmt(&self, f: &mut Formatter) -> Result<(), Error>[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>Formats the value using the given formatter. Read more
impl Header for Expect[src]
impl Header for Expectfn header_name() -> &'static str[src]
fn header_name() -> &'static strReturns the name of the header field this belongs to. Read more
fn parse_header(raw: &Raw) -> Result<Expect, Error>[src]
fn parse_header(raw: &Raw) -> Result<Expect, Error>Parse a header from a raw stream of bytes. Read more
fn fmt_header(&self, f: &mut Formatter) -> Result<(), Error>[src]
fn fmt_header(&self, f: &mut Formatter) -> Result<(), Error>Format a header to outgoing stream. Read more
impl Display for Expect[src]
impl Display for Expectfn fmt(&self, f: &mut Formatter) -> Result<(), Error>[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>Formats the value using the given formatter. Read more
impl Copy for Expect[src]
impl Copy for Expect