Struct quic_rpc::transport::quinn::ServerChannel
source · pub struct ServerChannel<In: RpcMessage, Out: RpcMessage> { /* private fields */ }
Expand description
A server channel using a quinn connection
Implementations§
source§impl<In: RpcMessage, Out: RpcMessage> ServerChannel<In, Out>
impl<In: RpcMessage, Out: RpcMessage> ServerChannel<In, Out>
sourcepub fn new(conn: Connection, local_addr: SocketAddr) -> Self
pub fn new(conn: Connection, local_addr: SocketAddr) -> Self
Create a new channel
Trait Implementations§
source§impl<In: RpcMessage, Out: RpcMessage> Clone for ServerChannel<In, Out>
impl<In: RpcMessage, Out: RpcMessage> Clone for ServerChannel<In, Out>
source§impl<In: Debug + RpcMessage, Out: Debug + RpcMessage> Debug for ServerChannel<In, Out>
impl<In: Debug + RpcMessage, Out: Debug + RpcMessage> Debug for ServerChannel<In, Out>
source§impl<In: RpcMessage + Sync, Out: RpcMessage + Sync> ServerChannel<In, Out, ChannelTypes> for ServerChannel<In, Out>
impl<In: RpcMessage + Sync, Out: RpcMessage + Sync> ServerChannel<In, Out, ChannelTypes> for ServerChannel<In, Out>
source§fn accept_bi(&self) -> AcceptBiFuture<'_, In, Out> ⓘ
fn accept_bi(&self) -> AcceptBiFuture<'_, In, Out> ⓘ
Accept a bidirectional stream
source§fn local_addr(&self) -> &[LocalAddr]
fn local_addr(&self) -> &[LocalAddr]
The local addresses this server is bound to. Read more