Struct libnghttp2_sys::nghttp2_ext_altsvc
source · [−]#[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,
}
Expand description
@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
sourceimpl Clone for nghttp2_ext_altsvc
impl Clone for nghttp2_ext_altsvc
sourcefn clone(&self) -> nghttp2_ext_altsvc
fn clone(&self) -> nghttp2_ext_altsvc
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_ext_altsvc
impl Debug for nghttp2_ext_altsvc
impl Copy for nghttp2_ext_altsvc
Auto Trait Implementations
impl RefUnwindSafe for nghttp2_ext_altsvc
impl !Send for nghttp2_ext_altsvc
impl !Sync for nghttp2_ext_altsvc
impl Unpin for nghttp2_ext_altsvc
impl UnwindSafe for nghttp2_ext_altsvc
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
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.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more