[−][src]Struct ntex_amqp::client::ProtocolNegotiation
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]
Io: AsyncRead + AsyncWrite + Unpin,
Trait Implementations
impl<Io> Clone for ProtocolNegotiation<Io>
[src]
fn clone(&self) -> Self
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<Io> Default for ProtocolNegotiation<Io>
[src]
impl<Io> Service for ProtocolNegotiation<Io> where
Io: AsyncRead + AsyncWrite + Unpin + 'static,
[src]
Io: AsyncRead + AsyncWrite + Unpin + 'static,
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.
fn poll_ready(&self, _: &mut Context) -> Poll<Result<(), Self::Error>>
[src]
fn call(&self, framed: Framed<Io, ProtocolIdCodec>) -> Self::Future
[src]
fn poll_shutdown(&self, ctx: &mut Context, is_error: bool) -> Poll<()>
fn map<F, R>(self, f: F) -> Map<Self, F, R> where
F: FnMut(Self::Response) -> R,
F: FnMut(Self::Response) -> R,
fn map_err<F, E>(self, f: F) -> MapErr<Self, F, E> where
F: Fn(Self::Error) -> E,
F: Fn(Self::Error) -> E,
Auto Trait Implementations
impl<Io> RefUnwindSafe for ProtocolNegotiation<Io> where
Io: RefUnwindSafe,
Io: RefUnwindSafe,
impl<Io> Send for ProtocolNegotiation<Io> where
Io: Send,
Io: Send,
impl<Io> Sync for ProtocolNegotiation<Io> where
Io: Sync,
Io: Sync,
impl<Io> Unpin for ProtocolNegotiation<Io> where
Io: Unpin,
Io: Unpin,
impl<Io> UnwindSafe for ProtocolNegotiation<Io> where
Io: UnwindSafe,
Io: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> IntoService<T> for T where
T: Service,
T: Service,
fn into_service(self) -> T
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> Sealed<T> for T where
T: ?Sized,
T: ?Sized,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,