[][src]Struct actix_mqtt::client::ConnectAck

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

Methods

impl<Io> ConnectAck<Io>[src]

pub fn session_present(&self) -> bool[src]

Indicates whether there is already stored Session state

pub fn return_code(&self) -> ConnectCode[src]

Connect return code

pub fn sink(&self) -> &MqttSink[src]

Mqtt client sink object

pub fn state<St>(self, state: St) -> ConnectAckResult<Io, St>[src]

Set connection state and create result object

Trait Implementations

impl<Io> Stream for ConnectAck<Io> where
    Io: AsyncRead + AsyncWrite
[src]

type Item = Packet

The type of item this stream will yield on success.

type Error = ParseError

The type of error this stream may generate.

impl<Io> Sink for ConnectAck<Io> where
    Io: AsyncRead + AsyncWrite
[src]

type SinkItem = Packet

The type of value that the sink accepts.

type SinkError = ParseError

The type of value produced by the sink when an error occurs.

Auto Trait Implementations

impl<Io> !Send for ConnectAck<Io>

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

impl<Io> !Sync for ConnectAck<Io>

impl<Io> !UnwindSafe for ConnectAck<Io>

impl<Io> !RefUnwindSafe for ConnectAck<Io>

Blanket Implementations

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

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

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<T> BorrowMut<T> for T where
    T: ?Sized
[src]

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

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

impl<T> IntoStream for T where
    T: Stream
[src]

type Item = <T as Stream>::Item

type Error = <T as Stream>::Error

type Stream = T

impl<T> Erased for T