Enum jsonrpc_client_http::header::RangeUnit [−][src]
pub enum RangeUnit {
Bytes,
None,
Unregistered(String),
}Range Units, described in RFC7233
A representation can be partitioned into subranges according to various structural units, depending on the structure inherent in the representation's media type.
ABNF
range-unit = bytes-unit / other-range-unit
bytes-unit = "bytes"
other-range-unit = token
Variants
BytesIndicating byte-range requests are supported.
NoneReserved as keyword, indicating no ranges are supported.
Unregistered(String)The given range unit is not registered at IANA.
Trait Implementations
impl PartialEq<RangeUnit> for RangeUnit[src]
impl PartialEq<RangeUnit> for RangeUnitfn eq(&self, other: &RangeUnit) -> bool[src]
fn eq(&self, other: &RangeUnit) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &RangeUnit) -> bool[src]
fn ne(&self, other: &RangeUnit) -> boolThis method tests for !=.
impl Clone for RangeUnit[src]
impl Clone for RangeUnitfn clone(&self) -> RangeUnit[src]
fn clone(&self) -> RangeUnitReturns 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 FromStr for RangeUnit[src]
impl FromStr for RangeUnittype Err = Error
The associated error which can be returned from parsing.
fn from_str(s: &str) -> Result<RangeUnit, Error>[src]
fn from_str(s: &str) -> Result<RangeUnit, Error>Parses a string s to return a value of this type. Read more
impl Debug for RangeUnit[src]
impl Debug for RangeUnitfn 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 Display for RangeUnit[src]
impl Display for RangeUnitfn 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 Eq for RangeUnit[src]
impl Eq for RangeUnit