pub struct TCPServer<I, R, T, B, C, IST> { /* private fields */ }Implementations
sourceimpl<I, R, T, B, C, IST> TCPServer<I, R, T, B, C, IST> where
I: Fn(ReadHalf<C>, Arc<Actor<TCPPeer<C>>>, T) -> R + Send + Sync + 'static,
R: Future<Output = Result<()>> + Send + 'static,
T: Clone + Send + 'static,
B: Future<Output = Result<C>> + Send + 'static,
C: AsyncRead + AsyncWrite + Send + 'static,
IST: Fn(TcpStream) -> B + Send + Sync + 'static,
impl<I, R, T, B, C, IST> TCPServer<I, R, T, B, C, IST> where
I: Fn(ReadHalf<C>, Arc<Actor<TCPPeer<C>>>, T) -> R + Send + Sync + 'static,
R: Future<Output = Result<()>> + Send + 'static,
T: Clone + Send + 'static,
B: Future<Output = Result<C>> + Send + 'static,
C: AsyncRead + AsyncWrite + Send + 'static,
IST: Fn(TcpStream) -> B + Send + Sync + 'static,
Trait Implementations
impl<I, R, T, B, C, IST> Send for TCPServer<I, R, T, B, C, IST>
impl<I, R, T, B, C, IST> Sync for TCPServer<I, R, T, B, C, IST>
Auto Trait Implementations
impl<I, R, T, B, C, IST> RefUnwindSafe for TCPServer<I, R, T, B, C, IST> where
B: RefUnwindSafe,
C: RefUnwindSafe,
I: RefUnwindSafe,
IST: RefUnwindSafe,
R: RefUnwindSafe,
T: RefUnwindSafe,
impl<I, R, T, B, C, IST> Unpin for TCPServer<I, R, T, B, C, IST> where
B: Unpin,
C: Unpin,
R: Unpin,
T: Unpin,
impl<I, R, T, B, C, IST> UnwindSafe for TCPServer<I, R, T, B, C, IST> where
B: UnwindSafe,
C: UnwindSafe,
I: RefUnwindSafe,
IST: RefUnwindSafe,
R: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more