Struct libnghttp2_sys::nghttp2_info
source · [−]#[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
sourceimpl Clone for nghttp2_info
impl Clone for nghttp2_info
sourcefn clone(&self) -> nghttp2_info
fn clone(&self) -> nghttp2_info
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for nghttp2_info
impl Debug for nghttp2_info
impl Copy for nghttp2_info
Auto Trait Implementations
impl RefUnwindSafe for nghttp2_info
impl !Send for nghttp2_info
impl !Sync for nghttp2_info
impl Unpin for nghttp2_info
impl UnwindSafe for nghttp2_info
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more