[−][src]Enum hpack_codec::table::StaticEntry
A list specifying the entries of the static table.
See: [Appendix A. Static Table Definition)(https://tools.ietf.org/html/rfc7541#appendix-A)
Variants
This is an alias of MethodGet
.
This is an alias of PathRoot
.
This is an alias of SchemeHttp
.
This is an alias of Status200
.
This is an alias of AcceptEncodingGzipDeflate
.
Methods
impl StaticEntry
[src]
pub fn entries_count() -> usize
[src]
Returns the entries count of the static table.
Examples
use hpack_codec::table::StaticEntry; assert_eq!(StaticEntry::entries_count(), 61);
pub fn from_index(index: Index) -> Option<Self>
[src]
Makes a new StaticEntry
instance associated with the specified index.
If the value of index
is greater than StaticEntry::entries_count()
,
this function will return None
.
Trait Implementations
impl<'a> From<StaticEntry> for RawHeaderField<'a>
[src]
fn from(f: StaticEntry) -> Self
[src]
impl From<StaticEntry> for Index
[src]
fn from(f: StaticEntry) -> Self
[src]
impl From<StaticEntry> for HeaderField<'static>
[src]
fn from(f: StaticEntry) -> Self
[src]
impl Clone for StaticEntry
[src]
fn clone(&self) -> StaticEntry
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for StaticEntry
[src]
impl Debug for StaticEntry
[src]
Auto Trait Implementations
impl Send for StaticEntry
impl Sync for StaticEntry
impl Unpin for StaticEntry
impl UnwindSafe for StaticEntry
impl RefUnwindSafe for StaticEntry
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,