Struct domain::net::client::multi_stream::Connection
source · pub struct Connection<Req> { /* private fields */ }
Expand description
A connection to a multi-stream transport.
Implementations§
source§impl<Req> Connection<Req>
impl<Req> Connection<Req>
Trait Implementations§
source§impl<Req> Clone for Connection<Req>
impl<Req> Clone for Connection<Req>
source§impl<Req: Debug> Debug for Connection<Req>
impl<Req: Debug> Debug for Connection<Req>
source§impl<Req> SendRequest<Req> for Connection<Req>where
Req: ComposeRequest + Clone + 'static,
impl<Req> SendRequest<Req> for Connection<Req>where
Req: ComposeRequest + Clone + 'static,
source§fn send_request(&self, request: Req) -> Box<dyn GetResponse + Send + Sync>
fn send_request(&self, request: Req) -> Box<dyn GetResponse + Send + Sync>
Request function that takes a ComposeRequest type.
Auto Trait Implementations§
impl<Req> Freeze for Connection<Req>
impl<Req> RefUnwindSafe for Connection<Req>
impl<Req> Send for Connection<Req>where
Req: Send,
impl<Req> Sync for Connection<Req>where
Req: Send,
impl<Req> Unpin for Connection<Req>
impl<Req> UnwindSafe for Connection<Req>
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
)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<Source, Target> OctetsInto<Target> for Sourcewhere
Target: OctetsFrom<Source>,
impl<Source, Target> OctetsInto<Target> for Sourcewhere
Target: OctetsFrom<Source>,
type Error = <Target as OctetsFrom<Source>>::Error
source§fn try_octets_into(
self,
) -> Result<Target, <Source as OctetsInto<Target>>::Error>
fn try_octets_into( self, ) -> Result<Target, <Source as OctetsInto<Target>>::Error>
Performs the conversion.
source§fn octets_into(self) -> Target
fn octets_into(self) -> Target
Performs an infallible conversion.