[][src]Struct ntex_amqp::client::ProtocolNegotiation

pub struct ProtocolNegotiation<Io> { /* fields omitted */ }

Methods

impl<Io> ProtocolNegotiation<Io>[src]

pub fn new(proto: ProtocolId) -> Self[src]

pub fn framed(stream: Io) -> Framed<Io, ProtocolIdCodec> where
    Io: AsyncRead + AsyncWrite + Unpin
[src]

Trait Implementations

impl<Io> Clone for ProtocolNegotiation<Io>[src]

impl<Io> Default for ProtocolNegotiation<Io>[src]

impl<Io> Service for ProtocolNegotiation<Io> where
    Io: AsyncRead + AsyncWrite + Unpin + 'static, 
[src]

type Request = Framed<Io, ProtocolIdCodec>

Requests handled by the service.

type Response = Framed<Io, ProtocolIdCodec>

Responses given by the service.

type Error = ProtocolIdError

Errors produced by the service.

type Future = Pin<Box<dyn Future<Output = Result<Self::Response, Self::Error>>>>

The future response value.

Auto Trait Implementations

impl<Io> RefUnwindSafe for ProtocolNegotiation<Io> where
    Io: RefUnwindSafe

impl<Io> Send for ProtocolNegotiation<Io> where
    Io: Send

impl<Io> Sync for ProtocolNegotiation<Io> where
    Io: Sync

impl<Io> Unpin for ProtocolNegotiation<Io> where
    Io: Unpin

impl<Io> UnwindSafe for ProtocolNegotiation<Io> where
    Io: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoService<T> for T where
    T: Service, 

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> Sealed<T> for T where
    T: ?Sized

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,