pub struct Http2ProtocolOptions {Show 15 fields
pub hpack_table_size: Option<u32>,
pub max_concurrent_streams: Option<u32>,
pub initial_stream_window_size: Option<u32>,
pub initial_connection_window_size: Option<u32>,
pub allow_connect: bool,
pub allow_metadata: bool,
pub max_outbound_frames: Option<u32>,
pub max_outbound_control_frames: Option<u32>,
pub max_consecutive_inbound_frames_with_empty_payload: Option<u32>,
pub max_inbound_priority_frames_per_stream: Option<u32>,
pub max_inbound_window_update_frames_per_data_frame_sent: Option<u32>,
pub stream_error_on_invalid_http_messaging: bool,
pub override_stream_error_on_invalid_http_message: Option<bool>,
pub custom_settings_parameters: Vec<SettingsParameter>,
pub connection_keepalive: Option<KeepaliveSettings>,
}
Fields
hpack_table_size: Option<u32>
max_concurrent_streams: Option<u32>
initial_stream_window_size: Option<u32>
initial_connection_window_size: Option<u32>
allow_connect: bool
allow_metadata: bool
max_outbound_frames: Option<u32>
max_outbound_control_frames: Option<u32>
max_consecutive_inbound_frames_with_empty_payload: Option<u32>
max_inbound_priority_frames_per_stream: Option<u32>
max_inbound_window_update_frames_per_data_frame_sent: Option<u32>
stream_error_on_invalid_http_messaging: bool
👎Deprecated
override_stream_error_on_invalid_http_message: Option<bool>
custom_settings_parameters: Vec<SettingsParameter>
connection_keepalive: Option<KeepaliveSettings>
Trait Implementations
sourceimpl Clone for Http2ProtocolOptions
impl Clone for Http2ProtocolOptions
sourcefn clone(&self) -> Http2ProtocolOptions
fn clone(&self) -> Http2ProtocolOptions
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 moresourceimpl Debug for Http2ProtocolOptions
impl Debug for Http2ProtocolOptions
sourceimpl Default for Http2ProtocolOptions
impl Default for Http2ProtocolOptions
sourceimpl Message for Http2ProtocolOptions
impl Message for Http2ProtocolOptions
sourcefn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
sourcefn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Encodes the message to a buffer. Read more
sourcefn encode_to_vec(&self) -> Vec<u8, Global>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A>where
A: Allocator,
fn encode_to_vec(&self) -> Vec<u8, Global>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A>where
A: Allocator,
A: Allocator,
Encodes the message to a newly allocated buffer.
sourcefn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Encodes the message with a length-delimiter to a buffer. Read more
sourcefn encode_length_delimited_to_vec(&self) -> Vec<u8, Global>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A>where
A: Allocator,
fn encode_length_delimited_to_vec(&self) -> Vec<u8, Global>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A>where
A: Allocator,
A: Allocator,
Encodes the message with a length-delimiter to a newly allocated buffer.
sourcefn decode<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
fn decode<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
Decodes an instance of the message from a buffer. Read more
sourcefn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
Decodes a length-delimited instance of the message from the buffer.
sourcefn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Decodes an instance of the message from a buffer, and merges it into
self
. Read moresourcefn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self
. Read moresourceimpl PartialEq<Http2ProtocolOptions> for Http2ProtocolOptions
impl PartialEq<Http2ProtocolOptions> for Http2ProtocolOptions
sourcefn eq(&self, other: &Http2ProtocolOptions) -> bool
fn eq(&self, other: &Http2ProtocolOptions) -> bool
impl StructuralPartialEq for Http2ProtocolOptions
Auto Trait Implementations
impl RefUnwindSafe for Http2ProtocolOptions
impl Send for Http2ProtocolOptions
impl Sync for Http2ProtocolOptions
impl Unpin for Http2ProtocolOptions
impl UnwindSafe for Http2ProtocolOptions
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
sourcefn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request