[][src]Struct mqtt::packet::connect::ConnectPacket

pub struct ConnectPacket { /* fields omitted */ }

CONNECT packet

Methods

impl ConnectPacket[src]

pub fn new<P, C>(protoname: P, client_identifier: C) -> ConnectPacket where
    P: Into<String>,
    C: Into<String>, 
[src]

pub fn with_level<P, C>(
    protoname: P,
    client_identifier: C,
    level: u8
) -> ConnectPacket where
    P: Into<String>,
    C: Into<String>, 
[src]

pub fn set_keep_alive(&mut self, keep_alive: u16)[src]

pub fn set_user_name(&mut self, name: Option<String>)[src]

pub fn set_will(&mut self, topic_message: Option<(TopicName, Vec<u8>)>)[src]

pub fn set_password(&mut self, password: Option<String>)[src]

pub fn set_client_identifier<I: Into<String>>(&mut self, id: I)[src]

pub fn set_will_retain(&mut self, will_retain: bool)[src]

pub fn set_will_qos(&mut self, will_qos: u8)[src]

pub fn set_clean_session(&mut self, clean_session: bool)[src]

pub fn user_name(&self) -> Option<&str>[src]

pub fn password(&self) -> Option<&str>[src]

pub fn will(&self) -> Option<(&str, &Vec<u8>)>[src]

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

pub fn will_qos(&self) -> u8[src]

pub fn client_identifier(&self) -> &str[src]

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

Trait Implementations

impl Clone for ConnectPacket[src]

impl Debug for ConnectPacket[src]

impl Eq for ConnectPacket[src]

impl From<ConnectPacket> for VariablePacket[src]

impl Packet for ConnectPacket[src]

type Payload = ConnectPacketPayload

impl PartialEq<ConnectPacket> for ConnectPacket[src]

impl StructuralEq for ConnectPacket[src]

impl StructuralPartialEq for ConnectPacket[src]

Auto Trait Implementations

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> Decodable for T where
    T: 'static + Packet + Debug
[src]

type Err = PacketError<T>

type Cond = FixedHeader

impl<T> Encodable for T where
    T: 'static + Packet + Debug
[src]

type Err = PacketError<T>

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

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.