Struct mqtt3::Connect [] [src]

pub struct Connect {
    pub protocol: Protocol,
    pub keep_alive: u16,
    pub client_id: String,
    pub clean_session: bool,
    pub last_will: Option<LastWill>,
    pub username: Option<String>,
    pub password: Option<String>,
}

Fields

protocol: Protocol keep_alive: u16 client_id: String clean_session: bool last_will: Option<LastWill> username: Option<String> password: Option<String>

Trait Implementations

impl PartialEq for Connect
[src]

fn eq(&self, __arg_0: &Connect) -> bool

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, __arg_0: &Connect) -> bool

This method tests for !=.

impl Clone for Connect
[src]

fn clone(&self) -> Connect

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more

impl Debug for Connect
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.