[−][src]Struct mqtt::topic_name::TopicName
Topic name
http://docs.oasis-open.org/mqtt/mqtt/v3.1.1/os/mqtt-v3.1.1-os.html#_Toc398718106
Methods
impl TopicName
[src]
pub fn new<S: Into<String>>(topic_name: S) -> Result<TopicName, TopicNameError>
[src]
Creates a new topic name from string Return error if the string is not a valid topic name
pub unsafe fn new_unchecked(topic_name: String) -> TopicName
[src]
Creates a new topic name from string without validation
Methods from Deref<Target = TopicNameRef>
pub fn is_server_specific(&self) -> bool
[src]
Check if this topic name is only for server.
Topic names that beginning with a '$' character are reserved for servers
Trait Implementations
impl Clone for TopicName
[src]
impl Debug for TopicName
[src]
impl Decodable for TopicName
[src]
type Err = TopicNameError
type Cond = ()
fn decode_with<R: Read>(
reader: &mut R,
_rest: Option<()>
) -> Result<TopicName, TopicNameError>
[src]
reader: &mut R,
_rest: Option<()>
) -> Result<TopicName, TopicNameError>
fn decode<R: Read>(reader: &mut R) -> Result<Self, Self::Err>
[src]
impl Deref for TopicName
[src]
type Target = TopicNameRef
The resulting type after dereferencing.
fn deref(&self) -> &TopicNameRef
[src]
impl Encodable for TopicName
[src]
type Err = TopicNameError
fn encode<W: Write>(&self, writer: &mut W) -> Result<(), TopicNameError>
[src]
fn encoded_length(&self) -> u32
[src]
impl Eq for TopicName
[src]
impl Hash for TopicName
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Into<String> for TopicName
[src]
impl Into<TopicName> for TopicNameHeader
[src]
impl Ord for TopicName
[src]
fn cmp(&self, other: &TopicName) -> Ordering
[src]
fn max(self, other: Self) -> Self
1.21.0[src]
fn min(self, other: Self) -> Self
1.21.0[src]
fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialEq<TopicName> for TopicName
[src]
impl PartialOrd<TopicName> for TopicName
[src]
fn partial_cmp(&self, other: &TopicName) -> Option<Ordering>
[src]
fn lt(&self, other: &TopicName) -> bool
[src]
fn le(&self, other: &TopicName) -> bool
[src]
fn gt(&self, other: &TopicName) -> bool
[src]
fn ge(&self, other: &TopicName) -> bool
[src]
impl StructuralEq for TopicName
[src]
impl StructuralPartialEq for TopicName
[src]
Auto Trait Implementations
impl RefUnwindSafe for TopicName
impl Send for TopicName
impl Sync for TopicName
impl Unpin for TopicName
impl UnwindSafe for TopicName
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> Decodable for T where
T: 'static + Packet + Debug,
[src]
T: 'static + Packet + Debug,
type Err = PacketError<T>
type Cond = FixedHeader
fn decode_with<R>(&mut R, Option<FixedHeader>) -> Result<T, PacketError<T>> where
R: Read,
[src]
R: Read,
fn decode<R: Read>(reader: &mut R) -> Result<Self, Self::Err>
[src]
impl<T> Encodable for T where
T: 'static + Packet + Debug,
[src]
T: 'static + Packet + Debug,
type Err = PacketError<T>
fn encode<W>(&Self, &mut W) -> Result<(), PacketError<T>> where
W: Write,
[src]
W: Write,
fn encoded_length(&Self) -> u32
[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> 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>,