[][src]Struct libnghttp2_sys::nghttp2_info

#[repr(C)]
pub struct nghttp2_info {
    pub age: c_int,
    pub version_num: c_int,
    pub version_str: *const c_char,
    pub proto_str: *const c_char,
}

@struct

This struct is what nghttp2_version() returns. It holds information about the particular nghttp2 version.

Fields

age: c_int

Age of this struct. This instance of nghttp2 sets it to :macro:NGHTTP2_VERSION_AGE but a future version may bump it and add more struct fields at the bottom

version_num: c_int

the :macro:NGHTTP2_VERSION_NUM number (since age ==1)

version_str: *const c_char

points to the :macro:NGHTTP2_VERSION string (since age ==1)

proto_str: *const c_char

points to the :macro:NGHTTP2_PROTO_VERSION_ID string this instance implements (since age ==1)

Trait Implementations

impl Clone for nghttp2_info[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Copy for nghttp2_info[src]

impl Debug for nghttp2_info[src]

Auto Trait Implementations

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]