pub struct Parts<P, F> {
    pub bind_addrs: Vec<SocketAddr>,
    pub pools: Vec<Arc<P>>,
    pub relay_fn: Option<Arc<F>>,
    pub use_tls: Option<bool>,
    pub max_streams: Option<u32>,
}Fields§
§bind_addrs: Vec<SocketAddr>监听地址
pools: Vec<Arc<P>>连接池
relay_fn: Option<Arc<F>>服务处理器
use_tls: Option<bool>是否使用tls, only for https
max_streams: Option<u32>最大并发流, only for http2
Auto Trait Implementations§
impl<P, F> Freeze for Parts<P, F>
impl<P, F> RefUnwindSafe for Parts<P, F>where
    F: RefUnwindSafe,
    P: RefUnwindSafe,
impl<P, F> Send for Parts<P, F>
impl<P, F> Sync for Parts<P, F>
impl<P, F> Unpin for Parts<P, F>
impl<P, F> UnwindSafe for Parts<P, F>where
    F: RefUnwindSafe,
    P: RefUnwindSafe,
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