[−][src]Struct tarpc_lib::server::Server
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]
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,
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,
Req: Send,
Resp: Send,
impl<Req, Resp> Sync for Server<Req, Resp> where
Req: Sync,
Resp: Sync,
Req: Sync,
Resp: Sync,
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,