Struct quic_rpc::transport::http2::ChannelConfig
source · pub struct ChannelConfig { /* private fields */ }
Expand description
Channel configuration
These settings apply to both client and server channels.
Implementations§
source§impl ChannelConfig
impl ChannelConfig
sourcepub fn max_frame_size(self, value: u32) -> Result<Self, ChannelConfigError>
pub fn max_frame_size(self, value: u32) -> Result<Self, ChannelConfigError>
Set the maximum frame size.
sourcepub fn max_payload_size(self, value: usize) -> Result<Self, ChannelConfigError>
pub fn max_payload_size(self, value: usize) -> Result<Self, ChannelConfigError>
Set the maximum payload size.
Trait Implementations§
source§impl Clone for ChannelConfig
impl Clone for ChannelConfig
source§fn clone(&self) -> ChannelConfig
fn clone(&self) -> ChannelConfig
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more