#[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, }
Expand description

@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

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.