[][src]Struct actix_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 + 'static,
    C: Service<Request = ConnectAck<Io>, Response = ConnectAckResult<Io, St>> + 'static,
    C::Error: 'static, 
[src]

pub fn subscribe<F, Srv>(self, subscribe: F) -> Self where
    F: IntoNewService<Srv>,
    Srv: NewService<Config = St, Request = Subscribe<St>, Response = SubscribeResult, InitError = C::Error, Error = C::Error> + 'static,
    Srv::Service: 'static, 
[src]

Service to execute for subscribe packet

pub fn unsubscribe<F, Srv>(self, unsubscribe: F) -> Self where
    F: IntoNewService<Srv>,
    Srv: NewService<Config = St, Request = Unsubscribe<St>, Response = (), InitError = C::Error, Error = C::Error> + 'static,
    Srv::Service: 'static, 
[src]

Service to execute for unsubscribe packet

pub fn disconnect<UF, U>(self, srv: UF) -> Self where
    UF: IntoService<U>,
    U: Service<Request = State<St>, Response = (), Error = C::Error> + 'static, 
[src]

Service to execute on disconnect

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

Auto Trait Implementations

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> !RefUnwindSafe for ServiceBuilder<Io, St, C>

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

Blanket Implementations

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

impl<T, U> Into<U> for T where
    U: From<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> Erased for T