pub struct Builder<P, F> { /* private fields */ }Implementations§
Source§impl<P, F> Builder<P, F>
impl<P, F> Builder<P, F>
pub fn new() -> Self
pub fn pool(self, p: P) -> Self
pub fn relay_fn(self, f: F) -> Self
pub fn bind<A: ToSocketAddrs>(self, addr: A) -> Self
pub fn max_streams(self, max: Option<u32>) -> Self
pub fn build(self) -> Result<Parts<P, F>, Error>
pub fn build_without_pool(self) -> Result<Parts<P, F>, Error>
Auto Trait Implementations§
impl<P, F> Freeze for Builder<P, F>
impl<P, F> !RefUnwindSafe for Builder<P, F>
impl<P, F> Send for Builder<P, F>
impl<P, F> Sync for Builder<P, F>
impl<P, F> Unpin for Builder<P, F>
impl<P, F> !UnwindSafe for Builder<P, F>
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