[][src]Struct tarpc_lib::server::Server

pub struct Server<Req, Resp> { /* fields omitted */ }

Manages clients, serving multiplexed requests over each connection.

Methods

impl<Req, Resp> Server<Req, Resp>[src]

pub fn config(&self) -> &Config[src]

Returns the config for this server.

pub fn incoming<S, T>(
    self,
    listener: S
) -> impl Stream<Item = Result<Channel<Req, Resp, T>>> where
    Req: Send,
    Resp: Send,
    S: Stream<Item = Result<T>>,
    T: Transport<Item = ClientMessage<Req>, SinkItem = Response<Resp>> + Send
[src]

Returns a stream of the incoming connections to the server.

Trait Implementations

impl<Req, Resp> Default for Server<Req, Resp>[src]

impl<Req: Debug, Resp: Debug> Debug for Server<Req, Resp>[src]

Auto Trait Implementations

impl<Req, Resp> Send for Server<Req, Resp> where
    Req: Send,
    Resp: Send

impl<Req, Resp> Sync for Server<Req, Resp> where
    Req: Sync,
    Resp: Sync

Blanket Implementations

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

impl<T> From for T[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.

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

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

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