pub struct Builder { /* private fields */ }
Expand description
Allows the endpoint limits to be built with specific values
§Examples
Set the maximum inflight handshakes for this endpoint.
use s2n_quic::provider::endpoint_limits;
let limits = endpoint_limits::Default::builder()
.with_inflight_handshake_limit(100)?
.build();
Ok(())
Implementations§
source§impl Builder
impl Builder
sourcepub fn with_inflight_handshake_limit(
self,
limit: usize
) -> Result<Self, Infallible>
pub fn with_inflight_handshake_limit( self, limit: usize ) -> Result<Self, Infallible>
Sets limit on inflight handshakes
sourcepub fn build(self) -> Result<Limits, Infallible>
pub fn build(self) -> Result<Limits, Infallible>
Build the limits
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