Struct tcpserver::Builder [−][src]
pub struct Builder<I, R, A, T, B, C> { /* fields omitted */ }Expand description
TCP server builder
Implementations
impl<I, R, A, T, B, C> Builder<I, R, A, T, B, C> where
I: Fn(ReadHalf<C>, Arc<dyn IPeer>, T) -> R + Send + Sync + 'static,
R: Future<Output = Result<()>> + Send + 'static,
A: ToSocketAddrs,
T: Clone + Send + 'static,
B: Future<Output = Result<C>> + Send + 'static,
C: AsyncRead + AsyncWrite + Send + 'static, [src]
impl<I, R, A, T, B, C> Builder<I, R, A, T, B, C> where
I: Fn(ReadHalf<C>, Arc<dyn IPeer>, T) -> R + Send + Sync + 'static,
R: Future<Output = Result<()>> + Send + 'static,
A: ToSocketAddrs,
T: Clone + Send + 'static,
B: Future<Output = Result<C>> + Send + 'static,
C: AsyncRead + AsyncWrite + Send + 'static, [src]设置TCP server 输入事件
设置TCP server 连接事件
设置输入流类型,例如TCPStream,SSLStream or GZIPStream
Auto Trait Implementations
impl<I, R, A, T, B, C> RefUnwindSafe for Builder<I, R, A, T, B, C> where
A: RefUnwindSafe,
C: RefUnwindSafe,
I: RefUnwindSafe,
R: RefUnwindSafe,
T: RefUnwindSafe, impl<I, R, A, T, B, C> Send for Builder<I, R, A, T, B, C> where
A: Send,
C: Send,
I: Send,
R: Send,
T: Send, impl<I, R, A, T, B, C> Sync for Builder<I, R, A, T, B, C> where
A: Sync,
C: Sync,
I: Sync,
R: Sync,
T: Sync, impl<I, R, A, T, B, C> Unpin for Builder<I, R, A, T, B, C> where
A: Unpin,
C: Unpin,
I: Unpin,
R: Unpin,
T: Unpin, impl<I, R, A, T, B, C> UnwindSafe for Builder<I, R, A, T, B, C> where
A: UnwindSafe,
C: UnwindSafe,
I: UnwindSafe,
R: UnwindSafe,
T: UnwindSafe,