Struct quic_rpc::transport::quinn::QuinnConnection
source · pub struct QuinnConnection<S: Service> { /* private fields */ }
Expand description
A connection using a quinn connection
Implementations§
source§impl<S: Service> QuinnConnection<S>
impl<S: Service> QuinnConnection<S>
sourcepub fn from_connection(connection: Connection) -> Self
pub fn from_connection(connection: Connection) -> Self
Create a new channel
sourcepub fn new(endpoint: Endpoint, addr: SocketAddr, name: String) -> Self
pub fn new(endpoint: Endpoint, addr: SocketAddr, name: String) -> Self
Create a new channel
Trait Implementations§
source§impl<S: Service> BoxableConnection<<S as Service>::Res, <S as Service>::Req> for QuinnConnection<S>
impl<S: Service> BoxableConnection<<S as Service>::Res, <S as Service>::Req> for QuinnConnection<S>
source§fn clone_box(&self) -> Box<dyn BoxableConnection<S::Res, S::Req>>
fn clone_box(&self) -> Box<dyn BoxableConnection<S::Res, S::Req>>
Clone the connection and box it
source§fn open_bi_boxed(&self) -> OpenFuture<'_, S::Res, S::Req> ⓘ
fn open_bi_boxed(&self) -> OpenFuture<'_, S::Res, S::Req> ⓘ
Open a channel to the remote che
source§impl<S: Service> Clone for QuinnConnection<S>
impl<S: Service> Clone for QuinnConnection<S>
source§impl<S: Service> Connection<<S as Service>::Res, <S as Service>::Req> for QuinnConnection<S>
impl<S: Service> Connection<<S as Service>::Res, <S as Service>::Req> for QuinnConnection<S>
source§impl<S: Service> ConnectionCommon<<S as Service>::Res, <S as Service>::Req> for QuinnConnection<S>
impl<S: Service> ConnectionCommon<<S as Service>::Res, <S as Service>::Req> for QuinnConnection<S>
§type RecvStream = RecvStream<<S as Service>::Res>
type RecvStream = RecvStream<<S as Service>::Res>
Receive side of a bidirectional typed channel
source§impl<S: Service> ConnectionErrors for QuinnConnection<S>
impl<S: Service> ConnectionErrors for QuinnConnection<S>
Auto Trait Implementations§
impl<S> Freeze for QuinnConnection<S>
impl<S> !RefUnwindSafe for QuinnConnection<S>
impl<S> Send for QuinnConnection<S>
impl<S> Sync for QuinnConnection<S>
impl<S> Unpin for QuinnConnection<S>where
S: Unpin,
impl<S> !UnwindSafe for QuinnConnection<S>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more