[−][src]Struct actix_mqtt::client::ServiceBuilder
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]
St: 'static,
Io: AsyncRead + AsyncWrite + 'static,
C: Service<Request = ConnectAck<Io>, Response = ConnectAckResult<Io, St>> + 'static,
C::Error: 'static,
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]
F: IntoNewService<Srv>,
Srv: NewService<Config = St, Request = Subscribe<St>, Response = SubscribeResult, InitError = C::Error, Error = C::Error> + 'static,
Srv::Service: 'static,
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]
F: IntoNewService<Srv>,
Srv: NewService<Config = St, Request = Unsubscribe<St>, Response = (), InitError = C::Error, Error = C::Error> + 'static,
Srv::Service: 'static,
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]
UF: IntoService<U>,
U: Service<Request = State<St>, Response = (), Error = C::Error> + 'static,
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]
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,
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,
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]
U: From<T>,
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<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,