pub struct Connection<Req>{ /* private fields */ }
Expand description
This type represents a transport connection.
Implementations§
Trait Implementations§
source§impl<Req> Clone for Connection<Req>
impl<Req> Clone for Connection<Req>
source§impl<Req> Debug for Connection<Req>
impl<Req> Debug for Connection<Req>
source§impl<Req: Clone + Debug + Send + Sync + 'static> SendRequest<Req> for Connection<Req>
impl<Req: Clone + Debug + Send + Sync + 'static> SendRequest<Req> for Connection<Req>
source§fn send_request(&self, request_msg: Req) -> Box<dyn GetResponse + Send + Sync>
fn send_request(&self, request_msg: 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>
impl<Req> Sync for Connection<Req>
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.