Struct mqtt::control::variable_header::TopicNameHeader [−][src]
pub struct TopicNameHeader(_);
Topic name wrapper
Methods
impl TopicNameHeader[src]
impl TopicNameHeaderpub fn new(topic_name: String) -> Result<TopicNameHeader, VariableHeaderError>[src]
pub fn new(topic_name: String) -> Result<TopicNameHeader, VariableHeaderError>Trait Implementations
impl Debug for TopicNameHeader[src]
impl Debug for TopicNameHeaderfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Eq for TopicNameHeader[src]
impl Eq for TopicNameHeaderimpl PartialEq for TopicNameHeader[src]
impl PartialEq for TopicNameHeaderfn eq(&self, other: &TopicNameHeader) -> bool[src]
fn eq(&self, other: &TopicNameHeader) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &TopicNameHeader) -> bool[src]
fn ne(&self, other: &TopicNameHeader) -> boolThis method tests for !=.
impl Clone for TopicNameHeader[src]
impl Clone for TopicNameHeaderfn clone(&self) -> TopicNameHeader[src]
fn clone(&self) -> TopicNameHeaderReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl Into<TopicName> for TopicNameHeader[src]
impl Into<TopicName> for TopicNameHeaderimpl Encodable for TopicNameHeader[src]
impl Encodable for TopicNameHeadertype Err = VariableHeaderError
fn encode<W: Write>(&self, writer: &mut W) -> Result<(), VariableHeaderError>[src]
fn encode<W: Write>(&self, writer: &mut W) -> Result<(), VariableHeaderError>Encodes to writer
fn encoded_length(&self) -> u32[src]
fn encoded_length(&self) -> u32Length of bytes after encoded
impl Decodable for TopicNameHeader[src]
impl Decodable for TopicNameHeadertype Err = VariableHeaderError
type Cond = ()
fn decode_with<R: Read>(
reader: &mut R,
_rest: Option<()>
) -> Result<TopicNameHeader, VariableHeaderError>[src]
fn decode_with<R: Read>(
reader: &mut R,
_rest: Option<()>
) -> Result<TopicNameHeader, VariableHeaderError>Decodes object with additional data (or hints)
fn decode<R: Read>(reader: &mut R) -> Result<Self, Self::Err>[src]
fn decode<R: Read>(reader: &mut R) -> Result<Self, Self::Err>Decodes object from reader
Auto Trait Implementations
impl Send for TopicNameHeader
impl Send for TopicNameHeaderimpl Sync for TopicNameHeader
impl Sync for TopicNameHeader