[−][src]Struct ntex_mqtt::v3::client::Client
Mqtt client
Implementations
impl<Io, St> Client<Io, St> where
St: 'static,
[src]
St: 'static,
pub fn new(client_id: ByteString) -> Self
[src]
Create new client and provide client id
pub fn clean_session(self, val: bool) -> Self
[src]
The handling of the Session state.
pub fn keep_alive(self, val: u16) -> Self
[src]
A time interval measured in seconds.
keep-alive is set to 30 seconds by default.
pub fn last_will(self, val: LastWill) -> Self
[src]
Will Message be stored on the Server and associated with the Network Connection.
by default last will value is not set
pub fn username(self, val: ByteString) -> Self
[src]
Username can be used by the Server for authentication and authorization.
pub fn password(self, val: Bytes) -> Self
[src]
Password can be used by the Server for authentication and authorization.
pub fn inflight(self, val: usize) -> Self
[src]
Number of in-flight concurrent messages.
in-flight is set to 15 messages
pub fn state<C, F>(self, state: F) -> ServiceBuilder<Io, St, C> where
F: IntoService<C>,
Io: AsyncRead + AsyncWrite + Unpin,
C: Service<Request = ConnectAck<Io>, Response = ConnectAckResult<Io, St>>,
C::Error: Debug + 'static,
[src]
F: IntoService<C>,
Io: AsyncRead + AsyncWrite + Unpin,
C: Service<Request = ConnectAck<Io>, Response = ConnectAckResult<Io, St>>,
C::Error: Debug + 'static,
Set state service
State service verifies connect ack packet and construct connection state.
Trait Implementations
Auto Trait Implementations
impl<Io, St> RefUnwindSafe for Client<Io, St> where
Io: RefUnwindSafe,
St: RefUnwindSafe,
Io: RefUnwindSafe,
St: RefUnwindSafe,
impl<Io, St> Send for Client<Io, St> where
Io: Send,
St: Send,
Io: Send,
St: Send,
impl<Io, St> Sync for Client<Io, St> where
Io: Sync,
St: Sync,
Io: Sync,
St: Sync,
impl<Io, St> Unpin for Client<Io, St> where
Io: Unpin,
St: Unpin,
Io: Unpin,
St: Unpin,
impl<Io, St> UnwindSafe for Client<Io, St> where
Io: UnwindSafe,
St: UnwindSafe,
Io: UnwindSafe,
St: 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> 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>,