Struct quic_rpc::transport::hyper::HyperConnection
source · pub struct HyperConnection<S: Service> { /* private fields */ }
Expand description
Hyper based connection to a server
Implementations§
source§impl<S: Service> HyperConnection<S>
impl<S: Service> HyperConnection<S>
sourcepub fn with_config(uri: Uri, config: ChannelConfig) -> Self
pub fn with_config(uri: Uri, config: ChannelConfig) -> Self
create a client given an uri and a custom configuration
sourcepub fn with_connector<C: Connect + Clone + Send + Sync + 'static>(
connector: C,
uri: Uri,
config: Arc<ChannelConfig>,
) -> Self
pub fn with_connector<C: Connect + Clone + Send + Sync + 'static>( connector: C, uri: Uri, config: Arc<ChannelConfig>, ) -> Self
create a client given an uri and a custom configuration
Trait Implementations§
source§impl<S: Clone + Service> Clone for HyperConnection<S>
impl<S: Clone + Service> Clone for HyperConnection<S>
source§fn clone(&self) -> HyperConnection<S>
fn clone(&self) -> HyperConnection<S>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<S: Service> Connection<<S as Service>::Res, <S as Service>::Req> for HyperConnection<S>
impl<S: Service> Connection<<S as Service>::Res, <S as Service>::Req> for HyperConnection<S>
source§impl<S: Service> ConnectionCommon<<S as Service>::Res, <S as Service>::Req> for HyperConnection<S>
impl<S: Service> ConnectionCommon<<S as Service>::Res, <S as Service>::Req> for HyperConnection<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 HyperConnection<S>
impl<S: Service> ConnectionErrors for HyperConnection<S>
Auto Trait Implementations§
impl<S> Freeze for HyperConnection<S>
impl<S> !RefUnwindSafe for HyperConnection<S>
impl<S> Send for HyperConnection<S>
impl<S> Sync for HyperConnection<S>
impl<S> Unpin for HyperConnection<S>where
S: Unpin,
impl<S> !UnwindSafe for HyperConnection<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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)