Struct mqtt::packet::connect::ConnectPacket
[−]
[src]
pub struct ConnectPacket { // some fields omitted }
Methods
impl ConnectPacket
[src]
fn new(protoname: String, client_identifier: String) -> ConnectPacket
fn with_level(protoname: String, client_identifier: String, level: u8) -> ConnectPacket
fn set_keep_alive(&mut self, keep_alive: u16)
fn set_user_name(&mut self, name: Option<String>)
fn set_will(&mut self, topic_message: Option<(TopicName, String)>)
fn set_password(&mut self, password: Option<String>)
fn set_client_identifier(&mut self, id: String)
fn set_will_retain(&mut self, will_retain: bool)
fn set_will_qos(&mut self, will_qos: u8)
fn set_clean_session(&mut self, clean_session: bool)
fn user_name(&self) -> Option<&str>
fn password(&self) -> Option<&str>
fn will(&self) -> Option<(&str, &str)>
fn will_retain(&self) -> bool
fn will_qos(&self) -> u8
fn client_identifier(&self) -> &str
fn clean_session(&self) -> bool
Trait Implementations
impl PartialEq for ConnectPacket
[src]
fn eq(&self, __arg_0: &ConnectPacket) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &ConnectPacket) -> bool
This method tests for !=
.