pub struct Builder { /* private fields */ }
๐Deprecated since 0.2.3: This crate has no longer been in maintenance.
Expand description
A builder for Server
.
Implementationsยง
Sourceยงimpl Builder
impl Builder
Sourcepub fn session(&mut self) -> &mut SessionInitializer
๐Deprecated since 0.2.3: This crate has no longer been in maintenance.
pub fn session(&mut self) -> &mut SessionInitializer
Return a reference to the session initializer.
Sourcepub fn pool_size(&mut self, amt: usize) -> &mut Self
๐Deprecated since 0.2.3: This crate has no longer been in maintenance.
pub fn pool_size(&mut self, amt: usize) -> &mut Self
Set the pool size of request contexts.
The default value is 1024
.
ยงPanic
The provided value is less than initial_pooled_contexts
.
Sourcepub fn initial_pooled_contexts(&mut self, amt: usize) -> &mut Self
๐Deprecated since 0.2.3: This crate has no longer been in maintenance.
pub fn initial_pooled_contexts(&mut self, amt: usize) -> &mut Self
Set the number of request contexts stored in the pool before the start of the main loop.
By default, the pool of request contexts does not contain any entries.
ยงPanic
The provided value is greater than pool_size
.
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