[][src]Struct libnghttp2_sys::nghttp2_ext_altsvc

#[repr(C)]
pub struct nghttp2_ext_altsvc {
    pub origin: *mut u8,
    pub origin_len: usize,
    pub field_value: *mut u8,
    pub field_value_len: usize,
}

@struct

The payload of ALTSVC frame. ALTSVC frame is a non-critical extension to HTTP/2. If this frame is received, and nghttp2_option_set_user_recv_extension_type() is not set, and nghttp2_option_set_builtin_recv_extension_type() is set for :enum:NGHTTP2_ALTSVC, nghttp2_extension.payload will point to this struct.

It has the following members:

Fields

origin: *mut u8

The pointer to origin which this alternative service is associated with. This is not necessarily NULL-terminated.

origin_len: usize

The length of the |origin|.

field_value: *mut u8

The pointer to Alt-Svc field value contained in ALTSVC frame. This is not necessarily NULL-terminated.

field_value_len: usize

The length of the |field_value|.

Trait Implementations

impl Clone for nghttp2_ext_altsvc[src]

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

Performs copy-assignment from source. Read more

impl Copy for nghttp2_ext_altsvc[src]

impl Debug for nghttp2_ext_altsvc[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]