[][src]Struct ntex_mqtt::client::ServiceBuilder

pub struct ServiceBuilder<Io, St, C: Service> { /* fields omitted */ }

Methods

impl<Io, St, C> ServiceBuilder<Io, St, C> where
    St: 'static,
    Io: AsyncRead + AsyncWrite + Unpin + 'static,
    C: Service<Request = ConnectAck<Io>, Response = ConnectAckResult<Io, St>> + 'static,
    C::Error: Debug + 'static, 
[src]

pub fn disconnect<F, Out>(self, disconnect: F) -> ServiceBuilder<Io, St, C> where
    F: Fn(&Session<St>, bool) -> Out + 'static,
    Out: Future + 'static, 
[src]

Callback to execute on disconnect

Second parameter indicates error occured during disconnect.

pub fn finish<F, T>(
    self,
    service: F
) -> impl Service<Request = Io, Response = (), Error = MqttError<C::Error>> where
    F: IntoServiceFactory<T>,
    T: ServiceFactory<Config = Session<St>, Request = Publish, Response = (), Error = C::Error, InitError = C::Error> + 'static, 
[src]

Auto Trait Implementations

impl<Io, St, C> !RefUnwindSafe for ServiceBuilder<Io, St, C>

impl<Io, St, C> !Send for ServiceBuilder<Io, St, C>

impl<Io, St, C> !Sync for ServiceBuilder<Io, St, C>

impl<Io, St, C> Unpin for ServiceBuilder<Io, St, C> where
    C: Unpin,
    Io: Unpin,
    St: Unpin

impl<Io, St, C> !UnwindSafe for ServiceBuilder<Io, St, C>

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> Same<T> for T

type Output = T

Should always be Self

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>,