pub async fn serve<M: RemoteMessage>(
addr: ChannelAddr,
) -> Result<(ChannelAddr, ChannelRx<M>), ChannelError>
Expand description
Serve on the provided channel address. The server is turned down when the returned Rx is dropped.
pub async fn serve<M: RemoteMessage>(
addr: ChannelAddr,
) -> Result<(ChannelAddr, ChannelRx<M>), ChannelError>
Serve on the provided channel address. The server is turned down when the returned Rx is dropped.