[][src]Struct tcpserver::TCPServer

pub struct TCPServer<I, R, T> { /* fields omitted */ }

Implementations

impl<I, R, T> TCPServer<I, R, T> where
    I: Fn(OwnedReadHalf, Arc<Actor<TCPPeer>>, T) -> R + Send + Sync + 'static,
    R: Future<Output = ()> + Send + 'static,
    T: Clone + Send + 'static, 
[src]

pub async fn start(&mut self, token: T) -> AResult<JoinHandle<Result<()>>>[src]

启动TCP服务

Trait Implementations

impl<I, R, T> Send for TCPServer<I, R, T>[src]

impl<I, R, T> Sync for TCPServer<I, R, T>[src]

Auto Trait Implementations

impl<I, R, T> !Dummy for TCPServer<I, R, T>[src]

impl<I, R, T> !RefUnwindSafe for TCPServer<I, R, T>[src]

impl<I, R, T> Unpin for TCPServer<I, R, T> where
    R: Unpin,
    T: Unpin
[src]

impl<I, R, T> !UnwindSafe for TCPServer<I, R, T>[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.