Struct s2n_quic_transport::path::mtu::Builder
source · pub struct Builder { /* private fields */ }
Implementations§
source§impl Builder
impl Builder
sourcepub fn with_initial_mtu(self, initial_mtu: u16) -> Result<Builder, MtuError>
pub fn with_initial_mtu(self, initial_mtu: u16) -> Result<Builder, MtuError>
Sets the maximum transmission unit (MTU) to use when initiating a connection (default: 1228)
For a detailed description see the with_initial_mtu documentation in the IO provider.
sourcepub fn with_base_mtu(self, base_mtu: u16) -> Result<Builder, MtuError>
pub fn with_base_mtu(self, base_mtu: u16) -> Result<Builder, MtuError>
Sets the largest maximum transmission unit (MTU) that can be sent on a path (default: 1500)
For a detailed description see the with_base_mtu documentation in the IO provider.
sourcepub fn with_max_mtu(self, max_mtu: u16) -> Result<Builder, MtuError>
pub fn with_max_mtu(self, max_mtu: u16) -> Result<Builder, MtuError>
Sets the largest maximum transmission unit (MTU) that can be sent on a path (default: 1500)
Application must ensure that max_mtu <= endpoint_mtu_config.max_mtu(). For a detailed description see the with_max_mtu documentation in the IO provider.
pub fn build(self) -> Result<Config, MtuError>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Builder
impl RefUnwindSafe for Builder
impl Send for Builder
impl Sync for Builder
impl Unpin for Builder
impl UnwindSafe for Builder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more