Struct quic_rpc::transport::boxed::Connection
source · pub struct Connection<S: Service>(/* private fields */);
Expand description
A boxed connection
Implementations§
source§impl<S: Service> Connection<S>
impl<S: Service> Connection<S>
sourcepub fn new(x: impl BoxableConnection<S::Res, S::Req>) -> Self
pub fn new(x: impl BoxableConnection<S::Res, S::Req>) -> Self
Wrap a boxable server endpoint into a box, transforming all the types to concrete types
Trait Implementations§
source§impl<S: Service> Clone for Connection<S>
impl<S: Service> Clone for Connection<S>
source§impl<S: Service> Connection<<S as Service>::Res, <S as Service>::Req> for Connection<S>
impl<S: Service> Connection<<S as Service>::Res, <S as Service>::Req> for Connection<S>
source§impl<S: Service> ConnectionCommon<<S as Service>::Res, <S as Service>::Req> for Connection<S>
impl<S: Service> ConnectionCommon<<S as Service>::Res, <S as Service>::Req> for Connection<S>
source§impl<S: Service> ConnectionErrors for Connection<S>
impl<S: Service> ConnectionErrors for Connection<S>
Auto Trait Implementations§
impl<S> Freeze for Connection<S>
impl<S> !RefUnwindSafe for Connection<S>
impl<S> Send for Connection<S>
impl<S> Sync for Connection<S>
impl<S> Unpin for Connection<S>
impl<S> !UnwindSafe for Connection<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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)