Struct libnghttp2_sys::nghttp2_ext_altsvc [−][src]
@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(&self) -> nghttp2_ext_altsvc
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for nghttp2_ext_altsvc
[src]
impl Debug for nghttp2_ext_altsvc
[src]
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
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,